@adcp/sdk API Reference - v14.3.0
    Preparing search index...

    Function resolveTargetingInput

    • Resolve a request-only Targeting Input into the strict effective overlay, dropping every null clear command.

      Use this on the create path only when no configured/product targeting defaults need to be materialized. Otherwise pass those strict defaults and the request to applyTargetingInput. Also use this projection whenever a request-shaped overlay without a baseline is about to become strict state.

      Returns undefined when the input is absent, is an explicit whole-overlay clear, or resolves to no surviving dimensions — a cleared dimension is absent from effective readback, so an empty overlay is expressed by omitting it rather than by echoing {}.

      Type Parameters

      • T extends object

      Parameters

      • input: T | null | undefined

      Returns ResolvedTargetingInput<T> | undefined

      resolveTargetingInput({ geo_countries: ['US'], audience_include: null });
      // → { geo_countries: ['US'] } — the clear command is not stored