Hello Andrew,

If you look at the log for your response, you will see that in the update_mask 
field the amount_micros is missing, which is the reason why the amount is not 
being changed.

I am not a Python expert, but I think the reason for this issue is in the line

client.copy_from(campaign_budget_operation.update_mask, 
protobuf_helpers.field_mask(None, campaign._pb))

Which is passing a campaign object to protobuf_helpers.field_mask.

Instead, I think it should be, in your code,

client.copy_from(campaign_budget_operation.update_mask, 
protobuf_helpers.field_mask(None, campaign_budget_resource_name._pb))

This should create the right field mask for the API request to indicate that 
the amount_micros field is being mutated, which in turn should result in the 
value being actually updated by your API request.

Hope this helps,

Mattia Tommasone
Google Ads API Team
ref:_00D1U1174p._5004Q2bxZGB: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 
"Google Ads API and AdWords 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/WOwGk000000000000000000000000000000000000000000000RDRZYK00l8KiFvwtTDexQqJh-FhFbg%40sfdc.net.
  • Tr... Andrew Kloos
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to