RecommendationError

Enum describing possible errors from applying a recommendation.

Enums

UNSPECIFIED

Enum unspecified.

UNKNOWN

The received error code is not known in this version.

BUDGET_AMOUNT_TOO_SMALL

The specified budget amount is too low for example, lower than minimum currency unit or lower than ad group minimum cost-per-click.

BUDGET_AMOUNT_TOO_LARGE

The specified budget amount is too large.

INVALID_BUDGET_AMOUNT

The specified budget amount is not a valid amount, for example, not a multiple of minimum currency unit.

POLICY_ERROR

The specified keyword or ad violates ad policy.

INVALID_BID_AMOUNT

The specified bid amount is not valid, for example, too many fractional digits, or negative amount.

ADGROUP_KEYWORD_LIMIT

The number of keywords in ad group have reached the maximum allowed.

RECOMMENDATION_ALREADY_APPLIED

The recommendation requested to apply has already been applied.

RECOMMENDATION_INVALIDATED

The recommendation requested to apply has been invalidated.

TOO_MANY_OPERATIONS

The number of operations in a single request exceeds the maximum allowed.

NO_OPERATIONS

There are no operations in the request.

DIFFERENT_TYPES_NOT_SUPPORTED

Operations with multiple recommendation types are not supported when partial failure mode is not enabled.

DUPLICATE_RESOURCE_NAME

Request contains multiple operations with the same resource_name.

RECOMMENDATION_ALREADY_DISMISSED

The recommendation requested to dismiss has already been dismissed.

INVALID_APPLY_REQUEST

The recommendation apply request was malformed and invalid.

RECOMMENDATION_TYPE_APPLY_NOT_SUPPORTED

The type of recommendation requested to apply is not supported.

INVALID_MULTIPLIER

The target multiplier specified is invalid.

ADVERTISING_CHANNEL_TYPE_GENERATE_NOT_SUPPORTED

The passed in advertising_channel_type is not supported.

RECOMMENDATION_TYPE_GENERATE_NOT_SUPPORTED

The passed in recommendation_type is not supported.

RECOMMENDATION_TYPES_CANNOT_BE_EMPTY

One or more recommendation_types need to be passed into the generate recommendations request.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_BIDDING_INFO

Bidding info is required for the CAMPAIGN_BUDGET recommendation type.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_BIDDING_STRATEGY_TYPE

Bidding strategy type is required for the CAMPAIGN_BUDGET recommendation type.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_ASSET_GROUP_INFO

Asset group info is required for the campaign budget recommendation type.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_ASSET_GROUP_INFO_WITH_FINAL_URL

Asset group info with final url is required for the CAMPAIGN_BUDGET recommendation type.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_COUNTRY_CODES_FOR_SEARCH_CHANNEL

Country codes are required for the CAMPAIGN_BUDGET recommendation type for SEARCH channel.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_INVALID_COUNTRY_CODE_FOR_SEARCH_CHANNEL

Country code is invalid for the CAMPAIGN_BUDGET recommendation type for SEARCH channel.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_LANGUAGE_CODES_FOR_SEARCH_CHANNEL

Language codes are required for the CAMPAIGN_BUDGET recommendation type for SEARCH channel.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_EITHER_POSITIVE_OR_NEGATIVE_LOCATION_IDS_FOR_SEARCH_CHANNEL

Either positive or negative location ids are required for the CAMPAIGN_BUDGET recommendation type for SEARCH channel.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_AD_GROUP_INFO_FOR_SEARCH_CHANNEL

Ad group info is required for the CAMPAIGN_BUDGET recommendation type for SEARCH channel.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_REQUIRES_KEYWORDS_FOR_SEARCH_CHANNEL

Keywords are required for the CAMPAIGN_BUDGET recommendation type for SEARCH channel.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_WITH_CHANNEL_TYPE_SEARCH_AND_BIDDING_STRATEGY_TYPE_TARGET_IMPRESSION_SHARE_REQUIRES_LOCATION

Location is required for the CAMPAIGN_BUDGET recommendation type for bidding strategy type TARGET_IMPRESSION_SHARE.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_WITH_CHANNEL_TYPE_SEARCH_AND_BIDDING_STRATEGY_TYPE_TARGET_IMPRESSION_SHARE_REQUIRES_TARGET_IMPRESSION_SHARE_MICROS

Target impression share micros are required for the CAMPAIGN_BUDGET recommendation type for bidding strategy type TARGET_IMPRESSION_SHARE.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_TARGET_IMPRESSION_SHARE_MICROS_BETWEEN_1_AND_1000000

Target impression share micros are required to be between 1 and 1000000 for the CAMPAIGN_BUDGET recommendation type for bidding strategy type TARGET_IMPRESSION_SHARE.

CAMPAIGN_BUDGET_RECOMMENDATION_TYPE_WITH_CHANNEL_TYPE_SEARCH_AND_BIDDING_STRATEGY_TYPE_TARGET_IMPRESSION_SHARE_REQUIRES_TARGET_IMPRESSION_SHARE_INFO

Target impression share info is required for the CAMPAIGN_BUDGET recommendation type for bidding strategy type TARGET_IMPRESSION_SHARE.