SCALIX help

← All tools

lads_get_campaign

LinkedIn Ads read low risk

Part of the LinkedIn Campaign Manager Agent.

What it does

Fetches one campaign by ID. Returns account, campaignGroup, id, name, type, format, status, costType, unitCost, dailyBudget/totalBudget (decimal strings + currencyCode), objectiveType, optimizationTargetType, pacingStrategy, creativeSelection, locale, targetingCriteria, associatedEntity, offsiteDeliveryEnabled, politicalIntent, audienceExpansionEnabled, test, and read-only servingStatuses[] (RUNNABLE or holds: CAMPAIGN_TOTAL_BUDGET_HOLD, CAMPAIGN_AUDIENCE_COUNT_HOLD, CAMPAIGN_GROUP_STATUS_HOLD, ACCOUNT_*_HOLD, CAMPAIGN_START_DATE_HOLD, CAMPAIGN_END_DATE_HOLD, etc.). Use to inspect full config and to diagnose why a campaign isn't serving. Accuracy notes: budgets/bids are decimal strings (not micros); servingStatuses is the authoritative non-serving reason; CAMPAIGN_AUDIENCE_COUNT_HOLD means the audience is below the 300-member floor.

Inputs

NameTypeRequiredDescription
account_idstringyesNumeric ad account ID (digits only).
campaign_idstringyesNumeric campaign ID (digits only); strip any urn:li:sponsoredCampaign: prefix.

Safeguards

Policy

Strict per-account isolation: read only campaigns under an account the bearer is scoped to; campaign config is for the authorizing client only.

Reminder

Read only within the authorized account; don't pool campaign config across clients.

Errors

Error classMeansWhat to doRetry
CUSTOMER_NOT_FOUNDCampaign or account not found / not in scope (404).Verify both IDs via lads_list_campaigns / lads_list_ad_accounts.no
PERMISSION_DENIEDMissing r_ads/rw_ads or no role on the account (403).Confirm scope/role.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.yes
PLATFORM_UNAVAILABLELinkedIn 5xx.Retry with backoff.yes

Edge cases

  • servingStatuses=[RUNNABLE] or empty means serving; otherwise the array enumerates holds — surface verbatim.
  • CAMPAIGN_AUDIENCE_COUNT_HOLD -> audience <300; CAMPAIGN_GROUP_STATUS_HOLD -> parent group paused.
  • Campaign in PENDING_DELETION/REMOVED still fetchable (performance data).
  • test=true campaign never serves / no analytics.
  • Expired token -> refresh + retry once.