set proximity radius not doing anything

51 views
Skip to first unread message

mo...@autoleadstar.com

unread,
May 1, 2019, 5:12:19 PM5/1/19
to adwor...@googlegroups.com
Hi,

I am trying to update the radius of my campaign location. (from 25 to 30)
The call goes through but doesn't actually do anything.

(I know that this can be done using the web interface - though not the address.
I've also tried sending just the radius without the address, but same result - no change.)

I'm setting RadiusInUnits.
See the request and response below.
Notice that the request says 30, but the response says 25.

Thanks,
Moshe

----

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<ns1:RequestHeader>
<ns1:clientCustomerId>XXX-XXX-XXXX</ns1:clientCustomerId>
<ns1:developerToken>REDACTED</ns1:developerToken>
<ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/40.0.0, PHP/7.1.25)</ns1:userAgent>
<ns1:validateOnly>false</ns1:validateOnly>
<ns1:partialFailure>false</ns1:partialFailure>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>SET</ns1:operator>
<ns1:operand>
<ns1:campaignId>1842222689</ns1:campaignId>
<ns1:criterion xsi:type="ns1:Proximity">
<ns1:id>723965095885</ns1:id>
<ns1:radiusDistanceUnits>MILES</ns1:radiusDistanceUnits>
<ns1:radiusInUnits>30</ns1:radiusInUnits>
<ns1:address>
<ns1:streetAddress>XXXXXXXXXXXXXXX</ns1:streetAddress>
<ns1:cityName>XXXXXXX</ns1:cityName>
<ns1:postalCode>XXXXX</ns1:postalCode>
<ns1:countryCode>XX</ns1:countryCode>
</ns1:address>
</ns1:criterion>
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">
<requestId>000587d2358c79210a37c446e906ecff</requestId>
<serviceName>CampaignCriterionService</serviceName>
<methodName>mutate</methodName>
<operations>1</operations>
<responseTime>89</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<mutateResponse xmlns="https://adwords.google.com/api/adwords/cm/v201809">
<rval>
<ListReturnValue.Type>CampaignCriterionReturnValue</ListReturnValue.Type>
<value>
<campaignId>1842222689</campaignId>
<isNegative>false</isNegative>
<criterion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Proximity">
<id>723965095885</id>
<type>PROXIMITY</type>
<Criterion.Type>Proximity</Criterion.Type>
<geoPoint>
<latitudeInMicroDegrees>45527058</latitudeInMicroDegrees>
<longitudeInMicroDegrees>-122654006</longitudeInMicroDegrees>
</geoPoint>
<radiusDistanceUnits>MILES</radiusDistanceUnits>
<radiusInUnits>25.0</radiusInUnits>
<address>
<streetAddress>XXXXXXXXXXXXXXX</streetAddress>
<cityName>XXXX</cityName>
<postalCode>XXXXX</postalCode>
<countryCode>XX</countryCode>
</address>
</criterion>
<campaignCriterionStatus>ACTIVE</campaignCriterionStatus>
<CampaignCriterion.Type>CampaignCriterion</CampaignCriterion.Type>
</value>
</rval>
</mutateResponse>
</soap:Body>
</soap:Envelope>

googleadsapi...@google.com

unread,
May 2, 2019, 2:56:05 AM5/2/19
to AdWords API and Google Ads API Forum
Hi Moshe,

Thank you for reaching out.

Upon checking the logs, it appears that you have set the right services and objects to adjust the radius. Can you first confirm if the field radiusInUnits is set as a double data type? If you think you have set this correctly, let me know so I could have the team investigate this.

Take note that I have also redacted some information in the logs you provided for confidentiality.

Regards,
Dannison
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

On 05/01/19 20:10:03 mo...@autoleadstar.com wrote:
Hi,

I am trying to update the radius of my campaign location. (from 25 to 30)
The call goes through but doesn't actually do anything.

(I know that this can be done using the web interface - though not the address.
I've also tried sending just the radius without the address, but same result - no change.)

I'm setting RadiusInUnits.
See the request and response below.
Notice that the request says 30, but the response says 25.

Thanks,
Moshe

----

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<ns1:RequestHeader>
            <ns1:clientCustomerId>779-948-7703</ns1:clientCustomerId>

<ns1:developerToken>REDACTED</ns1:developerToken>
<ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/40.0.0, PHP/7.1.25)</ns1:userAgent>
<ns1:validateOnly>false</ns1:validateOnly>
<ns1:partialFailure>false</ns1:partialFailure>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>SET</ns1:operator>
<ns1:operand>
<ns1:campaignId>1842222689</ns1:campaignId>
<ns1:criterion xsi:type="ns1:Proximity">
<ns1:id>723965095885</ns1:id>
<ns1:radiusDistanceUnits>MILES</ns1:radiusDistanceUnits>
<ns1:radiusInUnits>30</ns1:radiusInUnits>
<ns1:address>
                            <ns1:streetAddress>633 NE 12th Ave, Portland, OR 97232</ns1:streetAddress>
<ns1:cityName>Portland</ns1:cityName>
<ns1:postalCode>97232</ns1:postalCode>
<ns1:countryCode>US</ns1:countryCode>

</ns1:address>
</ns1:criterion>
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

mo...@autoleadstar.com

unread,
May 2, 2019, 9:45:11 AM5/2/19
to AdWords API and Google Ads API Forum
Hi, as I am using the SDK and this is anyway going over as SOAP, the type that I had set should not matter. But just to be sure, I sent another request with radius = 25.1. Same result - no change. See below for request and response:

POST /api/adwords/cm/v201809/CampaignCriterionService?wsdl HTTP/1.1
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/7.1.25
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1212
Authorization: REDACTED

<?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:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<ns1:RequestHeader>
<ns1:clientCustomerId>779-948-7703</ns1:clientCustomerId>
<ns1:developerToken>REDACTED</ns1:developerToken>
<ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/40.0.0, PHP/7.1.25)</ns1:userAgent>
<ns1:validateOnly>false</ns1:validateOnly>
<ns1:partialFailure>false</ns1:partialFailure>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>SET</ns1:operator>
<ns1:operand>
                    <ns1:campaignId>1848079589</ns1:campaignId>

<ns1:criterion xsi:type="ns1:Proximity">
                        <ns1:id>725320367931</ns1:id>

<ns1:radiusDistanceUnits>MILES</ns1:radiusDistanceUnits>
                        <ns1:radiusInUnits>25.1</ns1:radiusInUnits>

<ns1:address>
<ns1:streetAddress>633 NE 12th Ave, Portland, OR 97232</ns1:streetAddress>
<ns1:cityName>Portland</ns1:cityName>
<ns1:postalCode>97232</ns1:postalCode>
<ns1:countryCode>US</ns1:countryCode>
</ns1:address>
</ns1:criterion>
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Date: Thu, 02 May 2019 07:11:32 GMT
Expires: Thu, 02 May 2019 07:11:32 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: quic=":443"; ma=2592000; v="46,44,43,39"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">
            <requestId>000587e257fbe7150a37e1064c0e42a9</requestId>

<serviceName>CampaignCriterionService</serviceName>
<methodName>mutate</methodName>
<operations>1</operations>
            <responseTime>178</responseTime>

</ResponseHeader>
</soap:Header>
<soap:Body>
        <mutateResponse xmlns="https://adwords.google.com/api/adwords/cm/v201809">
<rval>
<ListReturnValue.Type>CampaignCriterionReturnValue</ListReturnValue.Type>
<value>
                    <campaignId>1848079589</campaignId>

<isNegative>false</isNegative>
<criterion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Proximity">
                        <id>725320367931</id>

<type>PROXIMITY</type>
<Criterion.Type>Proximity</Criterion.Type>
<geoPoint>
<latitudeInMicroDegrees>45527058</latitudeInMicroDegrees>
<longitudeInMicroDegrees>-122654006</longitudeInMicroDegrees>
</geoPoint>
<radiusDistanceUnits>MILES</radiusDistanceUnits>
                        <radiusInUnits>30.0</radiusInUnits>
<address>
<streetAddress>633 NE 12th Ave, Portland, OR 97232</streetAddress>
<cityName>Portland</cityName>
<postalCode>97232</postalCode>
<countryCode>US</countryCode>

</address>
</criterion>
<campaignCriterionStatus>ACTIVE</campaignCriterionStatus>
<CampaignCriterion.Type>CampaignCriterion</CampaignCriterion.Type>
</value>
</rval>
</mutateResponse>
</soap:Body>
</soap:Envelope>

googleadsapi...@google.com

unread,
May 6, 2019, 10:43:18 PM5/6/19
to mo...@autoleadstar.com, AdWords API and Google Ads API Forum
Hello,

I've filed an issue since this does seem unexpected. I'll get back to you when I've heard back on the issue. Thanks for providing such great detail!

Best,
Nadine Sundquist, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

googleadsapi...@google.com

unread,
May 8, 2019, 1:22:13 AM5/8/19
to mo...@autoleadstar.com, AdWords API and Google Ads API Forum
Greetings!

I have an answer. Criteria are immutable, so you can't do a SET. I've just never tried this for this situation before, so I didn't realize this is how the system would react. Otherwise, I would have been able to tell you right way. Your request is just silently being ignored rather than throwing an error. To change the radius of a proximity, you need to delete the current one and add a new one with the updated radius. Please give this a try.

Thanks,
Nadine, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Reply all
Reply to author
Forward
0 new messages