RE: how do I update campaign criterion?

2019-07-17 Thread Google Ads API Forum Advisor Prod
Hi Ankit,

Thank you for posting your concern.

If you want to add a new criterion, you need to use the 'ADD' operator in order 
to do it. However, please note the old criterion will not be removed 
automatically when you will add a new criterion.

Furthermore, you need to use the CampaignCriterionService as well, set the 
operator as 'REMOVE' and specify the criterion ID in the id field to remove the 
specific criterion of campaign and the same way with operator as "SET" so that 
the API will know the criterion you want to update/remove.

Let me know if you have questions/clarifications.

Regards,
Ejay
Google Ads API Team
ref:_00D1U1174p._5001U8LwwS:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1H66s0PUTOLS00WQ6umnoiRE2Fpj5jl6Djmw%40sfdc.net.


how do I update campaign criterion?

2019-07-17 Thread Ankit Agarwal
When I update a campaign with a new criterion using operator 'SET', I am 
getting an error saying 'INVALID ID'. But if I use 'ADD' operator it adds 
the new criterion but doesn't remove the earlier one.
shall I remove the non-required criterions and then add the new one? I 
don't know I am confused here.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3416f514-ba7d-40c1-9482-cbd0839f9755%40googlegroups.com.