How to remove criterion in Google Ads API?

577 views
Skip to first unread message

Samir Sabri

unread,
Jan 30, 2022, 8:08:03 AM1/30/22
to Google Ads API and AdWords API Forum
Is there any example of removing criterion using the new Google Ads API? as we are migrating our code from Google AdWord to Google Ads

Also, in general, is there a migration docs?

Thanks in advance.

- Samir

Google Ads API Forum Advisor

unread,
Jan 31, 2022, 1:30:11 AM1/31/22
to as3...@gmail.com, adwor...@googlegroups.com

Hi Samir,

Thanks for reaching out to the Google Ads API Forum.

You may use CampaignCriterionService.MutateCampaignCriteria and  AdGroupCriterionService.MutateAdGroupCriteria() at a specific level and perform the remove operation to remove criterion from the entity.  

For migration, here are some resources to get you started:

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W2hGv:ref

Samir Sabri

unread,
Jan 31, 2022, 1:56:50 AM1/31/22
to Google Ads API and AdWords API Forum
Thanks adsapi, but what if I want to remove batch of criterion_id's in a single request?

Ngon Nguyen

unread,
Jan 31, 2022, 2:09:42 AM1/31/22
to as3...@gmail.com, Google Ads API and AdWords API Forum

Vào 20:08, CN, 30 thg 1, 2022 Samir Sabri <as3...@gmail.com> đã viết:
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 "Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/c78477cc-9646-46d1-833f-d7002250e066n%40googlegroups.com.

Google Ads API Forum Advisor

unread,
Jan 31, 2022, 7:48:13 AM1/31/22
to ngonng...@gmail.com, as3...@gmail.com, adwor...@googlegroups.com
Hi Ngon,

Please see the documentation on bulk mutates. Please let us know if there is anything else we can help with.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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