googleads / googleads/google-ads-ruby

total_amount_micros can't be set or updated

Open
#282 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.