MutateCampaigns - adding/removing proximities

46 views
Skip to first unread message

Kyle Werve

unread,
Feb 11, 2021, 2:37:04 PM2/11/21
to AdWords API and Google Ads API Forum
I am trying to understand from the documentation if it is possible to use MutateCampaigns in order to add and remove proximities based on latitude/longitude to existing campaigns?  And if so, are there sample JSON request/response examples that could be shared on how to accomplish this?

Any guidance here would be appreciated.
Thanks,
Kyle

Google Ads API Forum Advisor Prod

unread,
Feb 12, 2021, 9:48:25 AM2/12/21
to adwor...@googlegroups.com
Hi Kyle,

The MutateCampaignCriteria can be used to add/remove proximities to campaigns in the API. You can refer to this example which also leads to a full code example.

Cheers,
Anthony

Google Logo
Anthony Madrigal
Google Ads API Team
 


ref:_00D1U1174p._5004Q2CQAM8:ref

Kyle Werve

unread,
Feb 18, 2021, 9:44:30 AM2/18/21
to AdWords API and Google Ads API Forum
Thanks for the response Anthony.  I am looking for a REST api with JSON request/response examples, do you know if these exist?

Google Ads API Forum Advisor Prod

unread,
Feb 19, 2021, 3:33:26 AM2/19/21
to adwor...@googlegroups.com

Hi Kyle,

Thanks for getting back to us. I work with Anthony and allow me to assist you this time.

With regard to the REST API that you're asking, you can refer to this REST Interface guide of the Google Ads API. You can also refer to the Perl library as it is implemented on top of the REST interface. In the previous response, Anthony provided you an example on how Target campaigns for proximity to a location. You can refer to the Perl implementation instead for your REST sample.

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


ref:_00D1U1174p._5004Q2CQAM8:ref

Kyle Werve

unread,
Mar 1, 2021, 5:47:22 PM3/1/21
to AdWords API and Google Ads API Forum
Thanks for the reply Mark!  Do you have cURL representations of both the add and remove proximities to/from a campaign?

Google Ads API Forum Advisor Prod

unread,
Mar 2, 2021, 12:23:13 PM3/2/21
to adwor...@googlegroups.com

Hi Kyle,

Thank you for reaching out. We don’t have the exact cURL example on adding and removing proximities to/from a campaign. You could refer to these examples and use the MutateCampaignCriteriaRequest to add/remove proximities.

Thanks and regards,
Xiaoming, Google Ads API Team
 


Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2CQAM8:ref
Reply all
Reply to author
Forward
0 new messages