OpenAI Ads Adapter Template
Deprecated reference contract retained for migration; use the executable OpenAI Ads API Client.
Intended access
Read only · OpenAI Ads API or local mock fixtures
Intended inputs
Inputs are not documented for this release. Inspect its guide before use.
Intended outputs
Expected outputs are not documented for this release. Inspect its guide before use.
Before you begin
- Account-scoped OpenAI Ads API credential for live bindings
Try this first
Inspect the released reference and identify the implementation and bindings to adapt before attempting execution.
This release is deprecated. Check its replacement and migration guidance in the requirements below.
Limits for this step
- Deprecated reference contract only; no executable integration is packaged.
- New installations and plugin references must use adtech/openai-ads-api-client.
- Read-only by design; future writes must use the existing policy-gated ad-platform executor.
Read reference guideHide reference guide
OpenAI Ads Adapter Template (deprecated)
Replaced by
adtech/openai-ads-api-client. This document describes the old contract only so existing consumers can migrate without guessing.
Purpose
Provide a mock-first, read-only provider boundary for OpenAI Ads account, campaign, ad, insight, and product-feed data.
Proposed operations
get_accountlist_campaignsget_campaignlist_adsget_campaign_insightsvalidate_product_feed
Binding rules
- Keep API keys in the adapter environment, never in agent context.
- Scope every request to the configured advertiser account.
- Validate responses against local contracts before returning them.
- Start with the fixtures in
examples/. - Route any future write operation through
adtech/ad-platform-executor-template; do not add direct model-to-platform writes here.
Guardrails
- Keep the adapter read-only.
- Never expose credentials to the agent.
- Do not infer that mock schemas match current production schemas.
Migration
- Replace dependency ID
adtech/openai-ads-adapter-templatewithadtech/openai-ads-api-client. - Replace direct fixture reads with the client mock commands documented in its
TOOL.md. - For live reads, bind
OPENAI_ADS_API_KEYthrough the runtime-owned environment and run the packaged authentication readiness flow. - Keep all campaign writes outside the client and behind the governed ad-platform executor.
The historical template must not be reactivated or treated as operational evidence for the replacement package.
View capabilities and accessHide capabilities and access
Intended capabilities
- Read advertiser account metadata.
- List campaigns and ads.
- Retrieve campaign insights.
- Validate product-feed records.
Access limits
Read-only by design; future writes must use the existing policy-gated ad-platform executor.
Credentials and setup
- Account-scoped OpenAI Ads API credential for live bindings
Reference template
Reference template
Implementation is required before the described workflow can run. Inspect and adapt the source.