All tools

Advertising · sync_ad_metrics

Sync ad metrics

Pull the ad platforms' numbers and flag anomalies.

Price
included
Requirements
OpenAI Ads or Meta Ads or Google Ads
set it up in Settings → Integrations
Human approval
No
read or internal write

Input

FieldTypeDescription
campaignIdsarray
platformopenai_ads | meta_ads | google_ads
daysnumberFenêtre à rafraîchir (défaut 3 — les régies consolident sur 48-72 h ; 30 max).
includeAdStatusesbooleanRelire aussi le statut de revue des annonces (défaut true).

Call this tool

Through the HTTP API, or from the MCP server with the run meta-tool.

curl https://api.ezyagents.fr/gateway/v1/run \
  -H "Authorization: Bearer ezk_…" -H "Content-Type: application/json" \
  -d '{"tool":"sync_ad_metrics","input":{"campaignIds":[],"platform":"openai_ads","days":1,"includeAdStatuses":true}}'
$run({ "tool": "sync_ad_metrics", "input": {"campaignIds":[],"platform":"openai_ads","days":1,"includeAdStatuses":true} })