@adcp/sdk 13.0.0-rc.2 → 13.0.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +11 -14
  2. package/dist/lib/index.d.mts +1 -1
  3. package/dist/lib/index.d.ts +1 -1
  4. package/dist/lib/index.d.ts.map +1 -1
  5. package/dist/lib/index.js.map +1 -1
  6. package/dist/lib/index.mjs.map +1 -1
  7. package/dist/lib/protocols/mcp-modern.d.ts.map +1 -1
  8. package/dist/lib/protocols/mcp-modern.js +14 -0
  9. package/dist/lib/protocols/mcp-modern.js.map +1 -1
  10. package/dist/lib/protocols/mcp-modern.mjs +14 -0
  11. package/dist/lib/protocols/mcp-modern.mjs.map +1 -1
  12. package/dist/lib/registry/index.d.mts +5 -25
  13. package/dist/lib/registry/index.d.ts +5 -25
  14. package/dist/lib/registry/index.d.ts.map +1 -1
  15. package/dist/lib/registry/index.js +5 -130
  16. package/dist/lib/registry/index.js.map +1 -1
  17. package/dist/lib/registry/index.mjs +5 -130
  18. package/dist/lib/registry/index.mjs.map +1 -1
  19. package/dist/lib/registry/sync.d.mts +8 -2
  20. package/dist/lib/registry/sync.d.ts +8 -2
  21. package/dist/lib/registry/sync.d.ts.map +1 -1
  22. package/dist/lib/registry/sync.js +8 -2
  23. package/dist/lib/registry/sync.js.map +1 -1
  24. package/dist/lib/registry/sync.mjs +8 -2
  25. package/dist/lib/registry/sync.mjs.map +1 -1
  26. package/dist/lib/registry/types.d.mts +15 -29
  27. package/dist/lib/registry/types.d.ts +15 -29
  28. package/dist/lib/registry/types.d.ts.map +1 -1
  29. package/dist/lib/registry/types.generated.d.mts +20 -5
  30. package/dist/lib/registry/types.generated.d.ts +20 -5
  31. package/dist/lib/registry/types.generated.d.ts.map +1 -1
  32. package/dist/lib/registry/types.generated.js.map +1 -1
  33. package/dist/lib/registry/types.js.map +1 -1
  34. package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
  35. package/dist/lib/testing/storyboard/runner.d.ts.map +1 -1
  36. package/dist/lib/testing/storyboard/runner.js +40 -6
  37. package/dist/lib/testing/storyboard/runner.js.map +1 -1
  38. package/dist/lib/testing/storyboard/runner.mjs +40 -6
  39. package/dist/lib/testing/storyboard/runner.mjs.map +1 -1
  40. package/dist/lib/types/core.generated.d.mts +105 -58
  41. package/dist/lib/types/core.generated.d.ts +105 -58
  42. package/dist/lib/types/core.generated.d.ts.map +1 -1
  43. package/dist/lib/types/core.generated.js.map +1 -1
  44. package/dist/lib/types/schemas.generated.d.mts +2352 -473
  45. package/dist/lib/types/schemas.generated.d.ts +2352 -473
  46. package/dist/lib/types/schemas.generated.d.ts.map +1 -1
  47. package/dist/lib/types/schemas.generated.js +78 -45
  48. package/dist/lib/types/schemas.generated.js.map +1 -1
  49. package/dist/lib/types/schemas.generated.mjs +71 -45
  50. package/dist/lib/types/schemas.generated.mjs.map +1 -1
  51. package/dist/lib/types/tools.generated.d.mts +48 -44
  52. package/dist/lib/types/tools.generated.d.ts +48 -44
  53. package/dist/lib/types/tools.generated.d.ts.map +1 -1
  54. package/dist/lib/types/tools.generated.js.map +1 -1
  55. package/dist/lib/version.d.mts +3 -3
  56. package/dist/lib/version.d.ts +3 -3
  57. package/dist/lib/version.js +3 -3
  58. package/dist/lib/version.js.map +1 -1
  59. package/dist/lib/version.mjs +3 -3
  60. package/dist/lib/version.mjs.map +1 -1
  61. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  import type { AudienceConstraints, AudioAssetRequirements, CSSAssetRequirements, DAASTAssetRequirements, HTMLAssetRequirements, ImageAssetRequirements, JavaScriptAssetRequirements, MarkdownAssetRequirements, PurchaseType, TextAssetRequirements, URLAssetRequirements, VASTAssetRequirements, VideoAssetRequirements, WebhookAssetRequirements } from './core.generated.mjs';
2
- export type { AudienceConstraints, PurchaseType } from './core.generated.mjs';
2
+ export type { AudienceConstraints, CatalogItemDeliveryMetrics, GeoDeliveryMetrics, KeywordDeliveryMetrics, PurchaseType } from './core.generated.mjs';
3
3
  /**
4
4
  * Request parameters for discovering or refining advertising products. buying_mode declares the buyer's intent: 'brief' for curated discovery, 'wholesale' for raw wholesale product feed access, or 'refine' to iterate on known products and proposals.
5
5
  */
@@ -10641,11 +10641,11 @@ export type MissingMetric = {
10641
10641
  /**
10642
10642
  * Delivery metrics row for one catalog item within a package.
10643
10643
  */
10644
- export type CatalogItemDeliveryMetrics = DeliveryMetrics & {
10644
+ export type GetMediaBuyDeliveryCatalogItemMetrics = DeliveryMetrics & {
10645
10645
  /**
10646
10646
  * Catalog item identifier (e.g., SKU, GTIN, job_id, offering_id)
10647
10647
  */
10648
- content_id: string;
10648
+ content_id?: string;
10649
10649
  content_id_type?: ContentIDType;
10650
10650
  };
10651
10651
  /**
@@ -10666,18 +10666,18 @@ export type CreativeDeliveryMetrics = DeliveryMetrics & {
10666
10666
  /**
10667
10667
  * Delivery metrics row for one keyword and match-type pair within a package.
10668
10668
  */
10669
- export type KeywordDeliveryMetrics = DeliveryMetrics & {
10669
+ export type GetMediaBuyDeliveryKeywordMetrics = DeliveryMetrics & {
10670
10670
  /**
10671
10671
  * The targeted keyword
10672
10672
  */
10673
- keyword: string;
10674
- match_type: MatchType;
10673
+ keyword?: string;
10674
+ match_type?: MatchType;
10675
10675
  };
10676
10676
  /**
10677
10677
  * Delivery metrics row for one geographic area within a package.
10678
10678
  */
10679
- export type GeoDeliveryMetrics = DeliveryMetrics & {
10680
- geo_level: GeographicTargetingLevel;
10679
+ export type GetMediaBuyDeliveryGeoMetrics = DeliveryMetrics & {
10680
+ geo_level?: GeographicTargetingLevel;
10681
10681
  /**
10682
10682
  * Classification system for metro or postal_area levels. Metro rows use metro-system values. Native postal rows use country-local postal-system values with country; deprecated legacy postal rows may use legacy-postal-system values.
10683
10683
  */
@@ -10690,12 +10690,44 @@ export type GeoDeliveryMetrics = DeliveryMetrics & {
10690
10690
  /**
10691
10691
  * Geographic code within the level and system. Country: ISO 3166-1 alpha-2 ('US'). Region: ISO 3166-2 with country prefix ('US-CA'). Metro/postal: system-specific code ('501', '10001').
10692
10692
  */
10693
- geo_code: string;
10693
+ geo_code?: string;
10694
10694
  /**
10695
10695
  * Human-readable geographic name (e.g., 'United States', 'California', 'New York DMA')
10696
10696
  */
10697
10697
  geo_name?: string;
10698
10698
  };
10699
+ export type GetMediaBuyDeliveryDeviceTypeMetrics = DeliveryMetrics & {
10700
+ device_type?: DeviceType;
10701
+ };
10702
+ export type GetMediaBuyDeliveryDevicePlatformMetrics = DeliveryMetrics & {
10703
+ device_platform?: DevicePlatform;
10704
+ };
10705
+ export type GetMediaBuyDeliveryAudienceMetrics = DeliveryMetrics & {
10706
+ /**
10707
+ * Audience segment identifier. For 'synced' source, matches audience_id from sync_audiences. For other sources, seller-defined.
10708
+ */
10709
+ audience_id?: string;
10710
+ audience_source?: AudienceSource;
10711
+ /**
10712
+ * Human-readable audience segment name
10713
+ */
10714
+ audience_name?: string;
10715
+ };
10716
+ export type GetMediaBuyDeliveryPlacementMetrics = DeliveryMetrics & {
10717
+ /**
10718
+ * Placement identifier from the product's placements array
10719
+ */
10720
+ placement_id?: string;
10721
+ /**
10722
+ * Human-readable placement name
10723
+ */
10724
+ placement_name?: string;
10725
+ /**
10726
+ * Canonical publisher domain whose adagents.json namespace this placement belongs to, matching the `publisher_domain` on the product's `placements[]` entry that `placement_id` resolves to (see core/placement.json). Lets buyers attribute delivered impressions to a publisher namespace without re-fetching the product catalog — the common case for multi-publisher buys through a single sales agent. Sellers SHOULD emit it whenever the resolving product placement carries a publisher_domain (always true for `kind: publisher_ref`); sellers MAY omit it only for `seller_inline` placements in a legacy single-publisher context where the seller agent's own domain is the namespace. Single-valued: a placement resolves within exactly one publisher namespace (package-level attribution, where an ad-network product can span publishers, is a separate concern).
10727
+ * @pattern ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$
10728
+ */
10729
+ publisher_domain?: string;
10730
+ };
10699
10731
  /**
10700
10732
  * Response payload for get_media_buy_delivery task
10701
10733
  */
@@ -10969,7 +11001,7 @@ export interface GetMediaBuyDeliveryResponse {
10969
11001
  /**
10970
11002
  * Delivery by catalog item within this package. Available for catalog-driven packages when the seller supports item-level reporting.
10971
11003
  */
10972
- by_catalog_item?: CatalogItemDeliveryMetrics[];
11004
+ by_catalog_item?: GetMediaBuyDeliveryCatalogItemMetrics[];
10973
11005
  /**
10974
11006
  * Metrics broken down by creative within this package. Available when the seller supports creative-level reporting.
10975
11007
  */
@@ -10977,11 +11009,11 @@ export interface GetMediaBuyDeliveryResponse {
10977
11009
  /**
10978
11010
  * Metrics broken down by keyword within this package. One row per (keyword, match_type) pair — the same keyword with different match types appears as separate rows. Keyword-grain only: rows reflect aggregate performance of each targeted keyword, not individual search queries. Rows may not sum to package totals when a single impression is attributed to the triggering keyword only. Available for search and retail media packages when the seller supports keyword-level reporting.
10979
11011
  */
10980
- by_keyword?: KeywordDeliveryMetrics[];
11012
+ by_keyword?: GetMediaBuyDeliveryKeywordMetrics[];
10981
11013
  /**
10982
11014
  * Delivery by geographic area within this package. Available when the buyer requests geo breakdown via reporting_dimensions and the seller supports it. Each dimension's rows are independent slices that should sum to the package total.
10983
11015
  */
10984
- by_geo?: GeoDeliveryMetrics[];
11016
+ by_geo?: GetMediaBuyDeliveryGeoMetrics[];
10985
11017
  /**
10986
11018
  * Whether by_geo was truncated due to the requested limit or a seller-imposed maximum. Sellers MUST return this flag whenever by_geo is present (false means the list is complete).
10987
11019
  */
@@ -10989,9 +11021,7 @@ export interface GetMediaBuyDeliveryResponse {
10989
11021
  /**
10990
11022
  * Delivery by device form factor within this package. Available when the buyer requests device_type breakdown via reporting_dimensions and the seller supports it.
10991
11023
  */
10992
- by_device_type?: (DeliveryMetrics & {
10993
- device_type?: DeviceType;
10994
- })[];
11024
+ by_device_type?: GetMediaBuyDeliveryDeviceTypeMetrics[];
10995
11025
  /**
10996
11026
  * Whether by_device_type was truncated. Sellers MUST return this flag whenever by_device_type is present (false means the list is complete).
10997
11027
  */
@@ -10999,9 +11029,7 @@ export interface GetMediaBuyDeliveryResponse {
10999
11029
  /**
11000
11030
  * Delivery by operating system within this package. Available when the buyer requests device_platform breakdown via reporting_dimensions and the seller supports it. Useful for CTV campaigns where tvOS vs Roku OS vs Fire OS matters.
11001
11031
  */
11002
- by_device_platform?: (DeliveryMetrics & {
11003
- device_platform?: DevicePlatform;
11004
- })[];
11032
+ by_device_platform?: GetMediaBuyDeliveryDevicePlatformMetrics[];
11005
11033
  /**
11006
11034
  * Whether by_device_platform was truncated. Sellers MUST return this flag whenever by_device_platform is present (false means the list is complete).
11007
11035
  */
@@ -11009,17 +11037,7 @@ export interface GetMediaBuyDeliveryResponse {
11009
11037
  /**
11010
11038
  * Delivery by audience segment within this package. Available when the buyer requests audience breakdown via reporting_dimensions and the seller supports it. Only 'synced' audiences are directly targetable via the targeting overlay; other sources are informational.
11011
11039
  */
11012
- by_audience?: (DeliveryMetrics & {
11013
- /**
11014
- * Audience segment identifier. For 'synced' source, matches audience_id from sync_audiences. For other sources, seller-defined.
11015
- */
11016
- audience_id?: string;
11017
- audience_source?: AudienceSource;
11018
- /**
11019
- * Human-readable audience segment name
11020
- */
11021
- audience_name?: string;
11022
- })[];
11040
+ by_audience?: GetMediaBuyDeliveryAudienceMetrics[];
11023
11041
  /**
11024
11042
  * Whether by_audience was truncated. Sellers MUST return this flag whenever by_audience is present (false means the list is complete).
11025
11043
  */
@@ -11027,21 +11045,7 @@ export interface GetMediaBuyDeliveryResponse {
11027
11045
  /**
11028
11046
  * Delivery by placement within this package. Available when the buyer requests placement breakdown via reporting_dimensions and the seller supports it. Placement IDs reference the product's placements array.
11029
11047
  */
11030
- by_placement?: (DeliveryMetrics & {
11031
- /**
11032
- * Placement identifier from the product's placements array
11033
- */
11034
- placement_id?: string;
11035
- /**
11036
- * Human-readable placement name
11037
- */
11038
- placement_name?: string;
11039
- /**
11040
- * Canonical publisher domain whose adagents.json namespace this placement belongs to, matching the `publisher_domain` on the product's `placements[]` entry that `placement_id` resolves to (see core/placement.json). Lets buyers attribute delivered impressions to a publisher namespace without re-fetching the product catalog — the common case for multi-publisher buys through a single sales agent. Sellers SHOULD emit it whenever the resolving product placement carries a publisher_domain (always true for `kind: publisher_ref`); sellers MAY omit it only for `seller_inline` placements in a legacy single-publisher context where the seller agent's own domain is the namespace. Single-valued: a placement resolves within exactly one publisher namespace (package-level attribution, where an ad-network product can span publishers, is a separate concern).
11041
- * @pattern ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$
11042
- */
11043
- publisher_domain?: string;
11044
- })[];
11048
+ by_placement?: GetMediaBuyDeliveryPlacementMetrics[];
11045
11049
  /**
11046
11050
  * Whether by_placement was truncated. Sellers MUST return this flag whenever by_placement is present (false means the list is complete).
11047
11051
  */
@@ -1,5 +1,5 @@
1
1
  import type { AudienceConstraints, AudioAssetRequirements, CSSAssetRequirements, DAASTAssetRequirements, HTMLAssetRequirements, ImageAssetRequirements, JavaScriptAssetRequirements, MarkdownAssetRequirements, PurchaseType, TextAssetRequirements, URLAssetRequirements, VASTAssetRequirements, VideoAssetRequirements, WebhookAssetRequirements } from './core.generated';
2
- export type { AudienceConstraints, PurchaseType } from './core.generated';
2
+ export type { AudienceConstraints, CatalogItemDeliveryMetrics, GeoDeliveryMetrics, KeywordDeliveryMetrics, PurchaseType } from './core.generated';
3
3
  /**
4
4
  * Request parameters for discovering or refining advertising products. buying_mode declares the buyer's intent: 'brief' for curated discovery, 'wholesale' for raw wholesale product feed access, or 'refine' to iterate on known products and proposals.
5
5
  */
@@ -10641,11 +10641,11 @@ export type MissingMetric = {
10641
10641
  /**
10642
10642
  * Delivery metrics row for one catalog item within a package.
10643
10643
  */
10644
- export type CatalogItemDeliveryMetrics = DeliveryMetrics & {
10644
+ export type GetMediaBuyDeliveryCatalogItemMetrics = DeliveryMetrics & {
10645
10645
  /**
10646
10646
  * Catalog item identifier (e.g., SKU, GTIN, job_id, offering_id)
10647
10647
  */
10648
- content_id: string;
10648
+ content_id?: string;
10649
10649
  content_id_type?: ContentIDType;
10650
10650
  };
10651
10651
  /**
@@ -10666,18 +10666,18 @@ export type CreativeDeliveryMetrics = DeliveryMetrics & {
10666
10666
  /**
10667
10667
  * Delivery metrics row for one keyword and match-type pair within a package.
10668
10668
  */
10669
- export type KeywordDeliveryMetrics = DeliveryMetrics & {
10669
+ export type GetMediaBuyDeliveryKeywordMetrics = DeliveryMetrics & {
10670
10670
  /**
10671
10671
  * The targeted keyword
10672
10672
  */
10673
- keyword: string;
10674
- match_type: MatchType;
10673
+ keyword?: string;
10674
+ match_type?: MatchType;
10675
10675
  };
10676
10676
  /**
10677
10677
  * Delivery metrics row for one geographic area within a package.
10678
10678
  */
10679
- export type GeoDeliveryMetrics = DeliveryMetrics & {
10680
- geo_level: GeographicTargetingLevel;
10679
+ export type GetMediaBuyDeliveryGeoMetrics = DeliveryMetrics & {
10680
+ geo_level?: GeographicTargetingLevel;
10681
10681
  /**
10682
10682
  * Classification system for metro or postal_area levels. Metro rows use metro-system values. Native postal rows use country-local postal-system values with country; deprecated legacy postal rows may use legacy-postal-system values.
10683
10683
  */
@@ -10690,12 +10690,44 @@ export type GeoDeliveryMetrics = DeliveryMetrics & {
10690
10690
  /**
10691
10691
  * Geographic code within the level and system. Country: ISO 3166-1 alpha-2 ('US'). Region: ISO 3166-2 with country prefix ('US-CA'). Metro/postal: system-specific code ('501', '10001').
10692
10692
  */
10693
- geo_code: string;
10693
+ geo_code?: string;
10694
10694
  /**
10695
10695
  * Human-readable geographic name (e.g., 'United States', 'California', 'New York DMA')
10696
10696
  */
10697
10697
  geo_name?: string;
10698
10698
  };
10699
+ export type GetMediaBuyDeliveryDeviceTypeMetrics = DeliveryMetrics & {
10700
+ device_type?: DeviceType;
10701
+ };
10702
+ export type GetMediaBuyDeliveryDevicePlatformMetrics = DeliveryMetrics & {
10703
+ device_platform?: DevicePlatform;
10704
+ };
10705
+ export type GetMediaBuyDeliveryAudienceMetrics = DeliveryMetrics & {
10706
+ /**
10707
+ * Audience segment identifier. For 'synced' source, matches audience_id from sync_audiences. For other sources, seller-defined.
10708
+ */
10709
+ audience_id?: string;
10710
+ audience_source?: AudienceSource;
10711
+ /**
10712
+ * Human-readable audience segment name
10713
+ */
10714
+ audience_name?: string;
10715
+ };
10716
+ export type GetMediaBuyDeliveryPlacementMetrics = DeliveryMetrics & {
10717
+ /**
10718
+ * Placement identifier from the product's placements array
10719
+ */
10720
+ placement_id?: string;
10721
+ /**
10722
+ * Human-readable placement name
10723
+ */
10724
+ placement_name?: string;
10725
+ /**
10726
+ * Canonical publisher domain whose adagents.json namespace this placement belongs to, matching the `publisher_domain` on the product's `placements[]` entry that `placement_id` resolves to (see core/placement.json). Lets buyers attribute delivered impressions to a publisher namespace without re-fetching the product catalog — the common case for multi-publisher buys through a single sales agent. Sellers SHOULD emit it whenever the resolving product placement carries a publisher_domain (always true for `kind: publisher_ref`); sellers MAY omit it only for `seller_inline` placements in a legacy single-publisher context where the seller agent's own domain is the namespace. Single-valued: a placement resolves within exactly one publisher namespace (package-level attribution, where an ad-network product can span publishers, is a separate concern).
10727
+ * @pattern ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$
10728
+ */
10729
+ publisher_domain?: string;
10730
+ };
10699
10731
  /**
10700
10732
  * Response payload for get_media_buy_delivery task
10701
10733
  */
@@ -10969,7 +11001,7 @@ export interface GetMediaBuyDeliveryResponse {
10969
11001
  /**
10970
11002
  * Delivery by catalog item within this package. Available for catalog-driven packages when the seller supports item-level reporting.
10971
11003
  */
10972
- by_catalog_item?: CatalogItemDeliveryMetrics[];
11004
+ by_catalog_item?: GetMediaBuyDeliveryCatalogItemMetrics[];
10973
11005
  /**
10974
11006
  * Metrics broken down by creative within this package. Available when the seller supports creative-level reporting.
10975
11007
  */
@@ -10977,11 +11009,11 @@ export interface GetMediaBuyDeliveryResponse {
10977
11009
  /**
10978
11010
  * Metrics broken down by keyword within this package. One row per (keyword, match_type) pair — the same keyword with different match types appears as separate rows. Keyword-grain only: rows reflect aggregate performance of each targeted keyword, not individual search queries. Rows may not sum to package totals when a single impression is attributed to the triggering keyword only. Available for search and retail media packages when the seller supports keyword-level reporting.
10979
11011
  */
10980
- by_keyword?: KeywordDeliveryMetrics[];
11012
+ by_keyword?: GetMediaBuyDeliveryKeywordMetrics[];
10981
11013
  /**
10982
11014
  * Delivery by geographic area within this package. Available when the buyer requests geo breakdown via reporting_dimensions and the seller supports it. Each dimension's rows are independent slices that should sum to the package total.
10983
11015
  */
10984
- by_geo?: GeoDeliveryMetrics[];
11016
+ by_geo?: GetMediaBuyDeliveryGeoMetrics[];
10985
11017
  /**
10986
11018
  * Whether by_geo was truncated due to the requested limit or a seller-imposed maximum. Sellers MUST return this flag whenever by_geo is present (false means the list is complete).
10987
11019
  */
@@ -10989,9 +11021,7 @@ export interface GetMediaBuyDeliveryResponse {
10989
11021
  /**
10990
11022
  * Delivery by device form factor within this package. Available when the buyer requests device_type breakdown via reporting_dimensions and the seller supports it.
10991
11023
  */
10992
- by_device_type?: (DeliveryMetrics & {
10993
- device_type?: DeviceType;
10994
- })[];
11024
+ by_device_type?: GetMediaBuyDeliveryDeviceTypeMetrics[];
10995
11025
  /**
10996
11026
  * Whether by_device_type was truncated. Sellers MUST return this flag whenever by_device_type is present (false means the list is complete).
10997
11027
  */
@@ -10999,9 +11029,7 @@ export interface GetMediaBuyDeliveryResponse {
10999
11029
  /**
11000
11030
  * Delivery by operating system within this package. Available when the buyer requests device_platform breakdown via reporting_dimensions and the seller supports it. Useful for CTV campaigns where tvOS vs Roku OS vs Fire OS matters.
11001
11031
  */
11002
- by_device_platform?: (DeliveryMetrics & {
11003
- device_platform?: DevicePlatform;
11004
- })[];
11032
+ by_device_platform?: GetMediaBuyDeliveryDevicePlatformMetrics[];
11005
11033
  /**
11006
11034
  * Whether by_device_platform was truncated. Sellers MUST return this flag whenever by_device_platform is present (false means the list is complete).
11007
11035
  */
@@ -11009,17 +11037,7 @@ export interface GetMediaBuyDeliveryResponse {
11009
11037
  /**
11010
11038
  * Delivery by audience segment within this package. Available when the buyer requests audience breakdown via reporting_dimensions and the seller supports it. Only 'synced' audiences are directly targetable via the targeting overlay; other sources are informational.
11011
11039
  */
11012
- by_audience?: (DeliveryMetrics & {
11013
- /**
11014
- * Audience segment identifier. For 'synced' source, matches audience_id from sync_audiences. For other sources, seller-defined.
11015
- */
11016
- audience_id?: string;
11017
- audience_source?: AudienceSource;
11018
- /**
11019
- * Human-readable audience segment name
11020
- */
11021
- audience_name?: string;
11022
- })[];
11040
+ by_audience?: GetMediaBuyDeliveryAudienceMetrics[];
11023
11041
  /**
11024
11042
  * Whether by_audience was truncated. Sellers MUST return this flag whenever by_audience is present (false means the list is complete).
11025
11043
  */
@@ -11027,21 +11045,7 @@ export interface GetMediaBuyDeliveryResponse {
11027
11045
  /**
11028
11046
  * Delivery by placement within this package. Available when the buyer requests placement breakdown via reporting_dimensions and the seller supports it. Placement IDs reference the product's placements array.
11029
11047
  */
11030
- by_placement?: (DeliveryMetrics & {
11031
- /**
11032
- * Placement identifier from the product's placements array
11033
- */
11034
- placement_id?: string;
11035
- /**
11036
- * Human-readable placement name
11037
- */
11038
- placement_name?: string;
11039
- /**
11040
- * Canonical publisher domain whose adagents.json namespace this placement belongs to, matching the `publisher_domain` on the product's `placements[]` entry that `placement_id` resolves to (see core/placement.json). Lets buyers attribute delivered impressions to a publisher namespace without re-fetching the product catalog — the common case for multi-publisher buys through a single sales agent. Sellers SHOULD emit it whenever the resolving product placement carries a publisher_domain (always true for `kind: publisher_ref`); sellers MAY omit it only for `seller_inline` placements in a legacy single-publisher context where the seller agent's own domain is the namespace. Single-valued: a placement resolves within exactly one publisher namespace (package-level attribution, where an ad-network product can span publishers, is a separate concern).
11041
- * @pattern ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$
11042
- */
11043
- publisher_domain?: string;
11044
- })[];
11048
+ by_placement?: GetMediaBuyDeliveryPlacementMetrics[];
11045
11049
  /**
11046
11050
  * Whether by_placement was truncated. Sellers MUST return this flag whenever by_placement is present (false means the list is complete).
11047
11051
  */