Skip to content

Why is the DisclosedVendors segment excluded when isServiceSpecific=true in the EU TCF section? #96

@shantanu-kamdi

Description

@shantanu-kamdi

I'm using the iabgpp-es to encode GPP strings that include the EU TCF v2 section (section ID 2).
I've observed that when isServiceSpecific is set to true the library omits the DisclosedVendors segment entirely from the encoded TC string, even if DisclosedVendors data is provided (e.g., via a bitfield or range encoding of vendor IDs that were disclosed in the CMP UI).

Sample code:
const gppCmpApi = new CmpApi(CMP_ID, CMP_VERSION);
gppCmpApi?.setSectionString(TcfEuV2.NAME, tcfString);
gppCmpApi?.setFieldValue(TcfEuV2.NAME, TcfEuV2Field.IS_SERVICE_SPECIFIC, false);

Sample strings:
TCF: CQcrdcAQcrdcAAKA9AENCKFsAP_AAEPAACRQL3wDwAdABcAGyAl8BooEVwKWgVmgtuC3cFvQW_guCC60F2AXZgu4C7sF3wXrgvaC94L2QEQAuADZAZ8A0WC3ALcwW7BbwC4AFwgLiwXHBciC5YLmQXWBdgC7UF3QXgAvIBeoC9gAAAAA.IL3wDQAdABcAGyAl8BooEVwKWgVmgtuC38FwQXWguwC7MF3AXdgu-C94.YAAAAAAAAAAA

GPP: DBABMA~CQcsnG_QcsnG_AKA9AENCKFsAP_AAEPAACRQL3wDwAdABcAGyAl8BooEVwKWgVmgtuC3cFvQW_guCC60F2AXZgu4C7sF3wXrgvaC94L2QEQAuADZAZ8A0WC3ALcwW7BbwC4AFwgLiwXHBciC5YLmQXWBdgC7UF3QXgAvIBeoC9gAAAAA.YAAAAAAAAAAA

Changing isServiceSpecific to false adds the vendors disclosed section
My Question is: For vendorsDisclosed, do we need to use isServiceSpecific as false? Or is this known issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions