adcontextprotocol/adcp-client-python/build-retail-media-agent
Claude Code and agent skill by adcontextprotocol/adcp-client-python
- community
Checking that the SKILL.md file is still in the repository.
Use when building an AdCP retail media network agent — a platform that sells on-site placements, supports product catalogs, tracks conversions, and reports performance.
Install
npx vskill@latest install adcontextprotocol/adcp-client-python/build-retail-media-agentSKILL.md
Build a Retail Media Agent (Python)
Overview
A retail media agent sells advertising on a retailer's properties (sponsored products, homepage banners, search results). It extends the standard seller with catalog sync, event tracking, and performance feedback.
When to Use
- User wants to build a retail media network, commerce media platform, or sponsored products agent
- User mentions catalogs, product feeds, conversion tracking, or performance feedback
Not this skill:
- Standard seller without catalogs →
skills/build-seller-agent/ - Generative seller →
skills/build-generative-seller-agent/ - Signals/audience data →
skills/build-signals-agent/
Before Writing Code
Same decisions as the seller skill, plus: what catalogs does the platform accept? What conversion events? Does the buyer send performance metrics back?
Architecture
Start from examples/seller_agent.py (the 9/9 passing seller reference), then add retail-specific tools. Same pattern: subclass ADCPHandler, use response builders, call serve().
Seller Tools (Required)
Implement all tools from the seller skill. Copy the pattern from examples/seller_agent.py:
get_adcp_capabilities→capabilities_response(["media_buy"])sync_accounts→sync_accounts_response(results)sync_governance→sync_governance_response(results)get_products→products_response(PRODUCTS)create_media_buy→media_buy_response(mb_id, packages)get_media_buys→media_buys_response(buys)list_creative_formats→creative_formats_response(formats)sync_creatives→sync_creatives_response(results)get_media_buy_delivery→delivery_response(deliveries, reporting_period=...)
See skills/build-seller-agent/SKILL.md for the exact response shapes of each.
If your retail platform supports guaranteed deals with negotiation, also implement the proposal workflow from the seller skill. Refined proposals must include proposal_id, name, and allocations[] with product_id + allocation_percentage (summing to 100) — see "Proposal Workflow (Guaranteed Deals)" in skills/build-seller-agent/SKILL.md.
Retail-Specific Tools
`sync_catalogs` — accept product catalog feeds
`log_event` — accept conversion events
`provide_performance_feedback` — accept buyer metrics
`sync_event_sources` — register event tracking
Compliance Testing
Same as the seller skill. Copy the TestControllerStore from examples/seller_agent.py and pass to serve():
SDK Quick Reference
All seller response builders apply, plus:
| Function | Usage | |
|---|---|---|
sync_catalogs_response(catalogs) | sync_catalogs response | |
log_event_response(received, processed) | log_event response |
Validation
Common Mistakes
| Mistake | Fix | |
|---|---|---|
| Skip seller tools | All seller tools are required — start from examples/seller_agent.py | |
sync_catalogs missing item_count | Required field | |
log_event missing events_received/events_processed | Use log_event_response() | |
Wrong delivery_response signature | Takes delivery_response(deliveries_list, reporting_period=...), not individual metrics |
Reference
skills/build-seller-agent/SKILL.md— base seller skill (start there, add retail tools)skills/build-seller-agent/SKILL.md— complete seller tool shapes
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/build-retail-media-agent/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/adcontextprotocol/adcp-client-python/build-retail-media-agent)