Remove ad group bid modifier

83 views
Skip to first unread message

Rodolfo Saldanha

unread,
Jun 18, 2021, 10:31:03 AM6/18/21
to AdWords API and Google Ads API Forum
Hey,

I'd like to remove ad group bid modifiers, but I managed only to update the resource. I'm currently setting ad_group_bid_modifier.bid_modifier to 1 and I believe it works because I see the adjustment as 0% on Google Ads. However, I'd like to fully remove the bid modifier programmatically and not appear the 0%. Is that possible or do I have to do the removal manually in order to that happen?

Best regards,

Rodolfo Saldanha

Google Ads API Forum Advisor

unread,
Jun 22, 2021, 3:03:24 AM6/22/21
to rodolfo....@flixbus.com, adwor...@googlegroups.com
Hi Rodolfo,

Thank you for your question.

You can refer to this guide for more information on how you can manage your bid adjustments (modifiers). I hope this helps.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2IwqGL:ref

Mat

unread,
Jun 22, 2021, 11:59:17 AM6/22/21
to AdWords API and Google Ads API Forum
Hi Rodolfo,

since the guide linked by Peter only states to show examples on how to remove AdGroup Bid Modifiers but fails to actually provide such an example, here how it should work (using the Python library):

ad_group_bm_service = googleads_client.get_service('AdGroupBidModifierService')
operations = []
ad_group_bid_modifier_operation = googleads_client.get_type('AdGroupBidModifierOperation')
resource_name = f"customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}"
ad_group_bid_modifier_operation.remove = resource_name
operations.append(ad_group_bid_modifier_operation)
ad_group_bm_response = (
ad_group_bm_service.mutate_ad_group_bid_modifiers(
customer_id=str(customer_id), operations=operations)
)

Regards
Mat

Google Ads API Forum Advisor

unread,
Jun 24, 2021, 2:16:29 AM6/24/21
to m...@keyword-experte.de, adwor...@googlegroups.com

Hello Mat,

Thanks for sharing a sample code.

Just to add context here regardless of what client library is used. When removing AdGroup Bid Modifiers, use the remove operation under the AdGroupBidModifierOperation.

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


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