google-ads-ruby icon indicating copy to clipboard operation
google-ads-ruby copied to clipboard

total_amount_micros can't be set or updated

Open vitorrd opened this issue 5 years ago • 0 comments

Hello.

This issue is happening on V6, and I couldn't seem to find any way to work around this, as both creating a new budget and updating one while setting total_amount_micros both fail with error "The error code is not in this version."

The code below is the minimum reproduction I could make of this.

                budget_operation = client.operation.update_resource.campaign_budget(budget_resource_name) do |budget|
                    budget.total_amount_micros = req.total_amount_micros
                end

                response = client.service.campaign_budget.mutate_campaign_budgets(
                    customer_id: customer_id,
                    operations: [budget_operation],
                )

Thanks.

vitorrd avatar Jan 10 '21 12:01 vitorrd