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

    Interface TranslateResult

    interface TranslateResult {
        url: string;
        dropped_params: string[];
        unmapped_macros: string[];
        dropped_consent_macros: string[];
        suspect_native_values: string[];
    }
    Index

    Properties

    url: string

    The translated URL. Base, path, and fragment are unchanged.

    dropped_params: string[]

    Keys of query parameters that were dropped due to unmapped macros. One entry per dropped parameter instance, so a repeated key can appear more than once.

    unmapped_macros: string[]

    Unique unmapped macro tokens encountered across all dropped parameters. Deduplicated: the same token is recorded at most once regardless of how many parameters reference it.

    dropped_consent_macros: string[]

    Subset of unmapped_macros that are consent/privacy signals ({GDPR}, {GDPR_CONSENT}, {US_PRIVACY}, {GPP_STRING}, {GPP_SID}, {LIMIT_AD_TRACKING}). Surfaced separately so a forgotten-mapping drop of a compliance-relevant macro isn't lost among benign drops. Deduplicated.

    suspect_native_values: string[]

    Macro tokens whose value entry looks like a native ad-server token (%%…%%, {{…}}, ${…}, [UPPER_SNAKE]). Such a value will be percent-encoded and break at impression time — almost always it should have been a native entry. Deduplicated.

    Note: this is mapping-scoped, not URL-scoped — it lints the whole mapping, so a suspect entry is reported even if its macro never appears in input_pixel_url (unlike unmapped_macros/dropped_params, which are URL-scoped). Empty when no mapping is suspect.