Hi,

The API does not support targeting a proximity around your location 
extensions *with an additional limitation on the location*. The only 
location extension-related targeting that's supported is to target a 
proximity around your location extensions with no additional limitations. 
See lines 133-145 of our AddCampaignTargetingCriteria example 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201502/targeting/AddCampaignTargetingCriteria.java#L133>
.

Thanks,
Josh, AdWords API Team

On Thursday, April 9, 2015 at 11:32:59 AM UTC-4, Edward Grave wrote:
>
> I am now getting this response having resolved the connection issue:
>
> Request:
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>  <soap:Header>    
> <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/v201502";>     
>  <clientCustomerId>MyCustID</clientCustomerId>      
> <developerToken>MyDevToken</developerToken>      
> <userAgent>MyAgent</userAgent>    </RequestHeader>  </soap:Header>  
> <soap:Body>    <mutate 
> xmlns="https://adwords.google.com/api/adwords/cm/v201502";>      <operations>  
>       <operator>ADD</operator>        <operand>          
> <campaignId>293088684</campaignId>          <criterion 
> xsi:type="LocationGroups">            <matchingFunction>              
> <operator>AND</operator>              <lhsOperand 
> xsi:type="LocationExtensionOperand">                <radius>                  
> <type>LONG</type>                  <unit>MILES</unit>                  
> <longValue>20</longValue>                </radius>              </lhsOperand> 
>              <rhsOperand xsi:type="GeoTargetOperand">                
> <locations>2826</locations>              </rhsOperand>            
> </matchingFunction>          </criterion>        </operand>      
> </operations>    </mutate>  </soap:Body></soap:Envelope>
>  
>
> Response:<soap:Envelope 
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>  <soap:Header>    
> <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201502";>    
>   <requestId>0005134c51aac2c80ac45d8a000042bb</requestId>      
> <serviceName>CampaignCriterionService</serviceName>      
> <methodName>mutate</methodName>      <operations>0</operations>      
> <responseTime>249</responseTime>    </ResponseHeader>  </soap:Header>  
> <soap:Body>    <soap:Fault>      <faultcode>soap:Server</faultcode>      
> <faultstring>[FunctionError.INVALID_OPERATOR @ 
> operations[0].operand.criterion.matchingFunction, 
> FunctionError.INVALID_NUMBER_OF_OPERANDS @ 
> operations[0].operand.criterion.matchingFunction.rhsOperand]</faultstring>    
>   <detail>        <ApiExceptionFault 
> xmlns="https://adwords.google.com/api/adwords/cm/v201502";>          
> <message>[FunctionError.INVALID_OPERATOR @ 
> operations[0].operand.criterion.matchingFunction, 
> FunctionError.INVALID_NUMBER_OF_OPERANDS @ 
> operations[0].operand.criterion.matchingFunction.rhsOperand]</message>        
>   <ApplicationException.Type>ApiException</ApplicationException.Type>         
>  <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="FunctionError">            
> <fieldPath>operations[0].operand.criterion.matchingFunction</fieldPath>       
>      <trigger></trigger>            
> <errorString>FunctionError.INVALID_OPERATOR</errorString>            
> <ApiError.Type>FunctionError</ApiError.Type>            
> <reason>INVALID_OPERATOR</reason>          </errors>          <errors 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="FunctionError">            
> <fieldPath>operations[0].operand.criterion.matchingFunction.rhsOperand</fieldPath>
>             <trigger></trigger>            
> <errorString>FunctionError.INVALID_NUMBER_OF_OPERANDS</errorString>           
>  <ApiError.Type>FunctionError</ApiError.Type>            
> <reason>INVALID_NUMBER_OF_OPERANDS</reason>          </errors>        
> </ApiExceptionFault>      </detail>    </soap:Fault>  
> </soap:Body></soap:Envelope>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3b7cc51b-0a05-494a-b164-675699016bb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to