@adcp/sdk API Reference - v10.0.1
    Preparing search index...

    Interface InlineCreativesForPackagesOptions<TPackage>

    interface InlineCreativesForPackagesOptions<
        TPackage extends InlineCreativePackage = InlineCreativePackage,
    > {
        assignments?: readonly InlineCreativeAssignment[];
        includeUnassignedCreatives?: boolean;
        filterByFormat?: boolean;
        packageId?: (pkg: TPackage, index: number) => string | undefined;
        onUnmatchedAssignment?: "ignore" | "throw";
        onMissingCreative?: "ignore" | "throw";
        onIncompatibleAssignment?: "ignore" | "throw";
    }

    Type Parameters

    Index

    Properties

    assignments?: readonly InlineCreativeAssignment[]

    Package-scoped assignment instructions. When supplied, only creatives assigned to each package are inlined unless includeUnassignedCreatives is true.

    includeUnassignedCreatives?: boolean

    Include compatible creatives that have no assignment entry. Defaults to false when assignments are supplied and true when no assignments exist.

    filterByFormat?: boolean

    Filter creatives by package format selectors (format_ids, format_option_refs, or format_kind). Defaults to true.

    packageId?: (pkg: TPackage, index: number) => string | undefined

    Resolve the package identifier used to match assignment.package_id. Defaults to package_id, then context.buyer_ref, then buyer_ref.

    onUnmatchedAssignment?: "ignore" | "throw"

    Behavior when an assignment names a package not present in the package list. Defaults to throw so package scoping mistakes do not broaden delivery silently.

    onMissingCreative?: "ignore" | "throw"

    Behavior when an assignment names a creative not present in creatives. Defaults to throw because inline payloads cannot reference library-only creatives.

    onIncompatibleAssignment?: "ignore" | "throw"

    Behavior when an explicit assignment names a creative whose format cannot satisfy the target package selectors. Defaults to throw so authoring mistakes do not silently remove assigned delivery.