I'm trying to update *ad_group.cpc_bid_micros *using Google documentation:
Google Ads API Guide: docs/campaigns/bidding/set-bids 
<https://developers.google.com/google-ads/api/docs/campaigns/bidding/set-bids>
Google Repository: update_ad_group.py 
<https://github.com/googleads/google-ads-python/blob/599541be2ab625c7aeb84b8622a8614a6c1703d9/examples/basic_operations/update_ad_group.py>

I keep getting error in the code at line #39 
<https://github.com/googleads/google-ads-python/blob/599541be2ab625c7aeb84b8622a8614a6c1703d9/examples/basic_operations/update_ad_group.py#L39>
: *ad_group.cpc_bid_micros = cpc_bid_micro_amount*
*Error: AttributeError: Assignment not allowed to field "cpc_bid_micros" in 
protocol message object.*

I believe the error indicates on wrong value assignment (e.g - mistakenly 
sent string instead of int etc).
But I have tried different variations and still do not know what is wrong.

Can you help me understand - what am I missing?
Thank you.

------------------------------------------------------------------------------------------------------------------------
Example data I've sent (there are additional examples I tried, the same 
error always) :
customer_id = '1270565523'
ad_group_id = '108190607168'
cpc_bid_micro_amount = 42730000

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/76c52c53-860c-4242-b56a-d9bcfdc0f257n%40googlegroups.com.
  • Google Ads API - Set... 'Liad Barak' via AdWords API and Google Ads API Forum

Reply via email to