
Installation & Usage
[01]
Install Package
Using uv or pip
BASH
uv pip install airbyte-agent-amazon-ads
[02]
Import
Initialize and use
PYTHON
from pydantic_ai import Agent
from airbyte_agent_sdk.connectors.amazon_ads import AmazonAdsConnector
from airbyte_agent_sdk.connectors.amazon_ads.models import AmazonAdsAuthConfig
connector = AmazonAdsConnector(
auth_config=AmazonAdsAuthConfig(
client_id="<The client ID of your Amazon Ads API application>",
client_secret="<The client secret of your Amazon Ads API application>",
refresh_token=(
"<The refresh token obtained from the OAuth authorization flow>"
),
)
)
agent = Agent("openai:gpt-4o")
[03]
Tool
Add tools to your agent
python
@agent.tool_plain
@AmazonAdsConnector.tool_utils
async def amazon_ads_execute(
entity: str,
action: str,
params: dict | None = None,
):
return await connector.execute(entity, action, params or {})
Supported Entities & Actions
Lorem ipsum
Lorem ipsum
| Entity | Actions |\n|--------|---------|\n| Profiles | [List](./REFERENCE.md#profiles-list), [Get](./REFERENCE.md#profiles-get), [Search](./REFERENCE.md#profiles-search) |\n| Portfolios | [List](./REFERENCE.md#portfolios-list), [Get](./REFERENCE.md#portfolios-get) |\n| Sponsored Product Campaigns | [List](./REFERENCE.md#sponsored-product-campaigns-list), [Get](./REFERENCE.md#sponsored-product-campaigns-get) |
Example Prompts
Lorem ipsum
List all my advertising profiles across marketplaces - Show me the profiles for my seller accounts - What marketplaces do I have advertising profiles in? - List all portfolios for one of my profiles - Show me all sponsored product campaigns - What campaigns are currently enabled? - Find campaigns with a specific targeting type
Why Airbyte for AI Agents?
Built for production AI workloads with enterprise-grade reliability
Secure Authentication
Built-in OAuth 2.0 handling with automatic token refresh. No hard-coded credentials.
Agent-Native Design
Heading
Structured, LLM-friendly schemas optimized for AI agent consumption with natural language query support.
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
LangChain
CrewAI
LlamaIndex
AutoGen
OpenAI Agents SDK
Claude Agents SDK
Frequently Asked Questions
Didn't find your answer? Please don't hesitate to reach out.
The Amazon-Ads connector supports OAuth-based authentication using a client ID, client secret, and refresh token obtained from the OAuth authorization flow for the Amazon Ads API. In hosted mode, credentials are stored securely in Airbyte Cloud and accessed via Airbyte client credentials.
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 Amazon-Ads connector focuses on read operations only. Write operations such as creating campaigns, updating budgets, deleting ad groups, or generating performance reports 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.
Get started in minutes with our open-source connector.