Skip to content

Inconsistent consented_providers format between Prebid Server and Google – integers vs. strings #4466

@pm-isha-bharti

Description

@pm-isha-bharti

We've observed a data type inconsistency when passing user.ext.consented_providers_settings.consented_providers in the bid request.

When sending user.ext.consented_providers_settings.consented_providers as an array of strings (e.g., ["12", "321"]), Prebid Server returns 400 Bad Request with following error:

Invalid request: req.user.ext is invalid: cannot unmarshal []int: unexpected character:

Google defines this field as repeated int64 in Protobuf, which translates to an array of strings in JSON. This is a common format in cross-system integrations.

Prebid expects an array of integers (e.g., [12, 321]).

Reference:

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Research

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions