Hi Don,

You need to ensure that you use the exact address returned by the
GeoLocationService in your LocationExtension.  Any difference between
the two addresses will result in this error.

Best,
- Eric Koleda, AdWords API Team

On Jun 10, 4:46 pm, Don Spaulding <donspauldin...@gmail.com> wrote:
> Can anyone tell me why I'm getting this error while adding a
> LocationExtension to a campaign?  The encoded location is pulled
> directly from the AdWords GeoLocationService, so I'm not sure why it
> would be invalid.
>
> The request object I'm sending looks something like this (I don't have
> the actual SOAP request on hand):
>
> (CampaignAdExtensionOperation){ operator = "ADD" Operation.Type = None
> operand = (CampaignAdExtension){ campaignId = XXREDACTEDXX adExtension
> = (LocationExtension){ id = None AdExtension.Type = None address =
> (Address){ streetAddress = "18497 South Dixie Highway" streetAddress2
> = None cityName = "Miami" provinceCode = "FL" provinceName = None
> postalCode = "33157" countryCode = "US" } geoPoint = (GeoPoint)
> { latitudeInMicroDegrees = 25598122 longitudeInMicroDegrees =
> -80354520 } encodedLocation = "qrvM3QDB3iJs9dhbM73Qco2my
> +XWwzPfMB2JmH3GKQQ7//nxd1Mye6BAJRpKAfBeh0oCvqaYLrIeEr3N9/
> VG8iQXLrESOBcEDhiRQqZnSDkxtEw1pjy/
> uTumOq8OAiTE0o6hRkY6taRYrNOFCQnu9akHF80itjInnmz+LtIytqJ6bS
> +wfDwHWmW5ifN0xb4EhC5zn5iYkDhBNXSIL2jXlR9pT0jUNjEk4dB5QZk4ZNDXfzNVbEaQgVtLe 
> timyeT5YPd0RpripCTWHOL1g5ZPfvD6MMMRmUE34n420ESR6qh2XEIZ6EvM7Puvp7b3T4wGcVrh /
> 3zaEMTiXwGJo4WJInl3jgGZSdLw4SRQfXc27m3TdaRX/Kj7uAtU3+z+zMAhStVYpVFq/
> 9kJnqMMpMc6WhcLdLMxKZEf16nSU0rICaMo00I1qPUqEm6BbwuT1Uw
> +92DtA5WUKlNTmhi7Ecz8VfIYzkcOFJTP8aNdnpzxpK2CXb3ATWTnLNZCOCAD34wfz/
> 2GB4qsgav3r6IBPq0CsuD3HB7QqJJZ88Oz2VTXdWkZ+9awFoqeAtjOWK/
> 0ogsrlHm6xnCHKragR6R8wdQCFpGXmPLL2tnc3E4vb5E=" companyName = "XXXX
> REDACTED XXXX" phoneNumber = "(555) 555-1234" source =
> "ADWORDS_FRONTEND" iconMediaId = None imageMediaId = None } status =
> <empty> approvalStatus = <empty> } },)
>
> The response I get is:
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
> envelope/"><soap:Header><ResponseHeader xmlns="https://
> adwords.google.com/api/adwords/cm/
> v201002"><requestId>d0f28e34e7687b67968a7ca58aa27f65</
> requestId><operations>1</operations><responseTime>551</
> responseTime><units>1</units></ResponseHeader></
> soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</
> faultcode><faultstring>[AdExtensionError.INVALID_ENCODED_LOCATION @
> operations[0].operand.adExtension.encodedLocation]</
> faultstring><detail><ApiExceptionFault xmlns="https://
> adwords.google.com/api/adwords/cm/
> v201002"><message>[AdExtensionError.INVALID_ENCODED_LOCATION @
> operations[0].operand.adExtension.encodedLocation]</
> message><ApplicationException.Type>ApiException</
> ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/
> XMLSchema-instance"
> xsi:type="AdExtensionError"><fieldPath>operations[0].operand.adExtension.en 
> codedLocation</
> fieldPath><trigger></trigger><ApiError.Type>AdExtensionError</
> ApiError.Type><reason>INVALID_ENCODED_LOCATION</reason></errors></
> ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
>
> Any ideas out there?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to