Installation & Usage
[01]
Install Package
Using uv or pip
BASH
uv pip install airbyte-agent-snapchat-marketing
[02]
Import
Initialize and use
PYTHON
from airbyte_agent_snapchat_marketing import SnapchatMarketingConnector
from airbyte_agent_snapchat_marketing.models import SnapchatMarketingAuthConfig
connector = SnapchatMarketingConnector(
auth_config=SnapchatMarketingAuthConfig(
client_id="<The Client ID of your Snapchat developer application>",
client_secret="<The Client Secret of your Snapchat developer application>",
refresh_token="<Refresh Token to renew the expired Access Token>"
)
)[03]
Tool
Add tools to your agent
python
@agent.tool_plain # assumes you're using Pydantic AI
@SnapchatMarketingConnector.tool_utils
async def snapchat_marketing_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| Organizations | [List](./REFERENCE.md#organizations-list), [Get](./REFERENCE.md#organizations-get), [Search](./REFERENCE.md#organizations-search) |\n| Adaccounts | [List](./REFERENCE.md#adaccounts-list), [Get](./REFERENCE.md#adaccounts-get), [Search](./REFERENCE.md#adaccounts-search) |\n| Campaigns | [List](./REFERENCE.md#campaigns-list), [Get](./REFERENCE.md#campaigns-get), [Search](./REFERENCE.md#campaigns-search) |\n| Adsquads | [List](./REFERENCE.md#adsquads-list), [Get](./REFERENCE.md#adsquads-get), [Search](./REFERENCE.md#adsquads-search) |\n| Ads | [List](./REFERENCE.md#ads-list), [Get](./REFERENCE.md#ads-get), [Search](./REFERENCE.md#ads-search) |\n| Creatives | [List](./REFERENCE.md#creatives-list), [Get](./REFERENCE.md#creatives-get), [Search](./REFERENCE.md#creatives-search) |\n| Media | [List](./REFERENCE.md#media-list), [Get](./REFERENCE.md#media-get), [Search](./REFERENCE.md#media-search) |\n| Segments | [List](./REFERENCE.md#segments-list), [Get](./REFERENCE.md#segments-get), [Search](./REFERENCE.md#segments-search) |
Example Prompts
Lorem ipsum
List all organizations I belong to - Show me all ad accounts for my organization - List all campaigns in my ad account - Show me the ad squads for my ad account - List all ads in my ad account - Show me the creatives for my ad account - List all media files in my ad account - Show me the audience segments in my ad account - Which campaigns are currently active? - What ad squads have the highest daily budget? - Show me ads that are pending review - Find campaigns created in the last month
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 snapchat-marketing connector supports OAuth2 authentication with automatic token refresh. You provide a Client ID, Client Secret, and a Refresh Token from your Snapchat developer application. Alternatively, in hosted mode, credentials are stored securely in Airbyte Cloud using Airbyte's own authentication config.
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 snapchat-marketing connector focuses on read operations only. Write operations such as creating campaigns, updating ad statuses, deleting creatives, or retrieving performance statistics are not supported at this time. Write support may be added in future versions.
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.