Skip to content

refactor: Extract package update schema and add reporting_webhook support#793

Closed
bokelley wants to merge 1 commit into
mainfrom
bokelley/unify-package-schemas
Closed

refactor: Extract package update schema and add reporting_webhook support#793
bokelley wants to merge 1 commit into
mainfrom
bokelley/unify-package-schemas

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Split package schema into three clear variants: package-request.json for creation, package-update.json for updates, and package.json for responses. Added reporting_webhook to update_media_buy, enabling modification of reporting configuration after campaign creation.

Changes

  • Created package-update.json schema documenting only updatable fields
  • Added reporting_webhook field to update-media-buy-request.json
  • Unified schema definitions to eliminate duplication
  • Updated documentation with complete webhook and package configuration details

Resolves

Fixes issue where reporting configuration could not be updated post-launch without recreating the media buy.

…port

Split package schema into three clear variants:
- package-request.json (create): Full package with product_id, format_ids, pricing_option_id
- package-update.json (update): Only updatable fields, omits immutable fields
- package.json (response): Reflects current package state

Adds reporting_webhook to update_media_buy, enabling modification of reporting configuration
after campaign creation. Keeps push_notification_config separate for async operation notifications.

This unifies schema definitions, eliminates duplication, and resolves the issue where
reporting setup could not be updated post-launch without recreating the media buy.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
| `creative_ids` | string[] | Replace assigned creatives |
| `creative_ids` | string[] | Replace assigned creatives (by library ID) |
| `creatives` | CreativeAsset[] | Upload and assign new creatives inline |
| `creative_assignments` | CreativeAssignment[] | Assignments with weights and placement targeting |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are mising changes between this PR and https://github.com/adcontextprotocol/adcp/pull/789/changes

"$ref": "/schemas/media-buy/package-update.json"
}
},
"reporting_webhook": {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's extract reporting_webhook config to a separate file since it's used both here and in create_media_buy?

@bokelley

Copy link
Copy Markdown
Contributor Author

Combining with #789 to avoid conflicts - both address Marek's feedback on update_media_buy

@bokelley bokelley closed this Jan 16, 2026
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