SCALIX help

← All tools

lads_get_campaign_group

LinkedIn Ads read low risk

Part of the LinkedIn Campaign Manager Agent.

What it does

Fetches one campaign group by ID within an account. Returns account, id, name, status (ACTIVE|PAUSED|DRAFT|ARCHIVED|CANCELED|COMPLETED|PENDING_DELETION|REMOVED), runSchedule{start,end}, totalBudget/dailyBudget (decimal strings + currencyCode), objectiveType, budgetOptimization (bidStrategy/strategy), allowedCampaignTypes (ENTERPRISE only), servingStatuses[] (RUNNABLE or holds like CAMPAIGN_GROUP_TOTAL_BUDGET_HOLD, BILLING_HOLD, CAMPAIGN_GROUP_END_DATE_HOLD), backfilled (true = ENTERPRISE default, immutable), test. Use to confirm a group's budget cap and serving eligibility before adding/launching campaigns. Accuracy notes: budgets are decimal strings (not micros); servingStatuses is the authoritative reason children aren't serving; backfilled=true marks the immutable default group.

Inputs

NameTypeRequiredDescription
account_idstringyesNumeric ad account ID (digits only); strip any urn prefix.
campaign_group_idstringyesNumeric campaign group ID (digits only); strip any urn:li:sponsoredCampaignGroup: prefix.

Safeguards

Policy

Strict per-account isolation: read only groups under an account the bearer is scoped to. Group data is for the authorizing client's reporting only — never pooled across clients.

Reminder

Read only within the bearer's authorized account; do not pool group data across clients.

Errors

Error classMeansWhat to doRetry
CUSTOMER_NOT_FOUNDCampaign group or account not found / not in scope (404).Verify both IDs via lads_list_campaign_groups / lads_list_ad_accounts.no
PERMISSION_DENIEDToken lacks r_ads/rw_ads or member has no role on the account (403).Confirm scope and role; do not retry without them.no
TOKEN_REVOKEDToken expired/revoked (401).needs_reauth — refresh once and retry; else reconnect.yes
RESOURCE_EXHAUSTEDRate/quota limit (429).Backoff 5/10/20s cap 60s; honor reset header.yes
PLATFORM_UNAVAILABLELinkedIn 5xx.Retry with backoff; report if persistent.yes

Edge cases

  • backfilled=true -> ENTERPRISE default group; surface that its fields are immutable.
  • servingStatuses lists CAMPAIGN_GROUP_TOTAL_BUDGET_HOLD/CAMPAIGN_GROUP_END_DATE_HOLD etc. explaining why children won't serve.
  • allowedCampaignTypes present only for ENTERPRISE accounts (absent for BUSINESS, where all types are allowed).
  • Group in PENDING_DELETION/REMOVED still fetchable (performance data) — mark non-operable.
  • Expired token -> refresh + retry once.