@adcp/sdk API Reference - v17.0.0-rc.0
    Preparing search index...

    Type Alias RequestProposalsResponse

    RequestProposalsResponse:
        | ProtocolEnvelope & {
            outcome: "proposed";
            reason?: never;
            suggestions?: never;
            proposals: [
                CanonicalProposal & { proposal_status: "draft"; expires_at: string },
                ...(CanonicalProposal & { proposal_status: "draft"; expires_at: string })[],
            ];
            products: [CanonicalProduct, ...CanonicalProduct[]];
            collections?: [ResponseCollection, ...ResponseCollection[]];
            incomplete?: [
                {
                    scope: | "products"
                    | "pricing"
                    | "forecast"
                    | "proposals"
                    | "wholesale_feed";
                    description: string;
                    estimated_wait?: Duration;
                },
                ...{
                    scope: | "products"
                    | "pricing"
                    | "forecast"
                    | "proposals"
                    | "wholesale_feed";
                    description: string;
                    estimated_wait?: Duration;
                }[],
            ];
            purchase_continuation?: never;
            targeting_resolution?: ProductDiscoveryTargetingResolution;
            later_proposals?: LaterProposalsState;
            errors?: TaskErrorDetail[];
            context?: ContextObject;
            ext?: ExtensionObject;
            status?: "completed";
            task_id?: never;
        }
        | ProtocolEnvelope & {
            outcome: "products_available";
            reason?: never;
            suggestions?: never;
            proposals?: never;
            products: [CanonicalProduct, ...CanonicalProduct[]];
            collections?: [ResponseCollection, ...ResponseCollection[]];
            incomplete?: [
                {
                    scope: | "products"
                    | "pricing"
                    | "forecast"
                    | "proposals"
                    | "wholesale_feed";
                    description: string;
                    estimated_wait?: Duration;
                },
                ...{
                    scope: | "products"
                    | "pricing"
                    | "forecast"
                    | "proposals"
                    | "wholesale_feed";
                    description: string;
                    estimated_wait?: Duration;
                }[],
            ];
            purchase_continuation: | {
                kind: "listed_purchase";
                product_ids: [string, ...string[]];
                cache_scope: "account";
                feed_version: string;
                pricing_version?: string;
            }
            | {
                kind: "legacy_create";
                continuation_token: string;
                continuation_expires_at: string;
                source_adcp_version: "2.5"
                | "3.0"
                | "3.1";
                product_ids: [string, ...string[]];
                losses: [
                    | "feed_version_not_atomic"
                    | "pricing_version_not_atomic"
                    | "mutation_idempotency_not_guaranteed",
                    | "feed_version_not_atomic"
                    | "pricing_version_not_atomic"
                    | "mutation_idempotency_not_guaranteed",
                    ...((...) | (...) | (...))[],
                ];
                requires_explicit_acceptance: true;
            };
            targeting_resolution?: ProductDiscoveryTargetingResolution;
            later_proposals?: LaterProposalsState;
            errors?: TaskErrorDetail[];
            context?: ContextObject;
            ext?: ExtensionObject;
            status?: "completed";
            task_id?: never;
        }
        | ProtocolEnvelope & {
            outcome: "rejected";
            reason: string;
            suggestions?: [string, ...string[]];
            proposals?: never;
            products?: never;
            collections?: never;
            incomplete?: never;
            purchase_continuation?: never;
            targeting_resolution?: ProductDiscoveryTargetingResolution;
            later_proposals?: LaterProposalsState;
            errors?: TaskErrorDetail[];
            context?: ContextObject;
            ext?: ExtensionObject;
            status?: "completed";
            task_id?: never;
        }
        | ProtocolEnvelope & {
            outcome?: "proposed"
            | "products_available"
            | "rejected";
            reason?: string;
            suggestions?: [string, ...string[]];
            proposals?: [
                CanonicalProposal & { proposal_status: "draft"; expires_at: string },
                ...(CanonicalProposal & { proposal_status: "draft"; expires_at: string })[],
            ];
            products?: [CanonicalProduct, ...CanonicalProduct[]];
            collections?: [ResponseCollection, ...ResponseCollection[]];
            incomplete?: [
                {
                    scope: | "products"
                    | "pricing"
                    | "forecast"
                    | "proposals"
                    | "wholesale_feed";
                    description: string;
                    estimated_wait?: Duration;
                },
                ...{
                    scope: | "products"
                    | "pricing"
                    | "forecast"
                    | "proposals"
                    | "wholesale_feed";
                    description: string;
                    estimated_wait?: Duration;
                }[],
            ];
            purchase_continuation?: | {
                kind: "listed_purchase";
                product_ids: [string, ...string[]];
                cache_scope: "account";
                feed_version: string;
                pricing_version?: string;
            }
            | {
                kind: "legacy_create";
                continuation_token: string;
                continuation_expires_at: string;
                source_adcp_version: "2.5"
                | "3.0"
                | "3.1";
                product_ids: [string, ...string[]];
                losses: [
                    | "feed_version_not_atomic"
                    | "pricing_version_not_atomic"
                    | "mutation_idempotency_not_guaranteed",
                    | "feed_version_not_atomic"
                    | "pricing_version_not_atomic"
                    | "mutation_idempotency_not_guaranteed",
                    ...((...) | (...) | (...))[],
                ];
                requires_explicit_acceptance: true;
            };
            targeting_resolution?: ProductDiscoveryTargetingResolution;
            later_proposals?: LaterProposalsState;
            errors?: TaskErrorDetail[];
            context?: ContextObject;
            ext?: ExtensionObject;
            status: "submitted";
            task_id: TaskID;
        }

    One or more immutable draft media-plan proposals and compact canonical products referenced by their purchases. Products always carry product_id and name and never carry legacy named-format identifiers. During the AdCP 3.x compatibility window, an SDK projecting a valid products-only get_products brief result may instead return the deprecated products_available outcome with an explicit purchase continuation. Native 3.2 sellers MUST NOT use that compatibility outcome, and adapters MUST NOT fabricate a proposal, terms digest, or feed version.

    Type Declaration

    • ProtocolEnvelope & {
          outcome: "proposed";
          reason?: never;
          suggestions?: never;
          proposals: [
              CanonicalProposal & { proposal_status: "draft"; expires_at: string },
              ...(CanonicalProposal & { proposal_status: "draft"; expires_at: string })[],
          ];
          products: [CanonicalProduct, ...CanonicalProduct[]];
          collections?: [ResponseCollection, ...ResponseCollection[]];
          incomplete?: [
              {
                  scope: | "products"
                  | "pricing"
                  | "forecast"
                  | "proposals"
                  | "wholesale_feed";
                  description: string;
                  estimated_wait?: Duration;
              },
              ...{
                  scope: | "products"
                  | "pricing"
                  | "forecast"
                  | "proposals"
                  | "wholesale_feed";
                  description: string;
                  estimated_wait?: Duration;
              }[],
          ];
          purchase_continuation?: never;
          targeting_resolution?: ProductDiscoveryTargetingResolution;
          later_proposals?: LaterProposalsState;
          errors?: TaskErrorDetail[];
          context?: ContextObject;
          ext?: ExtensionObject;
          status?: "completed";
          task_id?: never;
      }
      • outcome: "proposed"
      • Optionalreason?: never
      • Optionalsuggestions?: never
      • proposals: [
            CanonicalProposal & { proposal_status: "draft"; expires_at: string },
            ...(CanonicalProposal & { proposal_status: "draft"; expires_at: string })[],
        ]

        1

      • products: [CanonicalProduct, ...CanonicalProduct[]]

        1

      • Optionalcollections?: [ResponseCollection, ...ResponseCollection[]]

        Experimental (media_buy.collection_cards). Full collection objects for collections referenced by the collections selectors of the returned products. Sellers MUST NOT return this array unless the request set include_collections to true; when it is set, sellers SHOULD include every referenced collection and MUST NOT include one that no returned product references. At most one entry per (publisher_domain, collection_id). If a key appears more than once, that collection is unresolvable from this response; buyers fall back to the publisher's adagents.json, as they do for an omitted collection, and ignore entries that no returned product references. These are convenience copies, never authorization evidence: a copy wins over adagents.json only on images, sample_content, url, description, season, cadence and distribution[].followers (see core/response-collection.json). Present only alongside products, so never on a rejected outcome.

        1

      • Optionalincomplete?: [
            {
                scope: | "products"
                | "pricing"
                | "forecast"
                | "proposals"
                | "wholesale_feed";
                description: string;
                estimated_wait?: Duration;
            },
            ...{
                scope: | "products"
                | "pricing"
                | "forecast"
                | "proposals"
                | "wholesale_feed";
                description: string;
                estimated_wait?: Duration;
            }[],
        ]

        Usable partial discovery result retained from the established get_products response. Absence means the source response did not declare an incomplete scope; it does not authorize an adapter to infer missing proposal terms.

        1

      • Optionalpurchase_continuation?: never
      • Optionaltargeting_resolution?: ProductDiscoveryTargetingResolution
      • Optionallater_proposals?: LaterProposalsState
      • Optionalerrors?: TaskErrorDetail[]
      • Optionalcontext?: ContextObject
      • Optionalext?: ExtensionObject
      • Optionalstatus?: "completed"
      • Optionaltask_id?: never
    • ProtocolEnvelope & {
          outcome: "products_available";
          reason?: never;
          suggestions?: never;
          proposals?: never;
          products: [CanonicalProduct, ...CanonicalProduct[]];
          collections?: [ResponseCollection, ...ResponseCollection[]];
          incomplete?: [
              {
                  scope: | "products"
                  | "pricing"
                  | "forecast"
                  | "proposals"
                  | "wholesale_feed";
                  description: string;
                  estimated_wait?: Duration;
              },
              ...{
                  scope: | "products"
                  | "pricing"
                  | "forecast"
                  | "proposals"
                  | "wholesale_feed";
                  description: string;
                  estimated_wait?: Duration;
              }[],
          ];
          purchase_continuation: | {
              kind: "listed_purchase";
              product_ids: [string, ...string[]];
              cache_scope: "account";
              feed_version: string;
              pricing_version?: string;
          }
          | {
              kind: "legacy_create";
              continuation_token: string;
              continuation_expires_at: string;
              source_adcp_version: "2.5"
              | "3.0"
              | "3.1";
              product_ids: [string, ...string[]];
              losses: [
                  | "feed_version_not_atomic"
                  | "pricing_version_not_atomic"
                  | "mutation_idempotency_not_guaranteed",
                  | "feed_version_not_atomic"
                  | "pricing_version_not_atomic"
                  | "mutation_idempotency_not_guaranteed",
                  ...((...) | (...) | (...))[],
              ];
              requires_explicit_acceptance: true;
          };
          targeting_resolution?: ProductDiscoveryTargetingResolution;
          later_proposals?: LaterProposalsState;
          errors?: TaskErrorDetail[];
          context?: ContextObject;
          ext?: ExtensionObject;
          status?: "completed";
          task_id?: never;
      }
      • outcome: "products_available"
      • Optionalreason?: never
      • Optionalsuggestions?: never
      • Optionalproposals?: never
      • products: [CanonicalProduct, ...CanonicalProduct[]]

        1

      • Optionalcollections?: [ResponseCollection, ...ResponseCollection[]]

        Experimental (media_buy.collection_cards). Full collection objects for collections referenced by the collections selectors of the returned products. Sellers MUST NOT return this array unless the request set include_collections to true; when it is set, sellers SHOULD include every referenced collection and MUST NOT include one that no returned product references. At most one entry per (publisher_domain, collection_id). If a key appears more than once, that collection is unresolvable from this response; buyers fall back to the publisher's adagents.json, as they do for an omitted collection, and ignore entries that no returned product references. These are convenience copies, never authorization evidence: a copy wins over adagents.json only on images, sample_content, url, description, season, cadence and distribution[].followers (see core/response-collection.json). Present only alongside products, so never on a rejected outcome.

        1

      • Optionalincomplete?: [
            {
                scope: | "products"
                | "pricing"
                | "forecast"
                | "proposals"
                | "wholesale_feed";
                description: string;
                estimated_wait?: Duration;
            },
            ...{
                scope: | "products"
                | "pricing"
                | "forecast"
                | "proposals"
                | "wholesale_feed";
                description: string;
                estimated_wait?: Duration;
            }[],
        ]

        Usable partial discovery result retained from the established get_products response. Absence means the source response did not declare an incomplete scope; it does not authorize an adapter to infer missing proposal terms.

        1

      • purchase_continuation:
            | {
                kind: "listed_purchase";
                product_ids: [string, ...string[]];
                cache_scope: "account";
                feed_version: string;
                pricing_version?: string;
            }
            | {
                kind: "legacy_create";
                continuation_token: string;
                continuation_expires_at: string;
                source_adcp_version: "2.5"
                | "3.0"
                | "3.1";
                product_ids: [string, ...string[]];
                losses: [
                    | "feed_version_not_atomic"
                    | "pricing_version_not_atomic"
                    | "mutation_idempotency_not_guaranteed",
                    | "feed_version_not_atomic"
                    | "pricing_version_not_atomic"
                    | "mutation_idempotency_not_guaranteed",
                    ...((...) | (...) | (...))[],
                ];
                requires_explicit_acceptance: true;
            }

        Deprecated AdCP 3.x projection instruction for purchasing products returned without a proposal. This is coordinator state, not a claim that the established seller implements a compact task. A native 3.2 seller MUST NOT emit it.

      • Optionaltargeting_resolution?: ProductDiscoveryTargetingResolution
      • Optionallater_proposals?: LaterProposalsState
      • Optionalerrors?: TaskErrorDetail[]
      • Optionalcontext?: ContextObject
      • Optionalext?: ExtensionObject
      • Optionalstatus?: "completed"
      • Optionaltask_id?: never
    • ProtocolEnvelope & {
          outcome: "rejected";
          reason: string;
          suggestions?: [string, ...string[]];
          proposals?: never;
          products?: never;
          collections?: never;
          incomplete?: never;
          purchase_continuation?: never;
          targeting_resolution?: ProductDiscoveryTargetingResolution;
          later_proposals?: LaterProposalsState;
          errors?: TaskErrorDetail[];
          context?: ContextObject;
          ext?: ExtensionObject;
          status?: "completed";
          task_id?: never;
      }
      • outcome: "rejected"
      • reason: string

        1

      • Optionalsuggestions?: [string, ...string[]]

        1

      • Optionalproposals?: never
      • Optionalproducts?: never
      • Optionalcollections?: never
      • Optionalincomplete?: never
      • Optionalpurchase_continuation?: never
      • Optionaltargeting_resolution?: ProductDiscoveryTargetingResolution
      • Optionallater_proposals?: LaterProposalsState
      • Optionalerrors?: TaskErrorDetail[]
      • Optionalcontext?: ContextObject
      • Optionalext?: ExtensionObject
      • Optionalstatus?: "completed"
      • Optionaltask_id?: never
    • ProtocolEnvelope & {
          outcome?: "proposed" | "products_available" | "rejected";
          reason?: string;
          suggestions?: [string, ...string[]];
          proposals?: [
              CanonicalProposal & { proposal_status: "draft"; expires_at: string },
              ...(CanonicalProposal & { proposal_status: "draft"; expires_at: string })[],
          ];
          products?: [CanonicalProduct, ...CanonicalProduct[]];
          collections?: [ResponseCollection, ...ResponseCollection[]];
          incomplete?: [
              {
                  scope: | "products"
                  | "pricing"
                  | "forecast"
                  | "proposals"
                  | "wholesale_feed";
                  description: string;
                  estimated_wait?: Duration;
              },
              ...{
                  scope: | "products"
                  | "pricing"
                  | "forecast"
                  | "proposals"
                  | "wholesale_feed";
                  description: string;
                  estimated_wait?: Duration;
              }[],
          ];
          purchase_continuation?: | {
              kind: "listed_purchase";
              product_ids: [string, ...string[]];
              cache_scope: "account";
              feed_version: string;
              pricing_version?: string;
          }
          | {
              kind: "legacy_create";
              continuation_token: string;
              continuation_expires_at: string;
              source_adcp_version: "2.5"
              | "3.0"
              | "3.1";
              product_ids: [string, ...string[]];
              losses: [
                  | "feed_version_not_atomic"
                  | "pricing_version_not_atomic"
                  | "mutation_idempotency_not_guaranteed",
                  | "feed_version_not_atomic"
                  | "pricing_version_not_atomic"
                  | "mutation_idempotency_not_guaranteed",
                  ...((...) | (...) | (...))[],
              ];
              requires_explicit_acceptance: true;
          };
          targeting_resolution?: ProductDiscoveryTargetingResolution;
          later_proposals?: LaterProposalsState;
          errors?: TaskErrorDetail[];
          context?: ContextObject;
          ext?: ExtensionObject;
          status: "submitted";
          task_id: TaskID;
      }
      • Optionaloutcome?: "proposed" | "products_available" | "rejected"
      • Optionalreason?: string

        1

      • Optionalsuggestions?: [string, ...string[]]

        1

      • Optionalproposals?: [
            CanonicalProposal & { proposal_status: "draft"; expires_at: string },
            ...(CanonicalProposal & { proposal_status: "draft"; expires_at: string })[],
        ]

        1

      • Optionalproducts?: [CanonicalProduct, ...CanonicalProduct[]]

        1

      • Optionalcollections?: [ResponseCollection, ...ResponseCollection[]]

        Experimental (media_buy.collection_cards). Full collection objects for collections referenced by the collections selectors of the returned products. Sellers MUST NOT return this array unless the request set include_collections to true; when it is set, sellers SHOULD include every referenced collection and MUST NOT include one that no returned product references. At most one entry per (publisher_domain, collection_id). If a key appears more than once, that collection is unresolvable from this response; buyers fall back to the publisher's adagents.json, as they do for an omitted collection, and ignore entries that no returned product references. These are convenience copies, never authorization evidence: a copy wins over adagents.json only on images, sample_content, url, description, season, cadence and distribution[].followers (see core/response-collection.json). Present only alongside products, so never on a rejected outcome.

        1

      • Optionalincomplete?: [
            {
                scope: | "products"
                | "pricing"
                | "forecast"
                | "proposals"
                | "wholesale_feed";
                description: string;
                estimated_wait?: Duration;
            },
            ...{
                scope: | "products"
                | "pricing"
                | "forecast"
                | "proposals"
                | "wholesale_feed";
                description: string;
                estimated_wait?: Duration;
            }[],
        ]

        Usable partial discovery result retained from the established get_products response. Absence means the source response did not declare an incomplete scope; it does not authorize an adapter to infer missing proposal terms.

        1

      • Optionalpurchase_continuation?:
            | {
                kind: "listed_purchase";
                product_ids: [string, ...string[]];
                cache_scope: "account";
                feed_version: string;
                pricing_version?: string;
            }
            | {
                kind: "legacy_create";
                continuation_token: string;
                continuation_expires_at: string;
                source_adcp_version: "2.5"
                | "3.0"
                | "3.1";
                product_ids: [string, ...string[]];
                losses: [
                    | "feed_version_not_atomic"
                    | "pricing_version_not_atomic"
                    | "mutation_idempotency_not_guaranteed",
                    | "feed_version_not_atomic"
                    | "pricing_version_not_atomic"
                    | "mutation_idempotency_not_guaranteed",
                    ...((...) | (...) | (...))[],
                ];
                requires_explicit_acceptance: true;
            }

        Deprecated AdCP 3.x projection instruction for purchasing products returned without a proposal. This is coordinator state, not a claim that the established seller implements a compact task. A native 3.2 seller MUST NOT emit it.

      • Optionaltargeting_resolution?: ProductDiscoveryTargetingResolution
      • Optionallater_proposals?: LaterProposalsState
      • Optionalerrors?: TaskErrorDetail[]
      • Optionalcontext?: ContextObject
      • Optionalext?: ExtensionObject
      • status: "submitted"
      • task_id: TaskID