OpenAI Ads API Client
Preferred executable client for bounded mock or live read-only OpenAI Ads retrieval and non-persisting Conversions API validation.
Access
Read only · OpenAI Advertiser API and Ads Conversions API
Inputs
- A selected operation and account scope
- Packaged fixtures for mock mode, or separately configured credentials for live reads
Outputs
- Bounded account, campaign, ad or insights data for the selected operation
- Local or non-persisting conversion-validation results when requested
Before you begin
- Python 3.9 or newer for mock mode. Review the tool contract before connecting an account.
Try this first
Inspect the packaged offline sample before running it. After file installation, use the stated runtime from the installed package directory.
Limits for this step
- Mock mode is immediately runnable, but provider-backed readiness requires an available account-scoped API key.
- The provider account endpoint attests the account binding, not the individual human owner of an API key.
- Campaign, ad-group, ad, file, feed, and persisted conversion mutations are intentionally excluded.
- Automatic pagination, retries, and rate-limit backoff are not included.
- Advertiser operations are GET-only; bounded Conversions API requests force validate_only true and cannot persist events.
Inspect offline sampleHide offline sample
Runtime · Python 3.9 or newer. Run from the installed package directory after file installation.
python3 scripts/openai_ads_client.py --mode mock accountExpected result · The packaged mock account response. This sample makes no provider call.
View capabilities and accessHide capabilities and access
What it can do
- Read bounded ad-account metadata, campaigns, ads, and account or entity insights.
- Verify an account-scoped Ads API key against the provider ad-account endpoint.
- Validate conversion batches locally or through non-persisting provider validation.
Access limits
Advertiser operations are GET-only; bounded Conversions API requests force validate_only true and cannot persist events.
Credentials and setup
- OPENAI_ADS_API_KEY for live Advertiser API reads
- OPENAI_ADS_PIXEL_ID and OPENAI_ADS_CONVERSIONS_API_KEY for optional remote conversion validation
Install tool files
These commands install package files and generate runtime configuration where supported. Confirm discovery in your agent app, then check configuration, authentication and a first useful operation.
Install (Codex)
./bin/skills-hub install --module tools --entry adtech/[email protected] --runtime codex
Install (Claude)
./bin/skills-hub install --module tools --entry adtech/[email protected] --runtime claude
Install (Generic)
./bin/skills-hub install --module tools --entry adtech/[email protected] --runtime generic --target ./my-agent/tools-mcp