googleads / googleads/google-ads-ruby
total_amount_micros can't be set or updated
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 83
- Forks
- 72
- Avg merge
- 16m
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the V6 failure using the shown campaign_budget update operation and the mutate_campaign_budgets call, then inspect the client path that handles total_amount_micros and the reported error code. Done means creating and updating a budget with total_amount_micros succeeds without "The error code is not in this version."
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100