@adcp/client API Reference - v3.3.3
    Preparing search index...

    Type Alias CreateMediaBuyResponse

    CreateMediaBuyResponse:
        | {
            media_buy_id: string;
            buyer_ref: string;
            creative_deadline?: string;
            packages: Package[];
            context?: ContextObject;
            ext?: ExtensionObject;
        }
        | {
            errors: [Error, ...Error[]];
            context?: ContextObject;
            ext?: ExtensionObject;
        }

    Response payload for create_media_buy task. Returns either complete success data OR error information, never both. This enforces atomic operation semantics - the media buy is either fully created or not created at all.

    Type Declaration

    • {
          media_buy_id: string;
          buyer_ref: string;
          creative_deadline?: string;
          packages: Package[];
          context?: ContextObject;
          ext?: ExtensionObject;
      }
      • media_buy_id: string

        Publisher's unique identifier for the created media buy

      • buyer_ref: string

        Buyer's reference identifier for this media buy

      • Optionalcreative_deadline?: string

        ISO 8601 timestamp for creative upload deadline

      • packages: Package[]

        Array of created packages with complete state information

      • Optionalcontext?: ContextObject
      • Optionalext?: ExtensionObject
    • { errors: [Error, ...Error[]]; context?: ContextObject; ext?: ExtensionObject }
      • errors: [Error, ...Error[]]

        Array of errors explaining why the operation failed

        1

      • Optionalcontext?: ContextObject
      • Optionalext?: ExtensionObject