Skip to content

Conversation

@bokelley
Copy link
Contributor

Summary

Added three missing AdCP protocol methods to the SimpleAPI: create_media_buy, update_media_buy, and build_creative. These methods follow the established SimpleAPI pattern of accepting kwargs, returning unwrapped responses, and raising exceptions on errors.

Changes

  • Added create_media_buy() for creating new media buy reservations
  • Added update_media_buy() for updating existing media buy reservations
  • Added build_creative() for generating production-ready creative assets
  • Updated tests to verify all three new methods exist and are async functions

Test Plan

  • SimpleAPI now has all 13 AdCP protocol methods
  • Each method accepts kwargs instead of typed request objects
  • Each method returns unwrapped response data or raises ADCPSimpleAPIError on failure

🤖 Generated with Claude Code

…impleAPI

The SimpleAPI was missing three methods that are available in the full ADCPClient:
- create_media_buy: Create a new media buy reservation
- update_media_buy: Update an existing media buy reservation
- build_creative: Generate production-ready creative assets

These methods follow the same pattern as other SimpleAPI methods:
- Accept kwargs instead of typed request objects
- Return unwrapped response data directly
- Raise ADCPSimpleAPIError on failures
- Include usage examples in docstrings

Also updated test_simple_api_methods to verify all three new methods exist
and are async functions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@bokelley bokelley merged commit 5545071 into main Nov 20, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants