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

    Interface CreativePackageFitResult

    interface CreativePackageFitResult {
        perPackage: readonly CreativePackageFit[];
        wire?:
            | {
                mode: "canonical";
                selector: {
                    format_kind: CanonicalFormatKind;
                    format_option_ref?: FormatOptionReference;
                };
                creative: CanonicalSyncCreativeAsset;
            }
            | {
                mode: "legacy";
                selector: { format_id: V1FormatId };
                creative: LegacyCreativeAsset;
            };
        refusal?: {
            code: | "package_does_not_fit"
            | "wire_projection_failed"
            | "package_context_missing";
            reasons: readonly CreativeFitReason[];
            conflicts?: {
                package_refs: readonly {
                    package_id: string;
                    ref?: V1FormatId;
                    refs?: readonly V1FormatId[];
                    reason?: string;
                }[];
                conflicts?: readonly {
                    constraint: "duration"
                    | "format_id"
                    | "size";
                    values: readonly { value: string; package_ids: readonly string[] }[];
                }[];
            };
        };
    }
    Index
    perPackage: readonly CreativePackageFit[]
    wire?:
        | {
            mode: "canonical";
            selector: {
                format_kind: CanonicalFormatKind;
                format_option_ref?: FormatOptionReference;
            };
            creative: CanonicalSyncCreativeAsset;
        }
        | {
            mode: "legacy";
            selector: { format_id: V1FormatId };
            creative: LegacyCreativeAsset;
        }

    Representation only: insufficient_facts still requires seller validation.

    refusal?: {
        code:
            | "package_does_not_fit"
            | "wire_projection_failed"
            | "package_context_missing";
        reasons: readonly CreativeFitReason[];
        conflicts?: {
            package_refs: readonly {
                package_id: string;
                ref?: V1FormatId;
                refs?: readonly V1FormatId[];
                reason?: string;
            }[];
            conflicts?: readonly {
                constraint: "duration"
                | "format_id"
                | "size";
                values: readonly { value: string; package_ids: readonly string[] }[];
            }[];
        };
    }