#[repr(i32)]
pub enum FeedItemValidationError {
Show 107 variants Unspecified = 0, Unknown = 1, StringTooShort = 2, StringTooLong = 3, ValueNotSpecified = 4, InvalidDomesticPhoneNumberFormat = 5, InvalidPhoneNumber = 6, PhoneNumberNotSupportedForCountry = 7, PremiumRateNumberNotAllowed = 8, DisallowedNumberType = 9, ValueOutOfRange = 10, CalltrackingNotSupportedForCountry = 11, CustomerNotInAllowlistForCalltracking = 99, InvalidCountryCode = 13, InvalidAppId = 14, MissingAttributesForFields = 15, InvalidTypeId = 16, InvalidEmailAddress = 17, InvalidHttpsUrl = 18, MissingDeliveryAddress = 19, StartDateAfterEndDate = 20, MissingFeedItemStartTime = 21, MissingFeedItemEndTime = 22, MissingFeedItemId = 23, VanityPhoneNumberNotAllowed = 24, InvalidReviewExtensionSnippet = 25, InvalidNumberFormat = 26, InvalidDateFormat = 27, InvalidPriceFormat = 28, UnknownPlaceholderField = 29, MissingEnhancedSitelinkDescriptionLine = 30, ReviewExtensionSourceIneligible = 31, HyphensInReviewExtensionSnippet = 32, DoubleQuotesInReviewExtensionSnippet = 33, QuotesInReviewExtensionSnippet = 34, InvalidFormEncodedParams = 35, InvalidUrlParameterName = 36, NoGeocodingResult = 37, SourceNameInReviewExtensionText = 38, CarrierSpecificShortNumberNotAllowed = 39, InvalidPlaceholderFieldId = 40, InvalidUrlTag = 41, ListTooLong = 42, InvalidAttributesCombination = 43, DuplicateValues = 44, InvalidCallConversionActionId = 45, CannotSetWithoutFinalUrls = 46, AppIdDoesntExistInAppStore = 47, InvalidFinalUrl = 48, InvalidTrackingUrl = 49, InvalidFinalUrlForAppDownloadUrl = 50, ListTooShort = 51, InvalidUserAction = 52, InvalidTypeName = 53, InvalidEventChangeStatus = 54, InvalidSnippetsHeader = 55, InvalidAndroidAppLink = 56, NumberTypeWithCalltrackingNotSupportedForCountry = 57, ReservedKeywordOther = 58, DuplicateOptionLabels = 59, DuplicateOptionPrefills = 60, UnequalListLengths = 61, InconsistentCurrencyCodes = 62, PriceExtensionHasDuplicatedHeaders = 63, ItemHasDuplicatedHeaderAndDescription = 64, PriceExtensionHasTooFewItems = 65, UnsupportedValue = 66, InvalidFinalMobileUrl = 67, InvalidKeywordlessAdRuleLabel = 68, ValueTrackParameterNotSupported = 69, UnsupportedValueInSelectedLanguage = 70, InvalidIosAppLink = 71, MissingIosAppLinkOrIosAppStoreId = 72, PromotionInvalidTime = 73, PromotionCannotSetPercentOffAndMoneyAmountOff = 74, PromotionCannotSetPromotionCodeAndOrdersOverAmount = 75, TooManyDecimalPlacesSpecified = 76, AdCustomizersNotAllowed = 77, InvalidLanguageCode = 78, UnsupportedLanguage = 79, IfFunctionNotAllowed = 80, InvalidFinalUrlSuffix = 81, InvalidTagInFinalUrlSuffix = 82, InvalidFinalUrlSuffixFormat = 83, CustomerConsentForCallRecordingRequired = 84, OnlyOneDeliveryOptionIsAllowed = 85, NoDeliveryOptionIsSet = 86, InvalidConversionReportingState = 87, ImageSizeWrong = 88, EmailDeliveryNotAvailableInCountry = 89, AutoReplyNotAvailableInCountry = 90, InvalidLatitudeValue = 91, InvalidLongitudeValue = 92, TooManyLabels = 93, InvalidImageUrl = 94, MissingLatitudeValue = 95, MissingLongitudeValue = 96, AddressNotFound = 97, AddressNotTargetable = 98, InvalidAssetId = 100, IncompatibleAssetType = 101, ImageErrorUnexpectedSize = 102, ImageErrorAspectRatioNotAllowed = 103, ImageErrorFileTooLarge = 104, ImageErrorFormatNotAllowed = 105, ImageErrorConstraintsViolated = 106, ImageErrorServerError = 107,
}
Expand description

The possible validation errors of a feed item.

Variants§

§

Unspecified = 0

No value has been specified.

§

Unknown = 1

Used for return value only. Represents value unknown in this version.

§

StringTooShort = 2

String is too short.

§

StringTooLong = 3

String is too long.

§

ValueNotSpecified = 4

Value is not provided.

§

InvalidDomesticPhoneNumberFormat = 5

Phone number format is invalid for region.

§

InvalidPhoneNumber = 6

String does not represent a phone number.

§

PhoneNumberNotSupportedForCountry = 7

Phone number format is not compatible with country code.

§

PremiumRateNumberNotAllowed = 8

Premium rate number is not allowed.

§

DisallowedNumberType = 9

Phone number type is not allowed.

§

ValueOutOfRange = 10

Specified value is outside of the valid range.

§

CalltrackingNotSupportedForCountry = 11

Call tracking is not supported in the selected country.

§

CustomerNotInAllowlistForCalltracking = 99

Customer is not on the allow-list for call tracking.

§

InvalidCountryCode = 13

Country code is invalid.

§

InvalidAppId = 14

The specified mobile app id is invalid.

§

MissingAttributesForFields = 15

Some required field attributes are missing.

§

InvalidTypeId = 16

Invalid email button type for email extension.

§

InvalidEmailAddress = 17

Email address is invalid.

§

InvalidHttpsUrl = 18

The HTTPS URL in email extension is invalid.

§

MissingDeliveryAddress = 19

Delivery address is missing from email extension.

§

StartDateAfterEndDate = 20

FeedItem scheduling start date comes after end date.

§

MissingFeedItemStartTime = 21

FeedItem scheduling start time is missing.

§

MissingFeedItemEndTime = 22

FeedItem scheduling end time is missing.

§

MissingFeedItemId = 23

Cannot compute system attributes on a FeedItem that has no FeedItemId.

§

VanityPhoneNumberNotAllowed = 24

Call extension vanity phone numbers are not supported.

§

InvalidReviewExtensionSnippet = 25

Invalid review text.

§

InvalidNumberFormat = 26

Invalid format for numeric value in ad parameter.

§

InvalidDateFormat = 27

Invalid format for date value in ad parameter.

§

InvalidPriceFormat = 28

Invalid format for price value in ad parameter.

§

UnknownPlaceholderField = 29

Unrecognized type given for value in ad parameter.

§

MissingEnhancedSitelinkDescriptionLine = 30

Enhanced sitelinks must have both description lines specified.

§

ReviewExtensionSourceIneligible = 31

Review source is ineligible.

§

HyphensInReviewExtensionSnippet = 32

Review text cannot contain hyphens or dashes.

§

DoubleQuotesInReviewExtensionSnippet = 33

Review text cannot contain double quote characters.

§

QuotesInReviewExtensionSnippet = 34

Review text cannot contain quote characters.

§

InvalidFormEncodedParams = 35

Parameters are encoded in the wrong format.

§

InvalidUrlParameterName = 36

URL parameter name must contain only letters, numbers, underscores, and dashes.

§

NoGeocodingResult = 37

Cannot find address location.

§

SourceNameInReviewExtensionText = 38

Review extension text has source name.

§

CarrierSpecificShortNumberNotAllowed = 39

Some phone numbers can be shorter than usual. Some of these short numbers are carrier-specific, and we disallow those in ad extensions because they will not be available to all users.

§

InvalidPlaceholderFieldId = 40

Triggered when a request references a placeholder field id that does not exist.

§

InvalidUrlTag = 41

URL contains invalid ValueTrack tags or format.

§

ListTooLong = 42

Provided list exceeds acceptable size.

§

InvalidAttributesCombination = 43

Certain combinations of attributes aren’t allowed to be specified in the same feed item.

§

DuplicateValues = 44

An attribute has the same value repeatedly.

§

InvalidCallConversionActionId = 45

Advertisers can link a conversion action with a phone number to indicate that sufficiently long calls forwarded to that phone number should be counted as conversions of the specified type. This is an error message indicating that the conversion action specified is invalid (for example, the conversion action does not exist within the appropriate Google Ads account, or it is a type of conversion not appropriate to phone call conversions).

§

CannotSetWithoutFinalUrls = 46

Tracking template requires final url to be set.

§

AppIdDoesntExistInAppStore = 47

An app id was provided that doesn’t exist in the given app store.

§

InvalidFinalUrl = 48

Invalid U2 final url.

§

InvalidTrackingUrl = 49

Invalid U2 tracking url.

§

InvalidFinalUrlForAppDownloadUrl = 50

Final URL should start from App download URL.

§

ListTooShort = 51

List provided is too short.

§

InvalidUserAction = 52

User Action field has invalid value.

§

InvalidTypeName = 53

Type field has invalid value.

§

InvalidEventChangeStatus = 54

Change status for event is invalid.

§

InvalidSnippetsHeader = 55

The header of a structured snippets extension is not one of the valid headers.

Android app link is not formatted correctly

§

NumberTypeWithCalltrackingNotSupportedForCountry = 57

Phone number incompatible with call tracking for country.

§

ReservedKeywordOther = 58

The input is identical to a reserved keyword

§

DuplicateOptionLabels = 59

Each option label in the message extension must be unique.

§

DuplicateOptionPrefills = 60

Each option prefill in the message extension must be unique.

§

UnequalListLengths = 61

In message extensions, the number of optional labels and optional prefills must be the same.

§

InconsistentCurrencyCodes = 62

All currency codes in an ad extension must be the same.

§

PriceExtensionHasDuplicatedHeaders = 63

Headers in price extension are not unique.

§

ItemHasDuplicatedHeaderAndDescription = 64

Header and description in an item are the same.

§

PriceExtensionHasTooFewItems = 65

Price extension has too few items.

§

UnsupportedValue = 66

The given value is not supported.

§

InvalidFinalMobileUrl = 67

Invalid final mobile url.

§

InvalidKeywordlessAdRuleLabel = 68

The given string value of Label contains invalid characters

§

ValueTrackParameterNotSupported = 69

The given URL contains value track parameters.

§

UnsupportedValueInSelectedLanguage = 70

The given value is not supported in the selected language of an extension.

The iOS app link is not formatted correctly.

§

MissingIosAppLinkOrIosAppStoreId = 72

iOS app link or iOS app store id is missing.

§

PromotionInvalidTime = 73

Promotion time is invalid.

§

PromotionCannotSetPercentOffAndMoneyAmountOff = 74

Both the percent off and money amount off fields are set.

§

PromotionCannotSetPromotionCodeAndOrdersOverAmount = 75

Both the promotion code and orders over amount fields are set.

§

TooManyDecimalPlacesSpecified = 76

Too many decimal places are specified.

§

AdCustomizersNotAllowed = 77

Ad Customizers are present and not allowed.

§

InvalidLanguageCode = 78

Language code is not valid.

§

UnsupportedLanguage = 79

Language is not supported.

§

IfFunctionNotAllowed = 80

IF Function is present and not allowed.

§

InvalidFinalUrlSuffix = 81

Final url suffix is not valid.

§

InvalidTagInFinalUrlSuffix = 82

Final url suffix contains an invalid tag.

§

InvalidFinalUrlSuffixFormat = 83

Final url suffix is formatted incorrectly.

§

CustomerConsentForCallRecordingRequired = 84

Consent for call recording, which is required for the use of call extensions, was not provided by the advertiser. See https://support.google.com/google-ads/answer/7412639.

§

OnlyOneDeliveryOptionIsAllowed = 85

Multiple message delivery options are set.

§

NoDeliveryOptionIsSet = 86

No message delivery option is set.

§

InvalidConversionReportingState = 87

String value of conversion reporting state field is not valid.

§

ImageSizeWrong = 88

Image size is not right.

§

EmailDeliveryNotAvailableInCountry = 89

Email delivery is not supported in the country specified in the country code field.

§

AutoReplyNotAvailableInCountry = 90

Auto reply is not supported in the country specified in the country code field.

§

InvalidLatitudeValue = 91

Invalid value specified for latitude.

§

InvalidLongitudeValue = 92

Invalid value specified for longitude.

§

TooManyLabels = 93

Too many label fields provided.

§

InvalidImageUrl = 94

Invalid image url.

§

MissingLatitudeValue = 95

Latitude value is missing.

§

MissingLongitudeValue = 96

Longitude value is missing.

§

AddressNotFound = 97

Unable to find address.

§

AddressNotTargetable = 98

Cannot target provided address.

§

InvalidAssetId = 100

The specified asset ID does not exist.

§

IncompatibleAssetType = 101

The asset type cannot be set for the field.

§

ImageErrorUnexpectedSize = 102

The image has unexpected size.

§

ImageErrorAspectRatioNotAllowed = 103

The image aspect ratio is not allowed.

§

ImageErrorFileTooLarge = 104

The image file is too large.

§

ImageErrorFormatNotAllowed = 105

The image format is unsupported.

§

ImageErrorConstraintsViolated = 106

Image violates constraints without more details.

§

ImageErrorServerError = 107

An error occurred when validating image.

Implementations§

source§

impl FeedItemValidationError

source

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of FeedItemValidationError.

source

pub fn from_i32(value: i32) -> Option<FeedItemValidationError>

👎Deprecated: Use the TryFrom<i32> implementation instead

Converts an i32 to a FeedItemValidationError, or None if value is not a valid variant.

source§

impl FeedItemValidationError

source

pub fn as_str_name(&self) -> &'static str

String value of the enum field names used in the ProtoBuf definition.

The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.

source

pub fn from_str_name(value: &str) -> Option<Self>

Creates an enum from field names used in the ProtoBuf definition.

Trait Implementations§

source§

impl Clone for FeedItemValidationError

source§

fn clone(&self) -> FeedItemValidationError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FeedItemValidationError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FeedItemValidationError

source§

fn default() -> FeedItemValidationError

Returns the “default value” for a type. Read more
source§

impl From<FeedItemValidationError> for i32

source§

fn from(value: FeedItemValidationError) -> i32

Converts to this type from the input type.
source§

impl Hash for FeedItemValidationError

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for FeedItemValidationError

source§

fn cmp(&self, other: &FeedItemValidationError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for FeedItemValidationError

source§

fn eq(&self, other: &FeedItemValidationError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for FeedItemValidationError

source§

fn partial_cmp(&self, other: &FeedItemValidationError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<i32> for FeedItemValidationError

§

type Error = DecodeError

The type returned in the event of a conversion error.
source§

fn try_from(value: i32) -> Result<FeedItemValidationError, DecodeError>

Performs the conversion.
source§

impl Copy for FeedItemValidationError

source§

impl Eq for FeedItemValidationError

source§

impl StructuralPartialEq for FeedItemValidationError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more