get_pmax_asset_performance

Google Ads Read

๐Ÿšจ **IF THIS TOOL RETURNS A QUOTA ERROR:** - The error message will include a clickable upgrade link - Show the FULL error message to the user (it contains the upgrade link) - DO NOT attempt to work ar

Endpoint

POST https://api.adspirer.ai/api/v1/tools/get_pmax_asset_performance/execute

Headers

Description

๐Ÿšจ **IF THIS TOOL RETURNS A QUOTA ERROR:** - The error message will include a clickable upgrade link - Show the FULL error message to the user (it contains the upgrade link) - DO NOT attempt to work around the error or use alternative data - DO NOT create campaigns or perform actions without valid tool data - STOP and direct the user to upgrade via the provided link Read Google's own per-asset performance_label for every image in a PMax campaign, plus asset-group-level rollup metrics. PMax does not expose per-image CTR / conversions on Google's side โ€” Google instead publishes its own ML grade per asset: BEST / GOOD / LOW / LEARNING / PENDING. This tool surfaces that label directly, and adds a derived `recommended_action`: - LOW โ†’ REPLACE - LEARNING / PENDING โ†’ WAIT - GOOD / BEST โ†’ KEEP - UNKNOWN / UNSPECIFIED โ†’ REVIEW Per-group metrics (impressions, clicks, conversions, cost_micros, CTR, CVR) are rolled up for the requested date range. Labels themselves are not date-scoped on Google's API; they reflect Google's current grade. **Use when:** - Identifying which assets to swap during a monthly creative refresh - Sanity-checking that newly added assets have left LEARNING - Reporting on PMax creative health per asset group **Parameters:** - campaign_id: The PMax campaign ID - asset_group_id: optional โ€” scope to one group - date_range / start_date+end_date: window for the group-level metrics - min_label_severity: optional filter (LOW / GOOD / BEST) **Execution time:** 2-5 seconds (two GAQL queries)

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
campaign_idstring requiredThe PMax campaign ID (numeric). Example: '21854471508'
asset_group_idstring optionalOptional โ€” scope to one asset group.
date_rangestring optionalOne of LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, LAST_90_DAYS. Ignored when both start_date and end_date are set. default: "LAST_90_DAYS"
start_datestring optionalYYYY-MM-DD. Use together with end_date to override date_range.
end_datestring optionalYYYY-MM-DD. Use together with start_date to override date_range.
min_label_severitystring optionalOptional filter. One of LOW, GOOD, BEST. LOW returns only LOW assets; GOOD returns LOW+GOOD; BEST returns LOW+GOOD+BEST. LEARNING/PENDING/UNKNOWN are excluded by this filter (they are returned only when no filter is set).
customer_idstring optionalGoogle Ads customer ID. Required for multi-account users. Get from get_connections_status.

Example request

{
  "arguments": {
    "campaign_id": "<campaign_id>",
    "asset_group_id": "string",
    "date_range": "LAST_90_DAYS",
    "start_date": "string",
    "end_date": "string",
    "min_label_severity": "string",
    "customer_id": "string"
  }
}

Example responses

200 โ€” Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for get_pmax_asset_performance)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "get_pmax_asset_performance"
}

400 โ€” Tool-level error (bad arguments / multi-account selection)

{
  "success": false,
  "error": "You have 25 meta_ads accounts connected. Please specify which account to use by passing the ad_account_id parameter:\n  - Acme Holdings (ad_account_id=\"act_123456789\")\n  - Acme EU (ad_account_id=\"act_987654321\")",
  "is_error": true,
  "tool": "get_pmax_asset_performance"
}

402 โ€” Quota exhausted

{
  "success": false,
  "error": "\ud83d\udea8 Monthly limit reached (150/150 tool calls on Plus tier).\nUpgrade to Pro at https://adspirer.ai to keep building.",
  "is_error": true,
  "tool": "get_pmax_asset_performance",
  "quota": {
    "used": 150,
    "limit": 150,
    "tier": "plus",
    "period_end": "2026-05-01",
    "upgrade_url": "https://adspirer.ai"
  }
}

Try it live


Adspirer REST API โ€” get an API key at adspirer.ai/keys ยท adspirer.ai