linkedin-ads

v1.2.2
io.github.mharnett/linkedin-ads Checked 4 days ago Published 11 days ago

MCP server for LinkedIn Campaign Manager — campaigns, creatives, and analytics

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

linkedin_ads_get_client_context

Get the current client context and health status based on working directory. Call this first to confirm which LinkedIn Ads account you're working with.

ParameterTypeDescription
working_directory *stringThe current working directory

linkedin_ads_list_accounts

List all active LinkedIn Ad Accounts the authenticated user has access to.

linkedin_ads_list_campaign_groups

List campaign groups for a LinkedIn Ad Account.

ParameterTypeDescription
account_idstringThe ad account ID (uses context if not provided)

linkedin_ads_list_campaigns

List campaigns for a LinkedIn Ad Account, with optional status and campaign group filters.

ParameterTypeDescription
account_idstringThe ad account ID
campaign_group_idstringFilter by campaign group ID
statusarrayFilter by status: ACTIVE, PAUSED, ARCHIVED, COMPLETED, CANCELED, DRAFT. Default: ACTIVE, PAUSED

linkedin_ads_campaign_performance

Get campaign-level performance metrics (impressions, clicks, spend, conversions, leads, engagement, video views, reach, frequency) for a date range. Reach = approximateMemberReach (unique members exposed); frequency = impressions / reach (computed server-side). This is the main reporting tool for weekly slides.

ParameterTypeDescription
end_date *stringEnd date YYYY-MM-DD
start_date *stringStart date YYYY-MM-DD
account_idstring
time_granularitystringALL (default), DAILY, or MONTHLY

linkedin_ads_account_performance

Get account-level aggregate performance metrics for a date range. Good for high-level summaries. Note: reach (approximateMemberReach) and the derived frequency field are not populated at pivot=ACCOUNT; query at CAMPAIGN/CAMPAIGN_GROUP via linkedin_ads_campaign_performance or linkedin_ads_analytics if you need reach.

ParameterTypeDescription
end_date *stringEnd date YYYY-MM-DD
start_date *stringStart date YYYY-MM-DD
account_idstring
time_granularitystringALL (default), DAILY, or MONTHLY

linkedin_ads_analytics

Flexible analytics query with custom pivot, fields, and filters. Use for demographic breakdowns, device splits, creative performance, etc.

ParameterTypeDescription
end_date *stringEnd date YYYY-MM-DD
pivot *stringPivot dimension: ACCOUNT, CAMPAIGN_GROUP, CAMPAIGN, CREATIVE, MEMBER_COMPANY_SIZE, MEMBER_INDUSTRY, MEMBER_SENIORITY, MEMBER_JOB_FUNCTION, MEMBER_COUNTRY_V2, IMPRESSION_DEVICE_TYPE, etc.
start_date *stringStart date YYYY-MM-DD
account_idstring
campaign_group_idsarrayFilter by campaign group IDs
campaign_idsarrayFilter by numeric string campaign IDs
fieldsarrayMetrics to return. Default: impressions, clicks, costInLocalCurrency, landingPageClicks, oneClickLeads, oneClickLeadFormOpens, externalWebsiteConversions, externalWebsitePostClickConversions, totalEng…
time_granularitystringALL (default), DAILY, or MONTHLY

linkedin_ads_list_predictive_audiences

List LinkedIn Predictive Audiences (lookalikes) in an ad account: each parent DMP segment with its name, destinations/build status, location filter, seeds and desiredAudienceCount. account_id is required (never taken from the working directory).

ParameterTypeDescription
account_id *stringAd account id

linkedin_ads_get_predictive_audience

Get one LinkedIn Predictive Audience by its parent DMP segment id: name, account, destinations (build status, size), targetingFilter (locations), seeds, desiredAudienceCount and versionTag.

ParameterTypeDescription
dmp_segment_id *stringParent DMP segment id (the id shown by list_predictive_audiences)