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.
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.
Account One account is one System User token of your own Business Manager.
Plane · adsA Meta ad account: its campaigns, ad sets, ads and their results.
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
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
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
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.
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.
| Risk | Read 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 |
|
| Repairable, at a price Careful, Trusting: ask me. Autonomous: runs freely. | None |
| None |
| Worth a look Careful: ask me. Trusting, Autonomous: runs freely. | None | None | None |
| Harmless Runs freely at every level. |
|
|
|
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 call | The plugin sees | The catalog answers | A Careful mission |
|---|---|---|---|
meta_ |
|
| yes |
meta_ |
|
| yes |
meta_ |
|
| no |
5 · Anything else
Anything else
A call no permission covers touches meta- instead of slipping through. No macro-action holds it; a person ticks it knowingly.
| Permission | Risk | Careful ×1 | Trusting ×3 | Autonomous ×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-write | Repairable, at a price costly to undo | ask me · 50 a day | ask me · 150 a day | yes · 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
| Tool | What it does | Usually touches |
|---|---|---|
meta_ | List ad accounts | meta- |
meta_ | List campaigns | meta- |
meta_ | Read a campaign | meta- |
meta_ | List ad sets | meta- |
meta_ | Read an ad set | meta- |
meta_ | List ads | meta- |
meta_ | Read an ad | meta- |
meta_ | Read ad results | meta- |
meta_ | Pause ads | meta- |
meta_ | Activate ads | meta- |
meta_ | Change a daily budget | meta- |
meta_ | Change a bid | meta- |
meta_ | Create a paused campaign | meta- |
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.
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.
- Sign in to Meta Business Settings as an admin of the business that owns the ad accounts.
- Business SettingsUsersSystem usersAddOpen the system users page and add a system user for this gateway. (open)
- Assign assetsAd accountsManage campaignsAdd the ad accounts the agents will work on to it, with the permission to manage campaigns.
- Generate new tokenPermissionsToken expirationGenerate a token for an app of your business, tick the two permissions below, and choose Never for the expiry.
- 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 Ads | Access |
|---|---|
| ads_read | read |
| ads_management | read-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.
9 · Links
Links
Last changed 2026-12-02. This page as Markdown: /plugins/meta-ads.md