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
| Name | Type | Required | Description |
|---|---|---|---|
account_id | string | yes | Numeric ad account ID (digits only). |
campaign_id | string | yes | Numeric 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 class | Means | What to do | Retry |
|---|---|---|---|
CUSTOMER_NOT_FOUND | Campaign or account not found / not in scope (404). | Verify both IDs via lads_list_campaigns / lads_list_ad_accounts. | no |
PERMISSION_DENIED | Missing r_ads/rw_ads or no role on the account (403). | Confirm scope/role. | no |
TOKEN_REVOKED | Token expired/revoked (401). | needs_reauth — refresh once and retry; else reconnect. | yes |
RESOURCE_EXHAUSTED | Rate/quota limit (429). | Backoff 5/10/20s cap 60s. | yes |
PLATFORM_UNAVAILABLE | LinkedIn 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.