Skip to content
Denne side findes på dansk. Læs på dansk
HeyMySocial

apply_ad_action

Apply an approved ad change at the platform

writes reaches outside listed directly

Makes one approved ad action at the ad platform: sets the daily budget, pauses or resumes the campaign or ad set.

This spends or stops spending real money. It works only when a person who approves budgets has approved exactly this change in the app; otherwise it refuses with approval_required and a review_url: give that to the person and call again after they approved. You can never approve, and nothing you pass replaces their approval. Just before the change the platform is read again: if the value moved since approval it stops with version_conflict. Read the reply literally: status done means the platform reports the new value; uncertain means nobody knows yet, so ask the person to check and never call again for it; approved with an error means the platform did not act and it may be tried later; failed is final. Calling it for a done change changes nothing.

Arguments

NameTypeNeededWhat it is
ad_action_id string yes The approved ad action (manage_ad_actions).

Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.

How it behaves

  • It changes something in the workspace, within what the signed-in person's role allows.
  • It reaches outside the workspace: it fetches an address, makes a public link or puts something on a channel's schedule.
  • It is in the list every assistant sees when it connects.
  • It is always called by its own name, never through execute_tools, so the assistant's own safety prompts apply.

How tools behave: confirmation, review links, errors and limits

get_experiment · get_funnel_matrix · get_paid_draft · import_paid_results · list_ad_accounts · list_budget_requests · list_experiments · list_paid_drafts · list_paid_performance · manage_ad_actions · manage_experiment · map_paid_campaign · prepare_meta_campaign_setup · save_budget_request · save_experiment_draft · save_paid_draft