Re: How to Bid at the Criterion Level using Google Ads Api
Hello Paul, Your code helped me a lot to make mine. So i will add how i did one code to bid at ad group level. Thanks for this tread. ad_group_criterion_service = client.get_service('AdGroupCriterionService', version='v2') ad_group_criterion_operation = client.get_type('AdGroupCriterionOperation', version='v2') ad_group_criterion = ad_group_criterion_operation.update ad_group_criterion.resource_name = ad_group_criterion_service.ad_group_criteria_path( customer_id, ResourceName.format_composite(ad_group_id, criteria_id)) ad_group_criterion.bid_modifier.value = 3 fm = protobuf_helpers.field_mask(None, ad_group_criterion) ad_group_criterion_operation.update_mask.CopyFrom(fm) ad_group_criterion_service.mutate_ad_group_criteria(customer_id, [ad_group_criterion_operation]) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/82de0bca-f28e-463a-a7ca-f0e2bb9f25b5%40googlegroups.com.
RE: How to Bid at the Criterion Level using Google Ads Api
Hello Paul, I was able to set the cpc_bid_micros for the keyword using the Python client library. Please find the code snippet below as a reference. ad_group_criterion.ad_group.value = ad_group_service.ad_group_path(customer_id, ad_group_id) ad_group_criterion.status = client.get_type('AdGroupCriterionStatusEnum').ENABLED ad_group_criterion.keyword.text.value = keyword ad_group_criterion.cpc_bid_micros.value = 256 ad_group_criterion.keyword.match_type = client.get_type('KeywordMatchTypeEnum').EXACT Could you please share the complete request and response logs which will help us troubleshoot the issue? Could you please share details of the Python client library version that you're using? Thanks, Bharani, Google Ads API Team ref:_00D1U1174p._5001UBloxd: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/08ZrX0PSP0TG00MleqalyJSwqbd-j0MH0odA%40sfdc.net.