スキーマへのアクセス
AdCP スキーマは次の 2 つの入手先があります:| Source | URL | Best For |
|---|---|---|
| Website | https://adcontextprotocol.org/schemas/v2/ | 実行時取得、バージョンエイリアス |
| GitHub | https://github.com/adcontextprotocol/adcp/tree/main/dist/schemas | オフライン利用、CI/CD パイプライン |
主なスキーマ
| Schema | URL |
|---|---|
| Product | https://adcontextprotocol.org/schemas/v2/core/product.json |
| Media Buy | https://adcontextprotocol.org/schemas/v2/core/media-buy.json |
| Creative Format | https://adcontextprotocol.org/schemas/v2/core/creative-format.json |
| Schema Registry | https://adcontextprotocol.org/schemas/v2/index.json |
AI コーディングエージェント向け
クライアント SDK
AdCP は JavaScript/TypeScript と Python 向けの公式 SDK を提供します。クライアント/サーバーのどちらでも利用できます。JavaScript / TypeScript
@adcp/client— Main API@adcp/client/testing— Testing utilities (includestestAgent)@adcp/client/advanced— Advanced API features@adcp/client/types— TypeScript type definitions
Python
CLI ツール
両 SDK にはテストや開発向けの CLI が含まれます。JavaScript CLI
Python CLI
スキーマのバージョニング
AdCP はセマンティックバージョニングを採用しています。用途に応じてパスを選択してください:| Path | Example | Best For |
|---|---|---|
| Exact version | /schemas/2.6.0/ | 本番、SDK 生成 |
| Major version | /schemas/v2/ | 開発、ドキュメント |
| Minor version | /schemas/v2.5/ | 安定開発(パッチのみ反映) |
本番(推奨)
安定性のため固定バージョンを指定します:開発
後方互換の更新を取り込みたい場合はメジャー版のエイリアスを使用します:SDK 型生成
バンドル済みスキーマ
$ref 解決をサポートしないツール向けに、参照をすべて解決済みのバンドルスキーマを利用できます。Web と GitHub の両方から取得可能です:
Web からの取得
GitHub からの取得
Bundled schemas are committed to the repository atdist/schemas/{VERSION}/bundled/:
ディレクトリ構造
バンドルスキーマのカテゴリ
すべてのリクエスト/レスポンス系タスクスキーマがバンドルされています:| Category | Tasks |
|---|---|
bundled/media-buy/ | get-products, create-media-buy, update-media-buy, list-creative-formats, sync-creatives, build-creative, list-creatives, get-media-buy-delivery, list-authorized-properties, provide-performance-feedback |
bundled/creative/ | list-creative-formats, preview-creative |
bundled/signals/ | get-signals, activate-signal |
bundled/property/ | create-property-list, get-property-list, list-property-lists, update-property-list, delete-property-list, get-property-features, validate-property-delivery |
bundled/content-standards/ | create-content-standards, get-content-standards, list-content-standards, update-content-standards, calibrate-content, validate-content-delivery, get-media-buy-artifacts |
bundled/sponsored-intelligence/ | si-get-offering, si-initiate-session, si-send-message, si-terminate-session |
bundled/protocol/ | get-adcp-capabilities |
bundled/core/ | tasks-get, tasks-list |