@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface MediaBuyActionContext

    Minimum surface a media buy needs to expose for the preflight helpers to operate. Picks the fields the helpers actually read so callers can pass either a MediaBuy, a CreateMediaBuySuccess, an UpdateMediaBuySuccess, or a get_media_buys entry. Optional fields match the schema; required fields are required by the helpers themselves.

    interface MediaBuyActionContext {
        media_buy_id?: string;
        status?: string;
        start_time?: string;
        end_time?: string;
        packages?: readonly {
            package_id?: string;
            budget?: number;
            start_time?: string;
            end_time?: string;
        }[];
        available_actions?: MediaBuyAvailableAction[];
        valid_actions?: MediaBuyValidAction[];
    }
    Index

    Properties

    media_buy_id?: string
    status?: string
    start_time?: string
    end_time?: string
    packages?: readonly {
        package_id?: string;
        budget?: number;
        start_time?: string;
        end_time?: string;
    }[]
    available_actions?: MediaBuyAvailableAction[]
    valid_actions?: MediaBuyValidAction[]