CampaignCriterionOperation does not work when bid_modifier value is set to 0.0 or None

43 views
Skip to first unread message

Jacek Siciarek

unread,
Aug 9, 2021, 2:52:05 AM8/9/21
to AdWords API and Google Ads API Forum

I use google-ads-python lib

When I try to update campaign criterion via CampaignCriterionOperation I run

criterion = operation.update 
criterion.resource_name = criterion_resource_name 
criterion.bid_modifier = bid_modifier 
self.api.update_mask(criterion, operation)

the code works fine when I set values from the 0.1 - 10.0 range

But there are two special values like
0.0 - which sets in google ads panel value -100%
None - which sets the criterion bid_modifier off (remove the field from object) - in google ads panel visible as dash

Everything works fine on lib version 9.0.0 and API v6.

Google Ads API Forum Advisor

unread,
Aug 10, 2021, 1:26:42 AM8/10/21
to sici...@gmail.com, adwor...@googlegroups.com

Hello,

Thank you for reaching out to us.

According to this guide, the modifier must be in the range: 0.1 - 10.0. Most targetable criteria types support modifiers. Use 0 (not 0.0) to opt out of a Device type. If the issue still persists, could you share to us the complete logs (request and response with request-id) generated so our team can better check? You can enable logging via this guide.

Please send the requested details via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

As an aside, you've mentioned that everything works fine on lib version 9.0.0 and API v6, have you checked on this guide when migrating to Library Version 10.0.0? In addition to that, for any concerns related to the client library, we highly suggest that you reach out to the client library owners on this link instead.

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


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