LinkedIn Ads integration
LinkedIn Marketing API for managing B2B advertising campaigns. Create and manage ad accounts, campaigns, creatives, and audiences. Access analytics, reporting, and professional targeting options for LinkedIn advertising.
Say what should happen.
The workflow builds itself.
Common LinkedIn Ads use cases
- automate campaign management
- automate creative management
- automate conversion management
- automate campaign group management
- get ad account programmatically
- automate ad form management
- automate ad account management
- get ad form programmatically
- get campaign programmatically
- get creative programmatically
What you can do with LinkedIn Ads
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Campaign, 5 operations
create_campaignCreate campaignPOSTAgents: ask firstCreate a new ad campaign under a specified ad account. Define name, status, objective, cost type, budget, and targeting criteria.delete_campaignDelete campaignDELETEAgents: ask firstDelete a campaign by its numeric IDget_campaignGet campaignGETAgents: ask firstRetrieve details for a specific ad campaign by ID, including name, status, budget, targeting, and optimization settings.list_campaignsList campaignsGETAgents: ask firstList ad campaigns. Filter by ad account and other criteria. Supports pagination.update_campaignUpdate campaignPOSTAgents: ask firstPartially update an existing ad campaign. Modify status, name, budget, or other campaign settings.
Creative, 5 operations
create_creativeCreate creativePOSTAgents: ask firstCreate a new creative (ad content) associated with a campaign. Define the ad content, format, and landing page.delete_creativeDelete creativeDELETEAgents: ask firstDelete a creative by its URNget_creativeGet creativeGETAgents: ask firstRetrieve details for a specific creative by ID, including content, status, and associated campaign.list_creativesList creativesGETAgents: ask firstList creatives (ad content) associated with campaigns. Filter by campaign URN.update_creativeUpdate creativePOSTAgents: ask firstPartially update an existing creative. Modify intendedStatus or content properties. Send the X-RestLi-Method: PARTIAL_UPDATE header and the body as {"patch": {"$set": {"fieldName": "value"}}}.
Campaign group, 4 operations
create_campaign_groupCreate campaign groupPOSTAgents: ask firstCreate a new campaign group to organize campaigns under an ad account. Set name, status, budget, and schedule.delete_campaign_groupDelete campaign groupDELETEAgents: ask firstDelete a campaign group by its numeric IDlist_campaign_groupsList campaign groupsGETAgents: ask firstList campaign groups for an ad account. Campaign groups organize campaigns and can share budgets.update_campaign_groupUpdate campaign groupPOSTAgents: ask firstUpdate fields on an existing campaign group such as status, name, or run schedule
Conversion, 4 operations
create_conversionCreate conversionPOSTAgents: ask firstCreate a new conversion tracking rule for an ad account. Define the conversion name, type, attribution model, and associated campaigns.delete_conversionDelete conversionDELETEAgents: ask firstDelete a conversion by its numeric IDlist_conversionsList conversionsGETAgents: ask firstList conversion tracking rules configured for an ad account. Conversions track actions users take after seeing or clicking ads.update_conversionUpdate conversionPOSTAgents: ask firstUpdate an existing conversion definition such as its name or type
Ad account, 2 operations
get_ad_accountGet ad accountGETAgents: ask firstRetrieve details for a specific ad account by ID, including name, status, currency, and associated organization.get_ad_accountsGet ad accountsGETAgents: ask firstList ad accounts accessible by the authenticated user. Filter by account status. Supports cursor pagination with pageSize and pageToken parameters.
Ad form, 2 operations
get_ad_formGet ad formGETAgents: ask firstRetrieve details for a specific lead generation form by ID, including form fields, thank you message, and privacy policy.list_ad_formsList ad formsGETAgents: ask firstList lead generation forms associated with ad accounts. Lead gen forms collect user information directly within LinkedIn ads.
Ad analytic, 1 operation
get_ad_analyticsGet ad analyticsGETAgents: ask firstRetrieve analytics and performance metrics for ad campaigns. Query by date range, pivot, campaigns, and time granularity. Request metrics via the required 'fields' param: impressions, clicks, costInLocalCurrency (string), externalWebsiteConversion...
Audience count, 1 operation
get_audience_countGet audience countGETAgents: ask firstGet the estimated audience size for the given targeting criteria on an ad account
Lead form response, 1 operation
list_lead_form_responsesList lead form responsesGETAgents: ask firstList lead form responses (lead gen submissions) for a given owner and lead type
Organization, 1 operation
get_organizationGet organizationGETAgents: ask firstRetrieve details for a specific LinkedIn organization (company page) by ID. Returns name, description, industry, and other company information.
Targeting entity, 1 operation
search_targeting_entitiesSearch targeting entitiesGETAgents: ask firstSearch for targeting entities within a specific facet. Use to find specific targeting values like job titles, skills, industries, or company names for campaign targeting.
Targeting facet, 1 operation
get_targeting_facetsGet targeting facetsGETAgents: ask firstRetrieve available targeting facets (dimensions) for ad targeting. Returns facet URNs and metadata for building targeting criteria.
OAuth scopes LinkedIn Ads requires
Each operation declares the scopes LinkedIn Ads requires for it.
r_adsneeded by get_ad_account, get_ad_accounts, get_audience_count and 7 morerw_adsneeded by create_campaign, create_campaign_group, create_creative and 6 morer_ads_reportingneeded by get_ad_analyticsrw_organization_adminneeded by get_organization
Use LinkedIn Ads from Claude Code, Cursor or Codex
Connect LinkedIn Ads in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its LinkedIn Ads operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect LinkedIn Ads
- Create your workspace
Sign up free. Nothing to install.
- Connect LinkedIn Ads once
Add your LinkedIn Ads connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
LinkedIn Ads integration FAQ
What can you do with the LinkedIn Ads integration?
LiveContext exposes 28 operations on LinkedIn Ads, covering campaign, creative, campaign group and conversion. Common uses include automate campaign management, automate creative management and automate conversion management.
Which OAuth scopes does LinkedIn Ads require?
It depends on the operation: each one declares the scopes LinkedIn Ads requires for it. The most common are r_ads (10 operations), rw_ads (9 operations), r_ads_reporting (1 operation) and rw_organization_admin (1 operation).
