We are getting this error when attempting to get keywords for the following 
locations:

La Jolla, California - 9061180
Northridge, California - 1014071

I see both of these locations listed as valid geo target types according to 
the Adwords API documentation so I am not sure what the issue is.

*Example SOAP request:*
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"; 
xmlns:ns2="https://adwords.google.com/api/adwords/o/v201809"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<SOAP-ENV:Header>
<ns2:RequestHeader>
<ns1:clientCustomerId>REDACTED</ns1:clientCustomerId>
<ns1:developerToken>REDACTED</ns1:developerToken>
<ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/40.0.0, 
PHP/7.3.12)</ns1:userAgent>
<ns1:validateOnly>false</ns1:validateOnly>
<ns1:partialFailure>false</ns1:partialFailure>
</ns2:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns2:get>
<ns2:selector>
<ns2:searchParameters xsi:type="ns2:LocationSearchParameter">
<ns2:locations>
<ns1:id>9061180</ns1:id>
</ns2:locations>
<ns2:locations>
<ns1:id>1014071</ns1:id>
</ns2:locations>
</ns2:searchParameters>
<ns2:searchParameters xsi:type="ns2:LanguageSearchParameter">
<ns2:languages>
<ns1:id>1000</ns1:id>
</ns2:languages>
</ns2:searchParameters>
<ns2:searchParameters xsi:type="ns2:RelatedToQuerySearchParameter">
<ns2:queries>cats</ns2:queries>
</ns2:searchParameters>
<ns2:searchParameters xsi:type="ns2:LanguageSearchParameter">
<ns2:languages>
<ns1:id>1000</ns1:id>
</ns2:languages>
</ns2:searchParameters>
<ns2:ideaType>KEYWORD</ns2:ideaType>
<ns2:requestType>IDEAS</ns2:requestType>
<ns2:requestedAttributeTypes>KEYWORD_TEXT</ns2:requestedAttributeTypes>
<ns2:requestedAttributeTypes>SEARCH_VOLUME</ns2:requestedAttributeTypes>
<ns2:requestedAttributeTypes>AVERAGE_CPC</ns2:requestedAttributeTypes>
<ns2:requestedAttributeTypes>CATEGORY_PRODUCTS_AND_SERVICES</ns2:requestedAttributeTypes>
<ns2:requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</ns2:requestedAttributeTypes>
<ns2:paging>
<ns1:startIndex>0</ns1:startIndex>
<ns1:numberResults>400</ns1:numberResults>
</ns2:paging>
</ns2:selector>
</ns2:get>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

*Response:*

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
<soap:Header>
<ResponseHeader 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809"; 
xmlns="https://adwords.google.com/api/adwords/o/v201809";>
<ns2:requestId>0005bd493b4435de0aa35f412e0ef8bf</ns2:requestId>
<ns2:serviceName>LocationCriterionService</ns2:serviceName>
<ns2:methodName>get</ns2:methodName>
<ns2:operations>1</ns2:operations>
<ns2:responseTime>140</ns2:responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>[TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
selector.searchParameters[1].locations[0]; 
trigger:'LocationSearchParameter', 
TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
selector.searchParameters[1].locations[1]; 
trigger:'LocationSearchParameter']</faultstring>
<detail>
<ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/o/v201809"; 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809";>
<ns2:message>[TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
selector.searchParameters[1].locations[0]; 
trigger:'LocationSearchParameter', 
TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ 
selector.searchParameters[1].locations[1]; 
trigger:'LocationSearchParameter']</ns2:message>
<ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type>
<ns2:errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="TargetingIdeaError">
<ns2:fieldPath>selector.searchParameters[1].locations[0]</ns2:fieldPath>
<ns2:fieldPathElements>
<ns2:field>selector</ns2:field>
</ns2:fieldPathElements>
<ns2:fieldPathElements>
<ns2:field>searchParameters</ns2:field>
<ns2:index>1</ns2:index>
</ns2:fieldPathElements>
<ns2:fieldPathElements>
<ns2:field>locations</ns2:field>
<ns2:index>0</ns2:index>
</ns2:fieldPathElements>
<ns2:trigger>LocationSearchParameter</ns2:trigger>
<ns2:errorString>TargetingIdeaError.INVALID_SEARCH_PARAMETERS</ns2:errorString>
<ns2:ApiError.Type>TargetingIdeaError</ns2:ApiError.Type>
<reason>INVALID_SEARCH_PARAMETERS</reason>
</ns2:errors>
<ns2:errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="TargetingIdeaError">
<ns2:fieldPath>selector.searchParameters[1].locations[1]</ns2:fieldPath>
<ns2:fieldPathElements>
<ns2:field>selector</ns2:field>
</ns2:fieldPathElements>
<ns2:fieldPathElements>
<ns2:field>searchParameters</ns2:field>
<ns2:index>1</ns2:index>
</ns2:fieldPathElements>
<ns2:fieldPathElements>
<ns2:field>locations</ns2:field>
<ns2:index>1</ns2:index>
</ns2:fieldPathElements>
<ns2:trigger>LocationSearchParameter</ns2:trigger>
<ns2:errorString>TargetingIdeaError.INVALID_SEARCH_PARAMETERS</ns2:errorString>
<ns2:ApiError.Type>TargetingIdeaError</ns2:ApiError.Type>
<reason>INVALID_SEARCH_PARAMETERS</reason>
</ns2:errors>
</ApiExceptionFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/71de8608-35e9-44b7-80d7-8ca37e6cbcefn%40googlegroups.com.

Reply via email to