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.
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 campaignPOSTCreate a new ad campaign under a specified ad account. Define name, status, objective, cost type, budget, and targeting criteria.delete_campaignDelete campaignDELETEDelete a campaign by its numeric IDget_campaignGet campaignGETRetrieve details for a specific ad campaign by ID, including name, status, budget, targeting, and optimization settings.list_campaignsList campaignsGETList ad campaigns. Filter by ad account and other criteria. Supports pagination.update_campaignUpdate campaignPOSTPartially update an existing ad campaign. Modify status, name, budget, or other campaign settings.
Creative, 5 operations
create_creativeCreate creativePOSTCreate a new creative (ad content) associated with a campaign. Define the ad content, format, and landing page.delete_creativeDelete creativeDELETEDelete a creative by its URNget_creativeGet creativeGETRetrieve details for a specific creative by ID, including content, status, and associated campaign.list_creativesList creativesGETList creatives (ad content) associated with campaigns. Filter by campaign URN.update_creativeUpdate creativePOSTPartially 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 groupPOSTCreate a new campaign group to organize campaigns under an ad account. Set name, status, budget, and schedule.delete_campaign_groupDelete campaign groupDELETEDelete a campaign group by its numeric IDlist_campaign_groupsList campaign groupsGETList campaign groups for an ad account. Campaign groups organize campaigns and can share budgets.update_campaign_groupUpdate campaign groupPOSTUpdate fields on an existing campaign group such as status, name, or run schedule
Conversion, 4 operations
create_conversionCreate conversionPOSTCreate a new conversion tracking rule for an ad account. Define the conversion name, type, attribution model, and associated campaigns.delete_conversionDelete conversionDELETEDelete a conversion by its numeric IDlist_conversionsList conversionsGETList conversion tracking rules configured for an ad account. Conversions track actions users take after seeing or clicking ads.update_conversionUpdate conversionPOSTUpdate an existing conversion definition such as its name or type
Ad account, 2 operations
get_ad_accountGet ad accountGETRetrieve details for a specific ad account by ID, including name, status, currency, and associated organization.get_ad_accountsGet ad accountsGETList 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 formGETRetrieve details for a specific lead generation form by ID, including form fields, thank you message, and privacy policy.list_ad_formsList ad formsGETList 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 analyticsGETRetrieve 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 countGETGet the estimated audience size for the given targeting criteria on an ad account
Lead form response, 1 operation
list_lead_form_responsesList lead form responsesGETList lead form responses (lead gen submissions) for a given owner and lead type
Organization, 1 operation
get_organizationGet organizationGETRetrieve 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 entitiesGETSearch 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 facetsGETRetrieve 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).
