Removing a campaign bid adjustment for a particular device type via the Ads API

87 views
Skip to first unread message

Michael Harkin

unread,
Nov 2, 2019, 12:39:27 PM11/2/19
to AdWords API and Google Ads API Forum
Hello! I am trying to remove device-level bid adjustments for certain campaigns in an account via a Python process running against the Ads API. That is, if I were to do what I want to do manually in the Google Ads web UI, I would click on "Devices" in the left-hand navigation bar while looking at "Campaigns", select the "edit" button next to the device's "Bid adj." column value, and change the field to be blank, so as to remove it per the instructions: "To remove a bid adjustment, leave this field blank."

I found that I am able to access the device-level bid adjustment via the CampaignCriterionService. I tried setting campaign_criterion.bid_modifier.value = 0.0 but instead of removing the criterion, changing the campaign_criterion.bid modifier.value to 0.0 sets the bid adjustment for that device to -100%. What is the correct way to go about removing this bid adjustment, as I would in the UI? Is this operation supported in the Ads API?

When I try to "remove" it via CampaignCriterionOperation, I get this error message: ""The criterion is not allowed to be removed. For example, we cannot remove any of the device criterion."

I should note that, when I try to see the attributes of this campaign bid modifier by running a search against the campaign_bid_modifier object in GoogleAdsService ("SELECT customer.id, campaign.id, campaign_bid_modifier.criterion_id FROM campaign_bid_modifier"), I can't find it. However, I am able to see it when I run a search against campaign_criterion ("SELECT customer.id, campaign.id, campaign_criterion.criterion_id FROM campaign_criterion") as well as when I run a search against ad_group_bid_modifier ("SELECT customer.id, campaign.id, ad_group_bid_modifier.criterion_id FROM ad_group_bid_modifier WHERE ad_group_bid_modifier.bid_modifier_source = 'CAMPAIGN'"). Thanks in advance for your help. 

Google Ads API Forum Advisor Prod

unread,
Nov 4, 2019, 12:57:42 PM11/4/19
to mha...@simplepart.com, adwor...@googlegroups.com

Hi Michael,

Thanks for reaching out. By setting campaign_criterion.bid_modifier.value = 0.0 you would set the bid adjustment for that device to -100% and this would opt out of a device for the selected campaigns. This will do exactly the same thing as leaving the ‘Bid adj.” column blank in the Google Ads UI rather than remove the device criterion generating the error. You could refer to this article for more details on the device bid adjustments.

Thanks and regards,
Xiaoming, Google Ads API Team



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