SCALIX help

← All tools

gads_list_bidding_strategies

Google Ads read low risk

Part of the Bidding Agent.

What it does

List portfolio bidding strategies via GAQL on bidding_strategy: returns name, ID/resource name, type, targets (target_cpa micros/1e6 account currency, target_roas as a ratio), status, and campaign_count (how many campaigns use it). Read-only. Money targets converted from micros; figures reconcile to the Google Ads UI Shared Library > Bid strategies within +/-1%. Standard (campaign-embedded) strategies are NOT listed here. Returns {success, data:[...], count, warnings}.

When to use it

When the user asks what portfolio bidding strategies exist and which campaigns use them.

Inputs

NameTypeRequiredDescription
customer_idstringyes10-digit CID, dashes stripped.
type_filterstringnoOptional enum filter (TARGET_CPA/TARGET_ROAS/TARGET_SPEND/TARGET_IMPRESSION_SHARE/MAXIMIZE_CONVERSIONS/MAXIMIZE_CONVERSION_VALUE), normalized.
limitintegernoGAQL LIMIT cap.

Safeguards

Policy

Read-only; no write-policy risk. Present CPA targets in account currency and ROAS as a ratio, never raw micros.

Reminder

Do not retain strategy/account data beyond the current request.

Errors

Error classMeansWhat to doRetry
CUSTOMER_NOT_FOUNDAccount not found/linked.Verify CID/authorization.no
TOKEN_REVOKEDAuthorization expired/revoked.needs_reauth.no
INVALID_ARGUMENTBad GAQL/filter (e.g. invalid type enum).Surface Google's message; fix the query.no
PERMISSION_DENIEDLacks read access / out of bearer scope.Confirm role/scope.no
RESOURCE_EXHAUSTEDRate/quota limit (HTTP 429).Backoff 5/10/20s cap 60s; honor retryDelay.yes
INTERNAL_ERRORTransient 5xx.Retry once after backoff.yes

Edge cases

  • No portfolio strategies -> success count:0 (campaigns may still use standard/embedded strategies, which don't appear here).
  • campaign_count=0 -> unused strategy; flag for cleanup.
  • target_cpa_micros -> /1e6 with currency; target_roas stays a ratio.
  • Standard (campaign-embedded) strategies are not listed by this resource -> note the distinction.
  • Truncation by limit -> warn to narrow.
  • Expired token -> refresh once and retry.