Hi,

I am trying to setup a script that manually changes the Max CPC by keyword 
using the Google Ads API Beta v3. The only thing I can do is change the max 
cpc bid by ad group, which changes all the bid amounts for every keyword to 
the same bid. Is there any way to do this by keyword id????? Here is what I 
tried using the AdGroupCriterionService but it does not work at all for the 
max cpc bid. 

    ga_service = client.get_service('GoogleAdsService', version='v3')
    agc_service = client.get_service('AdGroupCriterionService', version='v3'
)
    ad_group_criterion_operation = client.get_type(
'AdGroupCriterionOperation',
                                                   version='v3')
    criterion_id = '10387347805'
ad_group_criterion = ad_group_criterion_operation.update
    ad_group_criterion.resource_name = agc_service.ad_group_criteria_path(
                customer_id, ResourceName.format_composite(ad_group_id, 
criterion_id))
    ad_group_criterion.status = (client.get_type(
'AdGroupCriterionStatusEnum',
                                                             version='v3')
                                          .ENABLED)
    ad_group.cpc_bid_micros_value = bid
    fm = protobuf_helpers.field_mask(None, ad_group_criterion)
    ad_group_criterion_operation.update_mask.CopyFrom(fm)
    agc_response = agc_service.mutate_ad_group_criteria(
                  customer_id, [ad_group_criterion_operation])

It does not make sense that we can't manually change max cpc by keyword. It 
literally defeats the purpose of automating things using the API.
Any help is much appreciated though. 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/97045d75-e4f9-4fb3-8774-121fc0778f9co%40googlegroups.com.

Reply via email to