type InvalidPhoneNumberError (v202411)

  • This documentation focuses on the InvalidPhoneNumberError within the Google Ad Manager API, specifically for the CreativeSetService.

  • This error is triggered when a provided phone number has an invalid format, is too short, or encounters an unknown issue.

  • The error details include a reason code specifying the type of phone number problem and inherits general API error information like field path and trigger data.

  • The InvalidPhoneNumberError is part of a larger hierarchy of errors within the CreativeSetService and is associated with Creative and LineItemCreativeAssociation services.

Lists all errors associated with phone numbers.


Namespace
https://www.google.com/apis/ads/publisher/v202411

Field

ApiError (inherited)

fieldPath

xsd:string

The OGNL field path to identify cause of error.

fieldPathElements

FieldPathElement[]

A parsed copy of the field path. For example, the field path "operations[1].operand" corresponds to this list: {FieldPathElement(field = "operations", index = 1), FieldPathElement(field = "operand", index = null)}.

trigger

xsd:string

The data that caused the error.

errorString

xsd:string

A simple string representation of the error and reason.

InvalidPhoneNumberError

reason

InvalidPhoneNumberError.Reason


Enumerations
INVALID_FORMAT
The phone number is invalid.
TOO_SHORT
The phone number is too short.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.