MetorialDocs

Set up LinkedIn Ads in Metorial for Claude, ChatGPT and Cursor

Share LinkedIn Ads with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 21 tools (13 read-only).

To give your team LinkedIn Ads in Claude, ChatGPT, Cursor and other AI clients, an admin shares the LinkedIn Ads integration in a Metorial portal, and each person signs in to LinkedIn Ads with their own account. Agents can discover authorized LinkedIn ad accounts, manage campaign groups, campaigns and creatives, query advertising performance, submit conversion events and retrieve sponsored lead forms and submissions. The integration has 21 tools, 13 read-only and 8 write, plus 3 triggers.

What you'll learn

  • How an admin shares LinkedIn Ads in a portal and how each person connects
  • The 16 OAuth scopes LinkedIn Ads can request, and what each one allows
  • How to keep the 13 read-only tools and reject the other 8

Before you start

Sign-in methods

MethodTypeWhat a person provides
LinkedIn Advertising (default)OAuthSigns in to LinkedIn Ads

Also available: LinkedIn Lead Sync, LinkedIn Advertising Read Only, LinkedIn Advertising and Conversions.

The portal and metorial setup use LinkedIn Advertising unless someone picks another method.

LinkedIn Advertising

People sign in to LinkedIn Ads and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
r_adsRead AdsRetrieve advertising accounts and their data
r_ads_reportingRead Ads ReportingRetrieve reporting data for advertising accounts
rw_adsRead/Write AdsManage and read an authenticated member's ad accounts
r_basicprofileRead Basic ProfileAccess basic profile information (name, photo, headline)
r_organization_adminRead Organization AdminRetrieve organization pages and reporting data
r_organization_socialRead Organization SocialRetrieve organization posts and engagement data
rw_organization_adminRead/Write Organization AdminManage organization pages and retrieve reporting data
w_member_socialWrite Member SocialPost, comment, and like posts on the member's behalf
w_organization_socialWrite Organization SocialPost, comment, and like posts on the organization's behalf
r_1st_connections_sizeRead 1st Connections SizeRetrieve the number of 1st-degree connections
rw_dmp_segmentsRead/Write DMP SegmentsManage matched audiences and DMP segments (requires separate approval)
rw_conversionsRead/Write ConversionsManage conversion rules and send conversion events (requires separate approval)
r_marketing_leadgen_automationRead Marketing Lead Gen AutomationAccess Lead Sync API for lead gen form submissions (requires separate approval)
openidOpenIDOpenID Connect for user profile access
profileProfileAccess user profile information
emailEmailAccess user email address

Use your own LinkedIn Ads OAuth app

With your own OAuth app, people see your company's name on the LinkedIn Ads consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose LinkedIn Ads and copy the Redirect URI.

Register the app with LinkedIn Ads

Create an OAuth app or client in LinkedIn Ads and add the redirect URI from Metorial as its redirect or callback URL.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the LinkedIn Ads integration.

Admin: share LinkedIn Ads in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose LinkedIn Ads. Under Auth Method, keep LinkedIn Advertising or pick another. For how members connect, choose Each person connects, so everyone signs in to LinkedIn Ads as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from LinkedIn Ads.

Choose who gets it

Add the access groups that should see LinkedIn Ads. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user LinkedIn Ads integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "linkedin ads"

Employee: connect LinkedIn Ads

In the portal

Open LinkedIn Ads in the catalog

Sign in to your portal and open LinkedIn Ads. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A LinkedIn Ads sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "linkedin ads"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses LinkedIn Advertising. To connect with LinkedIn Lead Sync instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your LinkedIn Ads connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list "linkedin ads"
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 13 read-only tools, such as get_campaign and get_creative, and lose the 8 write tools, such as create_campaign or create_creative.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list "linkedin ads"
metorial tools <integration-id>
metorial call <integration-id> list_ad_accounts -d '{}'

metorial tools lists the 21 tools, minus any you rejected. list_ad_accounts takes no input. It lists LinkedIn advertising accounts accessible to the authenticated user.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (13)

  • list_lead_forms: List LinkedIn Lead Gen Forms for an ad account. Needs accountId.
  • list_conversion_rules: List conversion rules configured for a LinkedIn ad account. Needs accountId.
  • get_ad_analytics: Retrieve advertising performance analytics from LinkedIn. Needs pivot, startDate and endDate.
  • list_ad_accounts: List LinkedIn advertising accounts accessible to the authenticated user.
  • list_creatives: List ad creatives for a specific LinkedIn campaign. Needs campaignId.
  • get_ad_account: Retrieve detailed information about a specific LinkedIn ad account by its ID, including status, budget, currency, and notification settings. Needs accountId.
  • get_campaign: Retrieve detailed information about a specific LinkedIn campaign including its configuration, targeting, budget, and status. Needs campaignId.
  • list_campaigns: List advertising campaigns within a LinkedIn ad account. Needs accountId.
  • get_lead_form_responses: Retrieve submissions/responses for LinkedIn Lead Gen Forms.
  • list_campaign_groups: List campaign groups for a LinkedIn ad account. Needs accountId.
  • get_campaign_group: Retrieve one campaign group in an authorized ad account.
  • get_current_user: Read the connected LinkedIn member identity using OpenID Connect.
  • get_creative: Retrieve one creative in an authorized ad account.

Write tools (8)

  • create_campaign_group: Create a new campaign group in a LinkedIn ad account. Needs accountId, name and status.
  • send_conversion_events: Send conversion events to LinkedIn's Conversions API (CAPI). Needs events.
  • create_creative: Create a new ad creative for a LinkedIn campaign. Needs campaignId and content.
  • create_campaign: Create a new LinkedIn advertising campaign. Needs accountId, campaignGroupId, name, objectiveType, type and costType.
  • update_campaign: Update an existing LinkedIn campaign's configuration, including status, name, budget, schedule, bid amount, and targeting. Needs campaignId.
  • update_creative: Update an existing ad creative's status or name. Needs creativeId.
  • create_conversion_rule: Create a new conversion rule for a LinkedIn ad account. Needs accountId, name and type.
  • update_campaign_group: Update an existing campaign group's name, status, budget, or schedule. Needs campaignGroupId.

Triggers

LinkedIn Ads has 3 triggers, which fire on events in LinkedIn Ads:

  • inbound_webhook
  • campaign_status_changes: Triggers when campaigns in an ad account change status (e.g., become active, paused, or encounter serving issues).
  • lead_form_submissions: Triggers when new lead form submissions are received on LinkedIn Lead Gen Forms.

Next steps