All connectors

Linkedin Ads

Linkedin Ads Connector for AI Agents

Give agents tools for secure, real-time access to fetch, search, write, and sync across every system, with replication, entity mapping, and auth built-in.

20,000+
community members
6,000+
daily active companies
2PB+
synced/month
900+
contributors

About this Connector

Connector for the LinkedIn Ads Marketing API. Provides access to ad accounts, campaigns, campaign groups, creatives, conversions, and ad analytics data. Supports OAuth 2.0 and direct access token authentication.

CRM

Sales Analytics

Customer Data

advertising, campaign analytics, paid media

Version Information

Package version

0.1.1

Connector version

1.0.1

SDK commit

e50d6dd2afcab025208f4c255431a51c213a1c5c

Support Open Source

Check us out on Github and join the Airbyte community

Github

Installation & Usage

Get started with the Linkedin Ads connector in minutes

1

Install Package

Using uv or pip

bash

Copy
uv pip install airbyte-agent-linkedin-ads

2

Import

Initialize and use

python

Copy
from airbyte_agent_linkedin_ads import LinkedinAdsConnector
from airbyte_agent_linkedin_ads.models import LinkedinAdsAuthConfig

connector = LinkedinAdsConnector(
    auth_config=LinkedinAdsAuthConfig(
        refresh_token="<OAuth 2.0 refresh token for automatic renewal>",
        client_id="<OAuth 2.0 application client ID>",
        client_secret="<OAuth 2.0 application client secret>"
    )
)

3

Tool

Add tools to your agent

python

Copy
@agent.tool_plain # assumes you're using Pydantic AI
@LinkedinAdsConnector.tool_utils
async def linkedin_ads_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Supported Entities & Actions

Access all your Linkedin Ads data through a unified API

Lorem ipsum

Lorem ipsum

| Entity | Actions |\n|--------|---------|\n| Accounts | [List](./REFERENCE.md#accounts-list), [Get](./REFERENCE.md#accounts-get), [Search](./REFERENCE.md#accounts-search) |\n| Account Users | [List](./REFERENCE.md#account-users-list), [Search](./REFERENCE.md#account-users-search) |\n| Campaigns | [List](./REFERENCE.md#campaigns-list), [Get](./REFERENCE.md#campaigns-get), [Search](./REFERENCE.md#campaigns-search) |\n| Campaign Groups | [List](./REFERENCE.md#campaign-groups-list), [Get](./REFERENCE.md#campaign-groups-get), [Search](./REFERENCE.md#campaign-groups-search) |\n| Creatives | [List](./REFERENCE.md#creatives-list), [Get](./REFERENCE.md#creatives-get), [Search](./REFERENCE.md#creatives-search) |\n| Conversions | [List](./REFERENCE.md#conversions-list), [Get](./REFERENCE.md#conversions-get), [Search](./REFERENCE.md#conversions-search) |\n| Ad Campaign Analytics | [List](./REFERENCE.md#ad-campaign-analytics-list), [Search](./REFERENCE.md#ad-campaign-analytics-search) |\n| Ad Creative Analytics | [List](./REFERENCE.md#ad-creative-analytics-list), [Search](./REFERENCE.md#ad-creative-analytics-search) |

Example Prompts

The Linkedin Ads connector is optimized to handle prompts like these

Lorem ipsum

List all my LinkedIn ad accounts - Show me all campaigns in my ad account - List all campaign groups - Show me the creatives for my campaigns - List all conversions configured for my ad accounts - Show me account users for my LinkedIn ads accounts - Which campaigns have the highest click-through rate? - What is the total ad spend across all campaigns this month? - Show me campaigns with status ACTIVE - Which creatives have the most impressions? - Compare campaign performance by cost type

Why Airbyte for AI Agents?

Built for production AI workloads with enterprise-grade reliability

Agent-Native Design

Structured, LLM-friendly schemas optimized for AI agent consumption with natural language query support.

Secure Authentication

Built-in OAuth 2.0 handling with automatic token refresh. No hard-coded credentials.

Production Ready

Battle-tested connectors with comprehensive error handling, logging, and retry logic.

Open Source

Fully open source under the MIT license. Contribute, customize, and extend freely.

Works with your favorite frameworks

Use the Linkedin Ads connector with any AI agent framework

đŸĻœ

LangChain

đŸĻ™

LlamaIndex

🤖

CrewAI

⚡

AutoGen

🧠

OpenAI Agents SDK

🔮

Claude Agents SDK

Frequently Asked Questions

Didn't find your answer? Please don't hesitate to reach out.

How do I authenticate with Linkedin Ads?

The LinkedIn Ads connector supports OAuth 2.0 authentication using a refresh token, client ID, and client secret for automatic token renewal. Alternatively, in hosted mode, credentials are stored securely in Airbyte Cloud and you authenticate using your Airbyte client ID and client secret instead.

Can I use this connector with any AI agent framework?

The connector is compatible with any Python-based AI agent framework including LangChain, LlamaIndex, CrewAI, Pydantic AI, and custom implementations.

Does this connector support write operations?

Currently, the LinkedIn Ads connector focuses on read operations only. Write operations such as creating campaigns, updating budgets, deleting creatives, or pausing campaigns are not supported at this time.

How is this different from the Airbyte data connector?

Agent connectors are specifically designed for AI agents and LLM applications. They provide natural language interfaces, optimized response formats, and seamless integration with agent frameworks, unlike traditional ETL-focused connectors.

Will there be a platform for agent connectors?

The hosted version with secure credential storage through Airbyte Cloud is already available. See the hosted usage section in the documentation for setup instructions.

20,000+
community members
6,000+
daily active companies
2PB+
synced/month
900+
contributors