@adcp/sdk API Reference - v14.3.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 {
        accepted_proposal?: ActionProposal;
        accepted_proposal_id?: string;
        media_buy_id?: string;
        status?: string;
        start_time?: string;
        end_time?: string;
        revision?: number;
        currency?: string;
        total_budget?: number | { amount: number; currency: string };
        daily_budget_cap?: number | null;
        packages?: readonly {
            package_id?: string;
            budget?: number;
            start_time?: string;
            end_time?: string;
            canceled?: boolean;
            paused?: boolean;
            status?: string;
            daily_budget_cap?: number | null;
            min_spend_target?: number | null;
        }[];
        available_actions?: readonly LiveMediaBuyAction[];
        valid_actions?: MediaBuyValidAction[];
    }
    Index
    accepted_proposal?: ActionProposal
    accepted_proposal_id?: string
    media_buy_id?: string
    status?: string
    start_time?: string
    end_time?: string
    revision?: number
    currency?: string
    total_budget?: number | { amount: number; currency: string }
    daily_budget_cap?: number | null
    packages?: readonly {
        package_id?: string;
        budget?: number;
        start_time?: string;
        end_time?: string;
        canceled?: boolean;
        paused?: boolean;
        status?: string;
        daily_budget_cap?: number | null;
        min_spend_target?: number | null;
    }[]
    available_actions?: readonly LiveMediaBuyAction[]
    valid_actions?: MediaBuyValidAction[]