Skip to content

Conversation

@bokelley
Copy link
Contributor

Summary

Per AdCP v2.2.0 spec, budget is specified at the PACKAGE level, not the media buy level. This fixes the A2A server handler that was incorrectly requiring a top-level budget parameter, which was causing validation errors for clients using the npm library.

Changes

  • Removed budget from required_params list in A2A handler
  • Updated to accept budget via parameters.get() (optional)
  • Fixed error message examples to show budget at package level
  • Clarified docstrings that budget is DEPRECATED at top level

Root Cause

Commit 5e3250b (Oct 6) incorrectly added budget to required_params when enforcing AdCP spec compliance, but tests weren't catching this because they included budget at both levels.

🤖 Generated with Claude Code

Per AdCP v2.2.0 spec, budget is specified at the PACKAGE level,
not at the media buy level. This fixes the A2A server handler that
was incorrectly requiring a top-level budget parameter.

Changes:
- A2A handler: Removed 'budget' from required_params list
- A2A handler: Updated to only accept budget via parameters.get()
- A2A handler: Updated example to show budget at package level
- Docstrings: Clarified that budget is DEPRECATED at top level

Fixes issue where clients using npm library were getting validation
errors for missing top-level budget field.

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

Co-Authored-By: Claude <noreply@anthropic.com>
@bokelley bokelley merged commit 4474de3 into main Nov 10, 2025
9 checks passed
danf-newton pushed a commit to Newton-Research-Inc/salesagent that referenced this pull request Nov 24, 2025
…textprotocol#725)

Per AdCP v2.2.0 spec, budget is specified at the PACKAGE level,
not at the media buy level. This fixes the A2A server handler that
was incorrectly requiring a top-level budget parameter.

Changes:
- A2A handler: Removed 'budget' from required_params list
- A2A handler: Updated to only accept budget via parameters.get()
- A2A handler: Updated example to show budget at package level
- Docstrings: Clarified that budget is DEPRECATED at top level

Fixes issue where clients using npm library were getting validation
errors for missing top-level budget field.

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

Co-authored-by: Claude <noreply@anthropic.com>
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