Skip to content

Rich Audience Bidder Adapter #3518

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

Merged
merged 5 commits into from
Feb 7, 2019
Merged

Rich Audience Bidder Adapter #3518

merged 5 commits into from
Feb 7, 2019

Conversation

richaudience
Copy link
Contributor

@richaudience richaudience commented Feb 5, 2019

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Does this change affect user-facing APIs or examples documented on http://prebid.org?
  • Other

Description of change

  • test parameters for validating bids
{
  bidder: '<bidder name>',
  params: {
    // ...
  }
}

Be sure to test the integration with your adserver using the Hello World sample page.

  • contact email of the adapter’s maintainer
  • official adapter submission

For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:

Other information

@bretg
Copy link
Collaborator

bretg commented Feb 5, 2019

docs PR prebid/prebid.github.io#1132

Copy link
Collaborator

@robertrmartinez robertrmartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@richaudience just one comment about passing in gdprConsent object to your getUserSyncs function if you want?

Thanks for >90% test coverage by the way!

var adUnits = [
{
code: 'test-div1',
sizes: [[300, 250],[300, 600]]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a comma after sizes declaration!


if (bidderRequest && bidderRequest.gdprConsent) {
payload.gdpr_consent = bidderRequest.gdprConsent.consentString;
payload.gdpr = bidderRequest.gdprConsent.gdprApplies; // we're handling the undefined case server side
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks for mentioning server side handling :)

* @param {serverResponses} Response from the server
* @returns {Array}
*/
getUserSyncs: function (syncOptions, serverResponses) {
Copy link
Collaborator

@robertrmartinez robertrmartinez Feb 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can pass in a gdprConsent param which you can use to send consent data if needed.

I see you use the serverResponses object to achieve the same, but in the else case you could utilize this gdprConsent data if wanted.

I am unsure how RichAudience wants to handle this but though I would let you know.

Example of adapter using this: https://github.com/prebid/Prebid.js/blob/master/modules/rubiconBidAdapter.js#L464

Copy link
Collaborator

@robertrmartinez robertrmartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@richaudience

Please remove the change to package-lock and then I will merge.

Thanks!

@@ -1,6 +1,6 @@
{
"name": "prebid.js",
"version": "2.0.0",
"version": "2.1.0-pre",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo this change, no need to update package lock.

@richaudience
Copy link
Contributor Author

Hi @robertrmartinez ,
Thanks for the advice of gdprConsent at UserSyncs.
All changes have been made.

Thanks!

Copy link
Collaborator

@robertrmartinez robertrmartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff!

Thanks for submitting to Prebid!

Good test coverage is appreciated as well!

image

@robertrmartinez robertrmartinez merged commit c2734a7 into prebid:master Feb 7, 2019
jacekburys-quantcast pushed a commit to jacekburys-quantcast/Prebid.js that referenced this pull request May 15, 2019
* Rich Audience Bidder Adapter

* Rich Audience Bidder Adapter

* Rich Audience Bidder Adapter

* Changes in UserSyncs

* Changes in package-lock.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants