Skip to content

ORTB2 Regs in the Bidder config are not merged to the global Regs object #4517

@linux019

Description

@linux019

This code should respect Regs object and merge to the global Regs

if bidderConfig.Config != nil && bidderConfig.Config.ORTB2 != nil {
fpdBidderData.Site = bidderConfig.Config.ORTB2.Site
fpdBidderData.App = bidderConfig.Config.ORTB2.App
fpdBidderData.User = bidderConfig.Config.ORTB2.User
fpdBidderData.Device = bidderConfig.Config.ORTB2.Device
}

https://docs.prebid.org/features/firstPartyData.html

Example of the Ext:

    "ext": {
        "prebid": {
            "auctiontimestamp": 1756986904826,
            "targeting": {
                "includewinners": false,
                "includebidderkeys": false
            },
            "adServerCurrency": "EUR",
            "bidderconfig": [
                {
                    "bidders": [
                        "improvedigital"
                    ],
                    "config": {
                        "ortb2": {
                            "regs": {
                                "coppa": 1
                            }
                        }
                    }
                }
            ],
            "channel": {
                "name": "pbjs",
                "version": "v9.50.0"
            }
        },
        "tmaxmax": 1875
    }

Does it need to validate ortb2.regs with a function similar to this one ?
What fields are allowed in the bidder config regs?

func validateRegs(req *openrtb_ext.RequestWrapper, gpp gpplib.GppContainer) []error {

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