RE: set devices while doing mutate campaignCriterion operation

2020-04-09 Thread Google Ads API Forum Advisor Prod
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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/u8vWj0Q8JE9200tCjvMSy8R1Wxb44RRrqidQ%40sfdc.net.


set devices while doing mutate campaignCriterion operation

2020-04-09 Thread Afsane Ghafoori
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,

https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v2.resources#google.ads.googleads.v2.resources.CampaignCriterion

 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 3 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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9a88bfc4-3c93-43c7-9f38-808486c0f36f%40googlegroups.com.