Skip to content

Commit 331726e

Browse files
Merge pull request #190 from adcontextprotocol/pricing-fields-review
Add package-level pricing fields to delivery reporting schema
2 parents 2a126fe + 9999b32 commit 331726e

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"adcontextprotocol": minor
3+
---
4+
5+
Add required package-level pricing fields to delivery reporting schema to match documentation.
6+
7+
**Schema Changes:**
8+
- Added required `pricing_model` field to `by_package` items in `get-media-buy-delivery-response.json`
9+
- Added required `rate` field to `by_package` items for pricing rate information
10+
- Added required `currency` field to `by_package` items to support per-package currency
11+
12+
These required fields enable buyers to see pricing information directly in delivery reports for better cost analysis and reconciliation, as documented in the recently enhanced reporting documentation (#179).

static/schemas/v1/media-buy/get-media-buy-delivery-response.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,28 @@
180180
"type": "number",
181181
"description": "Delivery pace (1.0 = on track, <1.0 = behind, >1.0 = ahead)",
182182
"minimum": 0
183+
},
184+
"pricing_model": {
185+
"$ref": "/schemas/v1/enums/pricing-model.json",
186+
"description": "The pricing model used for this package (e.g., cpm, cpcv, cpp). Indicates how the package is billed and which metrics are most relevant for optimization."
187+
},
188+
"rate": {
189+
"type": "number",
190+
"description": "The pricing rate for this package in the specified currency. For fixed-rate pricing, this is the agreed rate (e.g., CPM rate of 12.50 means $12.50 per 1,000 impressions). For auction-based pricing, this represents the effective rate based on actual delivery.",
191+
"minimum": 0
192+
},
193+
"currency": {
194+
"type": "string",
195+
"description": "ISO 4217 currency code (e.g., USD, EUR, GBP) for this package's pricing. Indicates the currency in which the rate and spend values are denominated. Different packages can use different currencies when supported by the publisher.",
196+
"pattern": "^[A-Z]{3}$"
183197
}
184198
},
185199
"required": [
186200
"package_id",
187-
"spend"
201+
"spend",
202+
"pricing_model",
203+
"rate",
204+
"currency"
188205
]
189206
}
190207
]

0 commit comments

Comments
 (0)