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

    Interface CoverageTraceExperimental

    Why one period of one (media buy, offering) under one subscription is or is not owed. The same JSON in both SDKs and on both sides of the wire.

    Reporting subscriptions (AdCP 3.3).

    interface CoverageTrace {
        trace_version: 1;
        side: "buyer" | "seller";
        subject: {
            principal_id?: string;
            account_id: string;
            subscription_id: string;
            subscription_version: number;
            media_buy_id: string;
            offering_id: string | null;
            period: { start: string; end: string; timezone: string };
        };
        verdict: "owed"
        | "not_owed";
        reason:
            | "owed"
            | "not_in_scope"
            | "excluded:excluded_by_buyer"
            | "not_authorized"
            | "before_coverage_start"
            | "subscription_inactive"
            | "excluded:offering_unsupported"
            | "outside_flight"
            | "after_stop"
            | "before_confirmation"
            | "before_package_added"
            | "excluded:capacity"
            | "excluded:overridden"
            | "excluded:action_required"
            | "gap:unauthorized"
            | "cutover_stretch"
            | "owed_under_other_version"
            | "period_not_ended"
            | "owed:regrant_backfill"
            | "owed:withheld"
            | "buy_not_visible";
        explanation: string;
        steps: CoverageTraceStep[];
        inputs_digest: string;
        seller_only?: Record<string, unknown>;
    }
    Index
    trace_version: 1
    side: "buyer" | "seller"
    subject: {
        principal_id?: string;
        account_id: string;
        subscription_id: string;
        subscription_version: number;
        media_buy_id: string;
        offering_id: string | null;
        period: { start: string; end: string; timezone: string };
    }

    Type Declaration

    • Optionalprincipal_id?: string

      The seller's name for the caller; a buyer trace omits it.

    • account_id: string
    • subscription_id: string
    • subscription_version: number

      The version that owes the period, or the version in effect at its start.

    • media_buy_id: string
    • offering_id: string | null

      null when none of the buy's packages lists an offering.

    • period: { start: string; end: string; timezone: string }
    verdict: "owed" | "not_owed"
    reason:
        | "owed"
        | "not_in_scope"
        | "excluded:excluded_by_buyer"
        | "not_authorized"
        | "before_coverage_start"
        | "subscription_inactive"
        | "excluded:offering_unsupported"
        | "outside_flight"
        | "after_stop"
        | "before_confirmation"
        | "before_package_added"
        | "excluded:capacity"
        | "excluded:overridden"
        | "excluded:action_required"
        | "gap:unauthorized"
        | "cutover_stretch"
        | "owed_under_other_version"
        | "period_not_ended"
        | "owed:regrant_backfill"
        | "owed:withheld"
        | "buy_not_visible"
    explanation: string

    One sentence from EXPLAIN_TEMPLATES.

    The rules in their fixed order, through the first that failed.

    inputs_digest: string

    sha256:<hex> over the wire-visible facts local to the period. now is not one of them.

    seller_only?: Record<string, unknown>

    Seller-side facts. Never sent to a buyer: send coverageTraceForBuyer(trace).