Skip to the content
Vaubaan Gateway

Plugins / Meta Ads

Meta Ads 0.1.0

The Meta Ads plugin lets a Vaubaan Gateway mission use Meta Ads without handing the agent a credential. Meta ads through the Marketing API: read campaigns, ad sets, ads and results, pause, change a daily budget or a bid within the ceiling the owner sets, create paused campaigns, and activate.

Version 0.1.0 · 5 permissions · 3 macro-actions · 13 tools · 0 gateways run this plugin (over the last 90 days).

1 · The model

How Meta Ads is modelled

1 plane, 5 things. The things that exist at the service and how they nest. Every permission is written over these; a resource of an account is one of them, named by its ref.

1 exactly one, namedn a finite, known set* an unknown number, possibly all the resource carries the environment, in the model only

Account

One account is one System User token of your own Business Manager.

Resource

One resource is one ad account it was given. Each ad account carries two ceilings its owner sets, max_daily_budget and max_bid, in major units of its currency (['50'] is 50 per day): no budget or bid change is accepted without them or above them, and an activation, which starts spending, is the highest permission.

Environment

Rule
No permission of this service depends on an environment: each is held once, whatever the resource.
Known
none
Carried by
ads.account, in the model only

2 · Macro-actions

What an agent does at Meta Ads: 3 macro-actions

A mission is made of them: the person ticks the ones the task needs and sets each to a trust level.

  1. 1

    Read ads and results

    Read ad accounts, campaigns, ad sets, ads and their results.

    Following how the ads do: what runs, what it costs, what it brings. Nothing changes in the ad account.

    1 permission

  2. 2

    Pause and adjust spend

    Pause what spends badly, change a budget or a bid within the ceiling.

    Cutting what does not work and shifting money to what does: pausing an ad set, lowering a budget, raising another. No budget or bid goes above the ceiling the owner set on the ad account, in major units of its currency.

    2 permissions

  3. 3

    Prepare and launch campaigns

    Create paused campaigns, and activate campaigns, ad sets and ads.

    Preparing a campaign that spends nothing, then switching ads on. An activation starts spending at once, publicly; it is the step that costs money.

    2 permissions

3 · The map

The map

5 permissions of 3 macro-actions, in the four rows of the tree. For the chosen trust level, each cell gives yes, ask me or no, and the quota a day.

Trust level

yes runs freelyask me ask me firstno not included

Mild actions run freely; sensitive or costly ones ask first; irreversible ones are left out.Up to sensitive actions run freely; costly and irreversible ones ask first. Limits ×3.Everything but irreversible actions runs freely; those ask first. Limits ×10.

A permission sits in the first row its facts answer: irreversible; costly to undo or unbounded cost; secret or personal data, whole account or bulk, moderate cost, public; otherwise harmless.

Meta Ads permissions by macro-action and row of the tree, with what the chosen trust level does and the quota a day
RiskRead ads and resultsRead ad accounts, campaigns, ad sets, ads and their results.Pause and adjust spendPause what spends badly, change a budget or a bid within the ceiling.Prepare and launch campaignsCreate paused campaigns, and activate campaigns, ad sets and ads.
Cannot be repaired

Careful: no. Trusting, Autonomous: ask me.

None

None

  • Activate a campaign, an ad set or an ad irreversibleWhy it sits here: Spending starts at once, at whatever budget the object carries, and the ads show publicly; money spent is not refunded. meta-ads.activate

    noask me · 30 a dayask me · 100 a day

Repairable, at a price

Careful, Trusting: ask me. Autonomous: runs freely.

None

  • Change a daily budget or a bid, within the ceiling costly to undoWhy it sits here: Money is committed, up to the ceiling the owner set on the ad account; what is spent before it is changed back is spent. meta-ads.budget-write

    ask me · 20 a dayask me · 60 a dayyes · 200 a day

None

Worth a look

Careful: ask me. Trusting, Autonomous: runs freely.

None

None

None

Harmless

Runs freely at every level.

  • Read ad accounts, campaigns, ad sets, ads and resultsWhy it sits here: Names, statuses, budgets and spend of the ad account come back to the agent. Nothing changes. meta-ads.read-ads

    yes · 1,000 a dayyes · 3,000 a dayyes · 10,000 a day

  • Pause a campaign, an ad set or an adWhy it sits here: Spending stops and the ads stop showing; resuming them is an activation, under its own permission. meta-ads.pause

    yes · 50 a dayyes · 150 a dayyes · 500 a day

  • Create a paused campaignWhy it sits here: A campaign is created paused: it spends nothing until it is activated. meta-ads.create-paused

    yes · 10 a dayyes · 30 a dayyes · 100 a day

Careful: runs freely 3, ask me first 1, not included 1. Trusting: runs freely 3, ask me first 2. Autonomous: runs freely 4, ask me first 1. Limits are counted over a mission's period: a day unless its creator picks another, or the mission's whole life for a one-off. The figures here are per day.

4 · A few calls

A few calls, classified by the plugin

14 declared calls, run through the plugin's own classifier when this page was built; here one per macro-action and the first the catalog refuses at Careful. The 14 calls, as code.

The callThe plugin seesThe catalog answersA Careful mission
meta_ads__list_ad_accounts {}
  • meta-ads.account[*].R
  • Read ad accounts, campaigns, ad sets, ads and results meta-ads.read-ads
yes
meta_ads__pause {"level":"adset","id":"120200000000000002"}
  • meta-ads.account[1234567890].adset[120200000000000002].pause.W
  • Pause a campaign, an ad set or an ad meta-ads.pause
yes
meta_ads__activate {"level":"ad","id":"120200000000000003"}
  • meta-ads.account[1234567890].ad[120200000000000003].activate.W
  • Activate a campaign, an ad set or an ad meta-ads.activate
no

5 · Anything else

Anything else

A call no permission covers touches meta-ads.uncategorized-write instead of slipping through. No macro-action holds it; a person ticks it knowingly.

PermissionRiskCareful ×1Trusting ×3Autonomous ×10
Uncategorized writeWhy it sits here: Catch-all for writes without a dedicated entry. No tool of this plugin reaches it; seeing it means an entry is missing. meta-ads.uncategorized-writeRepairable, at a price costly to undoask me · 50 a dayask me · 150 a dayyes · 500 a day

6 · Tools

Tools

13 tools. A tool's permissions depend on its arguments, so a mission is made of the macro-actions above, not of tools.

13 tools · scroll the list

ToolWhat it doesUsually touches
meta_ads__list_ad_accountsList ad accountsmeta-ads.read-ads
meta_ads__list_campaignsList campaignsmeta-ads.read-ads
meta_ads__get_campaignRead a campaignmeta-ads.read-ads
meta_ads__list_ad_setsList ad setsmeta-ads.read-ads
meta_ads__get_ad_setRead an ad setmeta-ads.read-ads
meta_ads__list_adsList adsmeta-ads.read-ads
meta_ads__get_adRead an admeta-ads.read-ads
meta_ads__get_insightsRead ad resultsmeta-ads.read-ads
meta_ads__pausePause adsmeta-ads.pause
meta_ads__activateActivate adsmeta-ads.activate
meta_ads__set_daily_budgetChange a daily budgetmeta-ads.budget-write
meta_ads__set_bidChange a bidmeta-ads.budget-write
meta_ads__create_campaignCreate a paused campaignmeta-ads.create-paused

7 · Connecting an account

Connecting an account

1 of 3 · a key you create and paste System User token

A System User token the person creates at Meta Ads and pastes once; nobody declares anything beforehand.

Ad accounts

The ad accounts the agents work on, with ads_read and ads_management. This gateway gives a mission only the ad accounts and permissions it names, and refuses any budget or bid above the ceiling the owner sets on each ad account, in major units of its currency.

  1. Sign in to Meta Business Settings as an admin of the business that owns the ad accounts.
  2. Business SettingsUsersSystem usersAddOpen the system users page and add a system user for this gateway. (open)
  3. Assign assetsAd accountsManage campaignsAdd the ad accounts the agents will work on to it, with the permission to manage campaigns.
  4. Generate new tokenPermissionsToken expirationGenerate a token for an app of your business, tick the two permissions below, and choose Never for the expiry.
  5. Copy the token and paste it here, then set each ad account's ceilings on its page: max_daily_budget and max_bid, as ["50"] for 50 in the account's currency.
Permission at Meta AdsAccess
ads_readread
ads_managementread-write
Where
https://business.facebook.com/settings/system-users
Expiry
A system user token set to never expire lasts until it is revoked: remove the system user or its token in Business Settings to end this account.
The connect page asks
System User token (secret)
The service's documentation
https://developers.facebook.com/documentation/ads-commerce/marketing-api/get-started/authorization
Disconnecting
In Meta Business Settings, open Users, then System users, and remove the system user or revoke its token.

8 · Health

Health

0 gateways run this plugin (over the last 90 days).

No version of this plugin has reported a call or a gateway yet.

A version is marked validated by the community with at least 200 reports and a success rate of at least 90 %, over the last 90 days; a gateway shows that mark on the accounts of this service. The figures are refreshed at most hourly (what they mean). It is a community signal, not a security guarantee.

Calls are counted over the last 90 days from the instances that share plugin health. Gateways are counted over the same window among the instances that also share usage statistics, so they are a lower bound. The success rate leaves out calls refused for a rejected credential: a revoked token is the user's configuration, not the plugin.

Last changed 2026-12-02. This page as Markdown: /plugins/meta-ads.md