SCALIX help

← All tools

gads_update_product_group_bid

Google Ads write medium risk

Part of the Shopping Campaign Agent.

What it does

Update the cpc_bid_micros on a Shopping listing-group UNIT node via AdGroupCriterionService.MutateAdGroupCriteria with an update_mask. Only UNIT (leaf) nodes are biddable; new_bid is in account currency and the tool converts it to cpc_bid_micros (x 1e6). A negative new_bid is refused (invalid_argument); 0 goes through with a warning, since a zero max CPC wins no auctions — to stop a product group on purpose, exclude it with gads_exclude_product_group. For PMax-retail there are no manual product-group bids (PMax uses automated bidding) — the tool detects this and refuses with guidance. Returns {listing_group_resource_name, old_bid_micros, new_bid_micros, old_bid, new_bid, bid_unit, bidding_strategy, advertising_channel_type}. Accuracy: the preview shows the current vs proposed bid in micros and in account-currency units (old_bid / new_bid) plus the campaign's bidding strategy; a campaign on an automated or portfolio strategy ignores manual product-group bids, so the change is refused (blocked_by_bidding_strategy) before Google sees it. Flow: preview (validate_only=true) -> diff (bid from->to) -> approval -> execute -> confirm + immutable audit log. PREVIEW SEMANTICS: the first call (no preview_id) is sent to the Google Ads API in validation mode — field, enum, policy and permission errors surface AT PREVIEW, nothing is changed, and the response returns a preview_id. To apply, show the preview to the user, get their approval, and re-call with that preview_id and IDENTICAL arguments within 30 minutes; changed arguments or an expired token fail closed to a fresh preview. validate_only=true forces another preview; validate_only=false alone never commits.

When to use it

Use to raise/lower the bid on a specific product group on a manual-CPC Shopping ad group. Pass new_bid in account currency (the tool converts it to micros) and target a UNIT node; the tool refuses PMax and automated/portfolio bidding, which ignore manual product bids.

Inputs

NameTypeRequiredDescription
customer_idstringyes10-digit CID; strip dashes.
listing_group_resource_namestringnoUNIT node to rebid. Omit it and pass ad_group_id + dimension + case_value to resolve the node via GAQL.
ad_group_idstringnoUsed with dimension+case_value to resolve the node.
dimensionstringnoPartition dimension for resolution: BRAND, ITEM_ID, CHANNEL, CONDITION, CATEGORY_L1..L5, TYPE_L1..L5, CUSTOM_LABEL_0..4 (same vocabulary as gads_exclude_product_group).
case_valuestringnoNode value for resolution.
new_bidnumberyesTarget bid in account currency; converted to integer micros (x 1e6).
validate_onlybooleannoOptional. true forces another preview even with a preview_id; false is DEPRECATED and no longer commits — only a valid preview_id applies the write.
preview_idstringnoOmit it to preview: nothing is applied, and the call returns a preview_id bound to this exact request. Pass it only after the user approves that preview in a later message, with the same arguments (leave out validate_only, and add any confirmation flag the preview names). Single-use, expires in 30 minutes; changed arguments need a fresh preview.

Safeguards

A change in two steps. The first call previews and changes nothing; Claude shows you the preview and applies it only after you approve, within 30 minutes and with the same arguments. Every applied change goes to the audit log. How changes are approved.

Policy

Bid changes carry no content-policy risk but require accuracy + explicit approval. Do not alter bids to mask product-policy issues. Show the from->to bid before applying.

Reminder

new_bid is in account currency (sent to Google as micros); no user data; account-isolated; nothing retained beyond this request.

Errors

Error classMeansWhat to doRetry
LISTING_GROUP_BID_ON_SUBDIVISIONTarget is a SUBDIVISION; bids only allowed on UNIT.Rebid a UNIT leaf, not a subdivision.no
BIDDING_STRATEGY_DOES_NOT_SUPPORT_MANUAL_BIDAd group uses an automated strategy (incl. PMax) that ignores manual cpc_bid_micros.Refuse; explain bids are managed automatically.no
NOT_FOUNDListing-group node not found.Resolve via gads_list_product_groups.no
INVALID_ARGUMENTnew_bid negative or not a number (refused by the tool before any read).Provide a positive amount in account currency; the tool converts it to micros.no
TOKEN_REVOKEDToken revoked/expired.Set needs_reauth; prompt reconnect.no
RESOURCE_EXHAUSTEDQuota/QPS exceeded (HTTP 429).Backoff 5/10/20s cap 60s, retry once.yes
PARTIAL_FAILURESome bid updates failed in bulk.Return per-node errors.no
PLATFORM_UNAVAILABLEBackend 5xx/INTERNAL.Retry once after backoff.yes

Edge cases

  • Currency->micros: 1.25 -> 1250000 (rounded to whole micros).
  • PMax/automated bidding -> refuse with explanation (no manual product bids).
  • Bid on SUBDIVISION -> error; only UNIT.
  • Setting bid to 0 effectively pauses serving for that group -> warn.
  • validate_only=true changes nothing; preview TTL expiry -> re-preview.