-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Description
Calling sync_creatives with input constructed as in Example #1 of https://github.com/adcontextprotocol/adcp/blob/main/docs/media-buy/task-reference/sync_creatives.mdx:
{
"creatives": [
{
"creative_id": "banner_728x90_foobar",
"name": "Example 728x90",
"format_id": {
"agent_url": "https://creatives.adcontextprotocol.org",
"id": "display_728x90_image"
},
"assets": {
"banner_image": {
"asset_type": "image",
"url": "https://i0.wp.com/mustangnews.net/wp-content/uploads/2022/08/ad-placeholder-728x90-1.png",
"width": 728,
"height": 90,
"format": "png"
},
"click_url": "https://optable.co?r=CACHEBUSTER"
},
"tags": ["display"]
}
]
}
Example run showing error:
% npx @adcp/client bosko-buyer-agent sync_creatives @creatives.json
🔍 Auto-detecting protocol...
✓ Detected protocol: MCP
✅ SUCCESS
Protocol Message:
Creative sync completed: no changes
Response:
{
"creatives": [
{
"creative_id": "banner_728x90_foobar",
"action": "failed",
"changes": [],
"errors": [
"Invalid creative banner_728x90_foobar: The following fields do not match the AdCP specification:\n\n • principal_id: Expected string, got NoneType. Please provide a string value.\n\nPlease check the AdCP spec at https://adcontextprotocol.org/schemas/v1/ for correct field types."
],
"warnings": []
}
],
"dry_run": false
}
Protocol: MCP
Response Time: 348ms
Task ID: cd357f52-2257-40ff-8b0f-eafbfe604302
Context ID: cd357f52-2257-40ff-8b0f-eafbfe604302
Further adding a principal_id string attribute to the creative does not make any difference, for example:
"principal_id": "principal_64d386ac"
...points to a valid advertiser principal ID in my agent tenant, but the result is the same.
Metadata
Metadata
Assignees
Labels
No labels