set devices while doing mutate campaignCriterion operation

32 views
Skip to first unread message

Afsane Ghafoori

unread,
Apr 9, 2020, 6:40:42 AM4/9/20
to AdWords API and Google Ads API Forum
Hi there,

I want to set devices for the campaign while create and I am using the mutate operation. based on documentation at campaignCriterion operation I should be able to set Device criterion,

 but when I tried that I got this error:

This operator cannot be applied to a criterion of this type

 I read other posts and based on this link, it was mentioned in order to exclude a device, we need to set the bid_modifier to 0 for those criterion ids

https://groups.google.com/forum/#!topic/adwords-api/j2E6iS6dud8
 
To target only Computer devices and opt out of Tablet and HighEndMobile platforms, you need to use CampaignCriterionService to set the bidModifier to 0.0 for CriterionIds 30001 and 30002. A bidModifier of 0.0 corresponds to -100%, which is used for opting out of a platform. You can set the required bid for CriterionId 30000 which corresponds to the Computer(Desktop) platform. 


given the fact that criterion id can not set in mutate operation, Could you please guide me on how to set bid_modifier to 0 for devices I want to exclude while creating the campaign?

 
criterion_id

Int64Value

Output only. The ID of the criterion.

This field is ignored during mutate.



 thanks

Google Ads API Forum Advisor Prod

unread,
Apr 9, 2020, 4:01:08 PM4/9/20
to afsane....@metigy.com, adwor...@googlegroups.com
Hi Afsane,

Please note that not all campaign types will allow you to adjust bids. Based on your error, it looks like you are trying to mutate a criterion that isn't mutable for your campaign type. Can you please provide complete logs of the request/response to the API so that I can better investigate what is causing the "This operator cannot be applied to a criterion of this type" error?

In the meantime, you may find this guide helpful as it outlines bid adjustment eligibility for each campaign type. 

Thanks,
Danica Calusin, Google Ads API Team

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