Learn more about migrating to the Google Ads API by watching our latest webinar

CampaignError

Enum describing possible campaign errors.

Enums

UNSPECIFIED

Enum unspecified.

UNKNOWN

The received error code is not known in this version.

CANNOT_TARGET_CONTENT_NETWORK

Cannot target content network.

CANNOT_TARGET_SEARCH_NETWORK

Cannot target search network.

CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN

Cannot target Google Search network for a CPM campaign.

CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK

Must target at least one network.

CANNOT_TARGET_PARTNER_SEARCH_NETWORK

Only some Google partners are allowed to target partner search network.

CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY

Cannot target content network only as campaign has criteria-level bidding strategy.

CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS

Cannot modify the start or end date such that the campaign duration would not contain the durations of all runnable trials.

CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN

Cannot modify dates, budget or campaign name of a trial campaign.

DUPLICATE_CAMPAIGN_NAME

Trying to modify the name of an active or paused campaign, where the name is already assigned to another active or paused campaign.

INCOMPATIBLE_CAMPAIGN_FIELD

Two fields are in conflicting modes.

INVALID_CAMPAIGN_NAME

Campaign name cannot be used.

INVALID_AD_SERVING_OPTIMIZATION_STATUS

Given status is invalid.

INVALID_TRACKING_URL

Error in the campaign level tracking URL.

CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING

Cannot set both tracking URL template and tracking setting. A user has to clear legacy tracking setting in order to add tracking URL template.

MAX_IMPRESSIONS_NOT_IN_RANGE

The maximum number of impressions for Frequency Cap should be an integer greater than 0.

TIME_UNIT_NOT_SUPPORTED

Only the Day, Week and Month time units are supported.

INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED

Operation not allowed on a campaign whose serving status has ended

BUDGET_CANNOT_BE_SHARED

This budget is exclusively linked to a Campaign that is using experiments so it cannot be shared.

CAMPAIGN_CANNOT_USE_SHARED_BUDGET

Campaigns using experiments cannot use a shared budget.

CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS

A different budget cannot be assigned to a campaign when there are running or scheduled trials.

CAMPAIGN_LABEL_DOES_NOT_EXIST

No link found between the campaign and the label.

CAMPAIGN_LABEL_ALREADY_EXISTS

The label has already been attached to the campaign.

MISSING_SHOPPING_SETTING

A ShoppingSetting was not found when creating a shopping campaign.

INVALID_SHOPPING_SALES_COUNTRY

The country in shopping setting is not an allowed country.

ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE

The requested channel type is not available according to the customer's account setting.

INVALID_ADVERTISING_CHANNEL_SUB_TYPE

The AdvertisingChannelSubType is not a valid subtype of the primary channel type.

AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED

At least one conversion must be selected.

CANNOT_SET_AD_ROTATION_MODE

Setting ad rotation mode for a campaign is not allowed. Ad rotation mode at campaign is deprecated.

CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED

Trying to change start date on a campaign that has started.

CANNOT_SET_DATE_TO_PAST

Trying to modify a date into the past.

MISSING_HOTEL_SETTING

Hotel setting was not found when creating a hotel ads campaign.

CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP

A Campaign cannot use shared campaign budgets and be part of a campaign group.

APP_NOT_FOUND

The app ID was not found.

SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE

Campaign.shopping_setting.enable_local is not supported for the specified campaign type.

MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS

The merchant does not support the creation of campaigns for Shopping Comparison Listing Ads.

INSUFFICIENT_APP_INSTALLS_COUNT

The App campaign for engagement cannot be created because there aren't enough installs.

SENSITIVE_CATEGORY_APP

The App campaign for engagement cannot be created because the app is sensitive.

HEC_AGREEMENT_REQUIRED

Customers with Housing, Employment, or Credit ads must accept updated personalized ads policy to continue creating campaigns.