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
- A portal with at least one access group
- An account with LinkedIn Ads for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| LinkedIn Advertising (default) | OAuth | Signs 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:
| Scope | Name | What it allows |
|---|---|---|
r_ads | Read Ads | Retrieve advertising accounts and their data |
r_ads_reporting | Read Ads Reporting | Retrieve reporting data for advertising accounts |
rw_ads | Read/Write Ads | Manage and read an authenticated member's ad accounts |
r_basicprofile | Read Basic Profile | Access basic profile information (name, photo, headline) |
r_organization_admin | Read Organization Admin | Retrieve organization pages and reporting data |
r_organization_social | Read Organization Social | Retrieve organization posts and engagement data |
rw_organization_admin | Read/Write Organization Admin | Manage organization pages and retrieve reporting data |
w_member_social | Write Member Social | Post, comment, and like posts on the member's behalf |
w_organization_social | Write Organization Social | Post, comment, and like posts on the organization's behalf |
r_1st_connections_size | Read 1st Connections Size | Retrieve the number of 1st-degree connections |
rw_dmp_segments | Read/Write DMP Segments | Manage matched audiences and DMP segments (requires separate approval) |
rw_conversions | Read/Write Conversions | Manage conversion rules and send conversion events (requires separate approval) |
r_marketing_leadgen_automation | Read Marketing Lead Gen Automation | Access Lead Sync API for lead gen form submissions (requires separate approval) |
openid | OpenID | OpenID Connect for user profile access |
profile | Profile | Access user profile information |
email | Access 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:
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
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.
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 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. NeedsaccountId.list_conversion_rules: List conversion rules configured for a LinkedIn ad account. NeedsaccountId.get_ad_analytics: Retrieve advertising performance analytics from LinkedIn. Needspivot,startDateandendDate.list_ad_accounts: List LinkedIn advertising accounts accessible to the authenticated user.list_creatives: List ad creatives for a specific LinkedIn campaign. NeedscampaignId.get_ad_account: Retrieve detailed information about a specific LinkedIn ad account by its ID, including status, budget, currency, and notification settings. NeedsaccountId.get_campaign: Retrieve detailed information about a specific LinkedIn campaign including its configuration, targeting, budget, and status. NeedscampaignId.list_campaigns: List advertising campaigns within a LinkedIn ad account. NeedsaccountId.get_lead_form_responses: Retrieve submissions/responses for LinkedIn Lead Gen Forms.list_campaign_groups: List campaign groups for a LinkedIn ad account. NeedsaccountId.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. NeedsaccountId,nameandstatus.send_conversion_events: Send conversion events to LinkedIn's Conversions API (CAPI). Needsevents.create_creative: Create a new ad creative for a LinkedIn campaign. NeedscampaignIdandcontent.create_campaign: Create a new LinkedIn advertising campaign. NeedsaccountId,campaignGroupId,name,objectiveType,typeandcostType.update_campaign: Update an existing LinkedIn campaign's configuration, including status, name, budget, schedule, bid amount, and targeting. NeedscampaignId.update_creative: Update an existing ad creative's status or name. NeedscreativeId.create_conversion_rule: Create a new conversion rule for a LinkedIn ad account. NeedsaccountId,nameandtype.update_campaign_group: Update an existing campaign group's name, status, budget, or schedule. NeedscampaignGroupId.
Triggers
LinkedIn Ads has 3 triggers, which fire on events in LinkedIn Ads:
inbound_webhookcampaign_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
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use LinkedIn Ads there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- LinkedIn Ads on metorial.com: the integration overview