Read Apple Ads campaigns, ad groups, keywords (with bids), negatives, or a performance report.

GEThttps://api.appgoat.ai/v1/connections/{id}/ads
1 creditoperationId getConnectionAds

view=campaigns → ad_groups (campaign_id) → keywords (campaign_id, ad_group_id) gives the ids the ads.* actions take. view=report&level=keywords|searchterms|adgroups|campaigns&campaign_id= returns impressions, taps, installs, spend, avg CPT / CPA for start..end (default the last 7 days, UTC).

Request

curl "https://api.appgoat.ai/v1/connections/123/ads" \
  -H "x-api-key: $APPGOAT_API_KEY"

Path parameters

idstringrequired
Connection id (con_…).

Query parameters

view"campaigns" | "ad_groups" | "keywords" | "negatives" | "report"

Default "campaigns"

campaign_idstring
ad_group_idstring
level"campaigns" | "adgroups" | "keywords" | "searchterms"
startstring
endstring
limitinteger

Default 200

Response

200 with a JSON body. See the envelope for meta.

Example
{
  "data": null,
  "meta": {
    "credits_used": 1,
    "credits_remaining": 9981,
    "request_id": "req_123"
  }
}

Status codes

200
The requested view.
Missing or invalid API key.
insufficient_credits (the call costs more than you have left; nothing was done) or plan_limit (a feature of a higher plan).
Not found.
Too many requests per second for your plan.
502
App Store Connect / Google Play / Apple Ads answered with an error (message passed through).