Share your feedback about the Google Ads (AdWords) API. Take the 2021 AdWords API and Google Ads API Annual Survey.

AdError

Enum describing possible ad errors.

Enums

UNSPECIFIED

Enum unspecified.

UNKNOWN

The received error code is not known in this version.

AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE

Ad customizers are not supported for ad type.

APPROXIMATELY_TOO_LONG

Estimating character sizes the string is too long.

APPROXIMATELY_TOO_SHORT

Estimating character sizes the string is too short.

BAD_SNIPPET

There is a problem with the snippet.

CANNOT_MODIFY_AD

Cannot modify an ad.

CANNOT_SET_BUSINESS_NAME_IF_URL_SET

business name and url cannot be set at the same time

CANNOT_SET_FIELD

The specified field is incompatible with this ad's type or settings.

CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET

Cannot set field when originAdId is set.

CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING

Cannot set field when an existing ad id is set for sharing.

CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE

Cannot set allowFlexibleColor false if no color is provided by user.

CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING

When user select native, no color control is allowed because we will always respect publisher color for native format serving.

CANNOT_SET_URL

Cannot specify a url for the ad type

CANNOT_SET_WITHOUT_FINAL_URLS

Cannot specify a tracking or mobile url without also setting final urls

CANNOT_SET_WITH_FINAL_URLS

Cannot specify a legacy url and a final url simultaneously

CANNOT_SET_WITH_URL_DATA

Cannot specify a urls in UrlData and in template fields simultaneously.