detail field that says what went wrong. The table lists each status and its common causes.
| Status | Cause |
|---|---|
400 | A parameter is not valid. For example, a metrics date is not YYYY-MM-DD, tz is not a valid time zone, or site_url is not an http(s) URL. |
401 | The API key is not valid. |
402 | Your billing blocks the activation of the campaign. |
403 | The advertiser account is archived and is no longer active. |
404 | The campaign, ad group, ad, ad unit, audience, or geo target does not exist, or it is not in your account. |
409 | A conflict. For example, a pixel for the URL already exists, all ad groups are paused, or the campaign changed after you read it. |
409 capi_event_not_received | You activated a Conversions or CPA campaign, and its conversion event has no live CAPI event and no passed Events Manager test. Pixel events don’t count. detail is an object with code, event_type, and message. Send the event, or pass a test in Events Manager, then try again. You can save the campaign as a draft first. See Conversion event check. |
429 | Too many requests. Wait for the number of seconds in the Retry-After header, then try again. See Rate limits. |
411 / 413 / 429 | An audience upload has no Content-Length, is too large, or goes over the upload limit. See POST /advertiser-dashboard/audiences/custom-list. |
422 | The request is not valid. For example, the X-API-Key header is not there, a Conversions or CPA campaign has no conversion event, days is out of range, a campaign has no ad groups and no ad_unit_ids, the body has a field that the API does not accept (such as keywords or ad_text_mode), a required ad unit field is empty, the favicon URL is not valid, or a PATCH /campaigns/{campaign_id} body has no fields. |
503 | Gravity can’t check your CAPI events right now, so it can’t activate a Conversions or CPA campaign. Try again in a few minutes, or save the campaign as a draft. |