Campaign CRUD APIs Error Codes
| Error Response Code | Error Description | 
|---|---|
| INVALID_FIELD_ADVERTISER_ID | Invalid advertiser id | 
| INVALID_FIELD_START_OR_END_DATE | Invalid start or end date | 
| INVALID_FIELD_CAMPAIGN_NAME | Invalid campaign name | 
| INVALID_FIELD_CAMPAIGN_BUDGET | Invalid campaign budget | 
| TOTAL_AND_DAILY_BUDGET_NOT_ALLOWED_TOGETHER | Total budget and Daily budget fields are not allowed together in the same request | 
| FRONTLOADED_NOT_ALLOWED_FOR_DAILY_BUDGET_TYPE | Frontloaded delivery type is not allowed for daily budget type | 
| CAMPAIGN_ALREADY_EXIST_WITH_GIVEN_NAME | Campaign already exists with the given name | 
| CAMPAIGN_OBJECTIVE_ALLOWED_TO_UPDATE_ONLY_FOR_DRAFT_STATE | Campaign objective can be updated only for draft campaign | 
| RESOURCE_NOT_FOUND_FOR_INPUT_COMBINATION_ADVERTISER_ID_AND_CAMPAIGN_ID | Invalid campaign id and advertiser id combination passed in the input | 
| CAMPAIGN_OBJECTIVE_ALLOWED_TO_UPDATE_ONLY_FOR_DRAFT_STATE | Campaign objective can be updated only for draft campaign | 
| MID_FLIGHT_CAMPAIGN_DATES_SHOULD_NOT_BE_NULL | For mid-flight campaign, dates should not be null | 
| TOTAL_BUDGET_CANNOT_BE_LESS_THAN_CURRENT_CAMPAIGN_ADSPENT | Total budget cannot be less than current campaign ad spent | 
| DAILY_BUDGET_CANNOT_BE_LESS_THAN_CURRENT_CAMPAIGN_ADSPENT | Daily budget cannot be less than current campaign ad spent | 
| MID_FLIGHT_CAMPAIGN_BUDGET_INFO_CANNOT_BE_NULL | For mid-flight campaign, budget info should not be null | 
| CAMPAIGN_OBJECTIVE_CANNOT_BE_UPDATED | Campaign objective cannot be updated when any one ad group is scheduled/paused/active/completed | 
| CAMPAIGN_DELIVERY_STATUS_CANNOT_BE_UPDATED | Campaign delivery status cannot be updated | 
| BUDGET_NOT_SUPPORTED_AT_ADGROUP_IF_BUDGET_DEFINED_AT_CAMPAIGN_LEVEL | Budget is not supported at ad group level, if budget is defined at campaign level | 
| BUDGET_VALUE_NOT_ALLOWED_FOR_GIVEN_CAMPAIGN | Budget value not allowed for given campaign | 
| END_DATE_CANNOT_BE_EMPTY_OR_IN_THE_PAST | End date cannot be empty or in the past | 
| BUDGET_TYPE_CANNOT_BE_CHANGED_IN_MID_FLIGHT_OR_SCHEDULED_OR_PAUSED_STATE | Budget type cannot be changed when the campaign is in mid-flight, scheduled or paused state | 
| INVALID_FIELD_CAMPAIGN_OBJECTIVE | Invalid campaign objective | 
| INVALID_FIELD_DELIVERY_SPEED | Invalid delivery speed | 
| MISSING_FIELD_CAMPAIGN_OBJECTIVE | Campaign objective is required to create an auction campaign | 
| INVALID_FIELD_CAMPAIGN_TYPE | Invalid reservation type | 
| INVALID_FIELD_CAMPAIGN_OBJECTIVE_FOR_GIVEN_ADVERTISER | The Campaign objective passed is not allowed for given advertiser | 
| TOTAL_BUDGET_SHOULD_BE_EMPTY_FOR_DAILY_BUDGET_TYPE | Total Budget amount should be empty for Daily budget type. | 
| FRONTLOADED_DELIVERY_TYPE_NOT_ALLOWED_FOR_DAILY_BUDGET_TYPE | Frontloaded delivery type not allowed for Daily budget type. | 
| UNABLE_TO_FETCH_CAMPAIGN_DETAIL | Campaign details not found | 
| CAMPAIGN_END_DATE_ONLY_UNLIMITED_FOR_DRAFT_CAMPAIGN | Campaign End Date cannot be Unlimited if it is not in DRAFT state. | 
| NO_VALID_CAMPAIGNS | None of the campaignIds passed in the request are valid | 
| CAMPAIGN_LIMIT_REACHED_FOR_ADVERTISER | Maximum number of campaigns per advertiser is reached, cannot create anymore campaigns for this advertiser | 
| CAMPAIGN_ID_NOT_FOUND | Campaign not found for this advertiser | 
| UNABLE_TO_FETCH_CAMPAIGN_DETAIL | Unable to fetch campaign detail for the given campaignId, either it's not present or does not belong to the advertiser | 
| DUPLICATE_CAMPAIGN_REQUEST | Two or more entries with same campaign identifer are not allowed in a request | 
| UPDATE_CAMPAIGN_NOT_ALLOWED_IF_CAMPAIGN_STATUS_IS_ARCHIVED | Campaign cannot be updated if it's in archived state | 
| INVALID_CAMPAIGN_TYPE | Invalid campaign type | 
| INVALID_CAMPAIGN_NAME_SIZE | Invalid campaign name length, must be between 4 and 255 characters | 
| END_DATE_MUST_BE_AFTER_NOON | End Date is less than 12 noon | 
Updated 4 months ago
