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.
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.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Campaign, 5 operations
- POSTcreate_campaign
Create a new ad campaign under a specified ad account. Define name, status, objective, cost type, budget, and targeting criteria.
- DELETEdelete_campaign
Delete a campaign by its numeric ID
- GETget_campaign
Retrieve details for a specific ad campaign by ID, including name, status, budget, targeting, and optimization settings.
- GETlist_campaigns
List ad campaigns. Filter by ad account and other criteria. Supports pagination.
- POSTupdate_campaign
Partially update an existing ad campaign. Modify status, name, budget, or other campaign settings.
Creative, 5 operations
- POSTcreate_creative
Create a new creative (ad content) associated with a campaign. Define the ad content, format, and landing page.
- DELETEdelete_creative
Delete a creative by its URN
- GETget_creative
Retrieve details for a specific creative by ID, including content, status, and associated campaign.
- GETlist_creatives
List creatives (ad content) associated with campaigns. Filter by campaign URN.
- POSTupdate_creative
Partially 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
- POSTcreate_campaign_group
Create a new campaign group to organize campaigns under an ad account. Set name, status, budget, and schedule.
- DELETEdelete_campaign_group
Delete a campaign group by its numeric ID
- GETlist_campaign_groups
List campaign groups for an ad account. Campaign groups organize campaigns and can share budgets.
- POSTupdate_campaign_group
Update fields on an existing campaign group such as status, name, or run schedule
Conversion, 4 operations
- POSTcreate_conversion
Create a new conversion tracking rule for an ad account. Define the conversion name, type, attribution model, and associated campaigns.
- DELETEdelete_conversion
Delete a conversion by its numeric ID
- GETlist_conversions
List conversion tracking rules configured for an ad account. Conversions track actions users take after seeing or clicking ads.
- POSTupdate_conversion
Update an existing conversion definition such as its name or type
Ad account, 2 operations
- GETget_ad_account
Retrieve details for a specific ad account by ID, including name, status, currency, and associated organization.
- GETget_ad_accounts
List ad accounts accessible by the authenticated user. Filter by account status. Supports cursor pagination with pageSize and pageToken parameters.
Ad form, 2 operations
- GETget_ad_form
Retrieve details for a specific lead generation form by ID, including form fields, thank you message, and privacy policy.
- GETlist_ad_forms
List lead generation forms associated with ad accounts. Lead gen forms collect user information directly within LinkedIn ads.
Ad analytic, 1 operation
- GETget_ad_analytics
Retrieve 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
- GETget_audience_count
Get the estimated audience size for the given targeting criteria on an ad account
Lead form response, 1 operation
- GETlist_lead_form_responses
List lead form responses (lead gen submissions) for a given owner and lead type
Organization, 1 operation
- GETget_organization
Retrieve details for a specific LinkedIn organization (company page) by ID. Returns name, description, industry, and other company information.
Targeting entity, 1 operation
- GETsearch_targeting_entities
Search 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
- GETget_targeting_facets
Retrieve 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).
Popular integrations
Instagram API with Instagram Login (graph.instagram.com). Manage a Business/Creator Instagram account…
Messaging platform API for building bots and integrations. Send messages, manage chats and channels, handle…
Google email service API for sending, receiving, and managing emails. Access messages, threads, labels,…
Google's video platform API for accessing video, channel, playlist, and comment data
Social media platform API for content creators and businesses. Access user info, manage videos, get…
Social media platform API for posting, reading, and managing Twitter/X content. Post tweets, read timelines,…
Professional networking platform API for managing profiles, connections, and content. Share posts, manage…
AI API from xAI (Elon Musk's AI company) powering Grok models. Access state-of-the-art language models with…