v29

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-06-042661,1122.5 MB
targeting_template

Update targeting templates

Update the targeting template given advertiser ID and targeting template ID

patch/ad_accounts/{ad_account_id}/targeting_templates

Path parameters

ad_account_idstring required

Unique identifier of an ad account.

Request body

idstring required

Targeting template ID

operation_type'UPDATE' | 'REMOVE' required

Audience operation type (update or remove).

Example request

{
  "id": "643",
  "operation_type": "UPDATE",
  "targeting_attributes": {
    "SHOPPING_RETARGETING": [
      {
        "lookback_window": 30,
        "exclusion_window": 14,
        "tag_types": [
          0,
          6
        ]
      }
    ]
  }
}

Response

The request has succeeded.