Skip to content
AdCrunch
Esc
↑↓navigate↵open⌘Jpreview
On this page

policy_list

List the Policies that apply to an ad account.

Ask what your organization allows before the agent builds. The agent lists the Policies that apply to one ad account: the Policies for all ad accounts, of the ad account, and of each brand attached to it.

“Before you build the spring sale campaign, check what our Policies allow on this ad account.”

Each Policy has a pol_… id, its name, its kind, its value, and the targets that make it apply to the ad account: organization for all ad accounts, a brand or the ad account.

  • Each kind applies to Meta ad accounts only. For an ad account of another provider, the list is empty.

  • The answer is advice. AdCrunch checks the Policies again when it starts each change, and refuses a change that breaks one with policy_violation.

  • The agent cannot change a Policy. Only a person sets a Policy, in the console.

  • The tool needs the policy:read scope. An external client that connected before this scope existed connects again to get it. The AdCrunch agent in the console gets it with no action.

Reference

List the Policies that apply to an ad account: the Policies for all ad accounts of the organization, of the Advertiser, and of each Brand attached to it. A Policy is a limit that a person of the organization sets in the AdCrunch console, for example the countries that a targeting may name or a budget ceiling. Each kind of Policy applies to Meta ad accounts only, so an ad account of another provider gets an empty list. Call it before you create or copy a campaign or an ad set, change a budget or remove the end date of an ad set, and build only what the Policies allow. The answer is advice: AdCrunch checks the Policies again when it starts each change, and refuses a change that breaks one with policy_violation. No Tool changes a Policy: only a person can, in the console.

Input

Argument Type Required Description
advertiser_id string yes The ad account, from list_advertisers.

Output

A successful call returns this object in structuredContent.

Field Type Always present Description
policies array of object yes Each Policy that applies, in no specific order.
policies[].id string yes The pol_… id of the Policy.
policies[].kind one of allowed_countries, allowed_objectives, allowed_optimization_goals, budget_ceiling, budget_period, end_date_required yes What the Policy limits.
policies[].name string yes The name that a person gave the Policy.
policies[].targets array of object yes The targets of the Policy that reach this ad account.
policies[].targets[].id string no The id of the Brand or the Advertiser. Absent for organization.
policies[].targets[].type one of organization, brand, advertiser yes organization: the Policy applies to all ad accounts. brand: to the ad accounts attached to the Brand. advertiser: to this ad account.
policies[].value object yes The parameters of the Policy. They depend on kind.
policies[].value.amount number no budget_ceiling: the highest budget, in whole units of currency.
policies[].value.countries array of string no allowed_countries: the ISO 3166-1 alpha-2 codes that a targeting may name.
policies[].value.currency string no budget_ceiling: the ISO 4217 currency of amount.
policies[].value.objectives array of string no allowed_objectives: the Meta campaign objectives that a campaign may have, for example OUTCOME_SALES.
policies[].value.optimizationGoals array of string no allowed_optimization_goals: the Meta performance goals (optimization_goal) that an ad set may have, for example OFFSITE_CONVERSIONS.
policies[].value.period one of daily, lifetime no budget_ceiling: the kind of budget that the ceiling limits. budget_period: the only kind of budget that is allowed.

Failure codes

A failed call has isError set, and structuredContent.error holds one of these codes. Errors describes the shape of a failed call.

  • not_found
  • policy_unavailable
  • organization_unentitled
  • forbidden
  • invalid_request
  • internal_error

Scope

The token must hold policy:read. Auth & scopes lists each scope.

Annotations

A client reads these hints. A hint that the tool does not declare has the default value of the MCP specification.

  • Read-only. The tool changes nothing.
  • Closed world. The tool reads and writes the data of AdCrunch only.

Example

The arguments:

{
  "advertiser_id": "acc_1485443900032333"
}

The result, in structuredContent:

{
  "policies": [
    {
      "id": "pol_8k2m4n6p",
      "kind": "allowed_countries",
      "name": "EU only",
      "targets": [
        {
          "id": "acc_1485443900032333",
          "type": "advertiser"
        }
      ],
      "value": {
        "countries": [
          "FR",
          "BE"
        ]
      }
    }
  ]
}

Was this page helpful?