Hi,

Update:
We are only getting the INVALID_PROXIMITY_ERROR for some of the post codes.
>From the below SOAP request, only 2018 is throwing this error.

[30 Mar 2020 12:20:56,985-requestInfoLogger:WARN:main] Request made: 
Service: CampaignCriterionService Method: mutate clientCustomerId: 
9571572507 URL: 
https://adwords.google.com/api/adwords/cm/v201809/CampaignCriterionService 
Request ID: 0005a20cdf7e7f830aa786cc660032e0 ResponseTime(ms): 523 
OperationsCount: 5 IsFault: true FaultMessage: 
ApiException{applicationExceptionType=ApiException, 
errors=[CriterionError{apiErrorType=CriterionError, 
errorString=CriterionError.INVALID_PROXIMITY_ADDRESS, 
fieldPath=operations[0].operand.criterion.address, 
fieldPathElements=[FieldPathElement{field=operations, index=0}, 
FieldPathElement{field=operand}, FieldPathElement{field=criterion}, 
FieldPathElement{field=address}], reason=INVALID_PROXIMITY_ADDRESS, 
trigger=}]}
[30 Mar 2020 12:20:57,009-soapXmlLogger:INFO:main] SOAP request:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <soapenv:Header>
        <ns1:RequestHeader 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"; 
soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>9571572507</ns1:clientCustomerId>
            <ns1:developerToken>REDACTED</ns1:developerToken>
            <ns1:userAgent>unknown (AwApi-Java, AdWords-Axis/4.6.0, 
Common-Java/4.6.0, Axis/1.4, Java/1.8.0_202, maven)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <campaignId>9735407183</campaignId>
                    <criterion 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809"; 
xsi:type="ns2:Proximity">
                        
<ns2:radiusDistanceUnits>KILOMETERS</ns2:radiusDistanceUnits>
                        <ns2:radiusInUnits>40.0</ns2:radiusInUnits>
                        <ns2:address>
                            <ns2:postalCode>2018</ns2:postalCode>
                            <ns2:countryCode>AU</ns2:countryCode>
                        </ns2:address>
                    </criterion>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <campaignId>9735407183</campaignId>
                    <criterion 
xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201809"; 
xsi:type="ns3:Proximity">
                        
<ns3:radiusDistanceUnits>KILOMETERS</ns3:radiusDistanceUnits>
                        <ns3:radiusInUnits>40.0</ns3:radiusInUnits>
                        <ns3:address>
                            <ns3:postalCode>2000</ns3:postalCode>
                            <ns3:countryCode>AU</ns3:countryCode>
                        </ns3:address>
                    </criterion>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <campaignId>9735407183</campaignId>
                    <criterion 
xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201809"; 
xsi:type="ns4:Proximity">
                        
<ns4:radiusDistanceUnits>KILOMETERS</ns4:radiusDistanceUnits>
                        <ns4:radiusInUnits>40.0</ns4:radiusInUnits>
                        <ns4:address>
                            <ns4:postalCode>2001</ns4:postalCode>
                            <ns4:countryCode>AU</ns4:countryCode>
                        </ns4:address>
                    </criterion>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <campaignId>9735407183</campaignId>
                    <criterion 
xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201809"; 
xsi:type="ns5:Proximity">
                        
<ns5:radiusDistanceUnits>KILOMETERS</ns5:radiusDistanceUnits>
                        <ns5:radiusInUnits>40.0</ns5:radiusInUnits>
                        <ns5:address>
                            <ns5:postalCode>2002</ns5:postalCode>
                            <ns5:countryCode>AU</ns5:countryCode>
                        </ns5:address>
                    </criterion>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <campaignId>9735407183</campaignId>
                    <criterion 
xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201809"; 
xsi:type="ns6:Proximity">
                        
<ns6:radiusDistanceUnits>KILOMETERS</ns6:radiusDistanceUnits>
                        <ns6:radiusInUnits>40.0</ns6:radiusInUnits>
                        <ns6:address>
                            <ns6:postalCode>2003</ns6:postalCode>
                            <ns6:countryCode>AU</ns6:countryCode>
                        </ns6:address>
                    </criterion>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>

[30 Mar 2020 12:20:57,009-soapXmlLogger:INFO:main] SOAP response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
    <soap:Header>
        <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
            <requestId>0005a20cdf7e7f830aa786cc660032e0</requestId>
            <serviceName>CampaignCriterionService</serviceName>
            <methodName>mutate</methodName>
            <operations>5</operations>
            <responseTime>523</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Client</faultcode>
            <faultstring>[CriterionError.INVALID_PROXIMITY_ADDRESS @ 
operations[0].operand.criterion.address]</faultstring>
            <detail>
                <ApiExceptionFault 
xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
                    <message>[CriterionError.INVALID_PROXIMITY_ADDRESS @ 
operations[0].operand.criterion.address]</message>
                    
<ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="CriterionError">
                        
<fieldPath>operations[0].operand.criterion.address</fieldPath>
                        <fieldPathElements>
                            <field>operations</field>
                            <index>0</index>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>operand</field>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>criterion</field>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>address</field>
                        </fieldPathElements>
                        <trigger/>
                        
<errorString>CriterionError.INVALID_PROXIMITY_ADDRESS</errorString>
                        <ApiError.Type>CriterionError</ApiError.Type>
                        <reason>INVALID_PROXIMITY_ADDRESS</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Request failed due to ApiException. Underlying ApiErrors:
  Error 0: CriterionError{apiErrorType=CriterionError, 
errorString=CriterionError.INVALID_PROXIMITY_ADDRESS, 
fieldPath=operations[0].operand.criterion.address, 
fieldPathElements=[FieldPathElement{field=operations, index=0}, 
FieldPathElement{field=operand}, FieldPathElement{field=criterion}, 
FieldPathElement{field=address}], reason=INVALID_PROXIMITY_ADDRESS, 
trigger=}




Suresh

On Saturday, March 28, 2020 at 11:18:01 PM UTC+5:30, Suresh Kumar Shenbagam 
wrote:
>
> Hi,
>
> I think I am setting correct values for the campaign criteria type, 
> Proximity/ But I am getting Invalid_Proximity_Address. Please find below 
> the SOAP request and response.
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";>
>     <soapenv:Header>
>         <ns1:RequestHeader xmlns:ns1="
> https://adwords.google.com/api/adwords/cm/v201809"; 
> soapenv:mustUnderstand="0">
>             <ns1:clientCustomerId>9571572507</ns1:clientCustomerId>
>             <ns1:developerToken>REDACTED</ns1:developerToken>
>             <ns1:userAgent>unknown (AwApi-Java, AdWords-Axis/4.6.0, 
> Common-Java/4.6.0, Axis/1.4, Java/1.8.0_202, maven)</ns1:userAgent>
>             <ns1:validateOnly>false</ns1:validateOnly>
>             <ns1:partialFailure>false</ns1:partialFailure>
>         </ns1:RequestHeader>
>     </soapenv:Header>
>     <soapenv:Body>
>         <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
>             <operations>
>                 <operator>ADD</operator>
>                 <operand>
>                     <campaignId>9747132435</campaignId>
>                     <criterion xmlns:ns2="
> https://adwords.google.com/api/adwords/cm/v201809"; 
> xsi:type="ns2:Proximity">
>                         
> <ns2:radiusDistanceUnits>KILOMETERS</ns2:radiusDistanceUnits>
>                         <ns2:radiusInUnits>10.0</ns2:radiusInUnits>
>                         <ns2:address>
>                             <ns2:postalCode>2018</ns2:postalCode>
>                             <ns2:countryCode>AU</ns2:countryCode>
>                         </ns2:address>
>                     </criterion>
>                 </operand>
>             </operations>
>         </mutate>
>     </soapenv:Body>
> </soapenv:Envelope>
>
> 94571    [main] INFO c.g.a.a.a.l.c.A.soapXmlLogger [] - SOAP response:
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>     <soap:Header>
>         <ResponseHeader xmlns="
> https://adwords.google.com/api/adwords/cm/v201809";>
>             <requestId>0005a1edb1c0ad410a62e7142c0fb038</requestId>
>             <serviceName>CampaignCriterionService</serviceName>
>             <methodName>mutate</methodName>
>             <operations>1</operations>
>             <responseTime>279</responseTime>
>         </ResponseHeader>
>     </soap:Header>
>     <soap:Body>
>         <soap:Fault>
>             <faultcode>soap:Client</faultcode>
>             <faultstring>[CriterionError.INVALID_PROXIMITY_ADDRESS @ 
> operations[0].operand.criterion.address]</faultstring>
>             <detail>
>                 <ApiExceptionFault xmlns="
> https://adwords.google.com/api/adwords/cm/v201809";>
>                     <message>[CriterionError.INVALID_PROXIMITY_ADDRESS @ 
> operations[0].operand.criterion.address]</message>
>                     
> <ApplicationException.Type>ApiException</ApplicationException.Type>
>                     <errors xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xsi:type="CriterionError">
>                         
> <fieldPath>operations[0].operand.criterion.address</fieldPath>
>                         <fieldPathElements>
>                             <field>operations</field>
>                             <index>0</index>
>                         </fieldPathElements>
>                         <fieldPathElements>
>                             <field>operand</field>
>                         </fieldPathElements>
>                         <fieldPathElements>
>                             <field>criterion</field>
>                         </fieldPathElements>
>                         <fieldPathElements>
>                             <field>address</field>
>                         </fieldPathElements>
>                         <trigger/>
>                         
> <errorString>CriterionError.INVALID_PROXIMITY_ADDRESS</errorString>
>                         <ApiError.Type>CriterionError</ApiError.Type>
>                         <reason>INVALID_PROXIMITY_ADDRESS</reason>
>                     </errors>
>                 </ApiExceptionFault>
>             </detail>
>         </soap:Fault>
>     </soap:Body>
> </soap:Envelope>
>
>
> Suresh
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cda0ade1-e09d-476d-9a0f-403269e40128%40googlegroups.com.

Reply via email to