Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alternatebiddercodes in Prebid request extension #2

Conversation

pm-nilesh-chate
Copy link
Owner

@pm-nilesh-chate pm-nilesh-chate commented Jul 28, 2022

w.r.t prebid#2174 (comment)

This changes would make alternatebiddercodes from PBS config formally part of Prebid ORTB extensions.

  • Incoming ORTB would contain:
ext.prebid.alternatebiddercodes.enabled: true/false
ext.prebid.alternatebiddercodes.bidders.BIDDER.enabled: true/false
ext.prebid.alternatebiddercodes.bidders.BIDDER.allowedbiddercodes: [array, of, strings]
  • This would override the account-level config
  • If the request doesn't specify these values, then PBS-core would merge the account config into these values
  • Before sending to each adapter, PBS-core would need to remove entries that don't belong to that bidder. i.e. they would only receive ext.prebid.alternatebiddercodes.adapters.ME
  • Everything else is up to the adapter. They can ignore or use at will.

Ex. s2s config on page and incoming PBS request

pbjs.setConfig({
    s2sConfig: {
        extPrebid: {
            "alternatebiddercodes": {
                "enabled": true,
                "bidders": {
                    "pubmatic": {
                        "enabled": true,
                        "allowedbiddercodes": [
                            "groupm"
                        ]
                    }
                }
            }
        }
    }
});
{
   ...
   "ext": {
       "prebid": {
           "alternatebiddercodes": {
                "enabled": true,
                "bidders": {
                    "pubmatic": {
                        "enabled": true,
                        "allowedbiddercodes": [
                            "groupm"
                        ]
                    }
                }
            }
       }
   }
}

More details at prebid#2174

@pm-nilesh-chate pm-nilesh-chate changed the title Support ext.prebid.alternatebiddercodes Support alternatebiddercodes in Prebid ORTB extensions. Jul 28, 2022
@pm-nilesh-chate pm-nilesh-chate changed the title Support alternatebiddercodes in Prebid ORTB extensions. Add alternatebiddercodes in Prebid ORTB extensions. Jul 28, 2022
@pm-nilesh-chate pm-nilesh-chate changed the title Add alternatebiddercodes in Prebid ORTB extensions. Add alternatebiddercodes in Prebid request extensions. Aug 1, 2022
@pm-nilesh-chate pm-nilesh-chate changed the title Add alternatebiddercodes in Prebid request extensions. Add alternatebiddercodes in Prebid request extension Aug 1, 2022
@pm-nilesh-chate pm-nilesh-chate changed the base branch from feature-2174-update-alternatebiddercodes-config to master August 3, 2022 08:44
@pm-nilesh-chate
Copy link
Owner Author

resolved conflict and raised pr with vanilla base prebid#2339

@pm-nilesh-chate pm-nilesh-chate deleted the feature-2174-read-alternatebiddercodes-from-request-ext-2 branch August 4, 2022 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants