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

Adbookpsp Bid Adapter: add new bid adapter #6712

Merged
merged 5 commits into from
Jun 10, 2021

Conversation

wgalecki
Copy link
Contributor

@wgalecki wgalecki commented May 6, 2021

Type of change

  • New bidder adapter

Description of change

Added adapter that connects to the AdbookPSP demand sources

  • test parameters for validating bids
{
  bidder: 'adbookpsp',
  params: {
    placementId: 'example-placement-id',
  },
}

@ChrisHuie ChrisHuie changed the title Added adbookpspBidAdapter Adbookpsp Bid Adapter: add new bid adapter May 6, 2021
@ChrisHuie ChrisHuie requested a review from msm0504 May 7, 2021 13:47
@msm0504
Copy link
Contributor

msm0504 commented May 7, 2021

Please fix the lint errors in this PR, so that the Circle CI tests will run. Double quotes need to be replaced with single quotes.

@wgalecki wgalecki marked this pull request as draft May 10, 2021 07:08
@wgalecki
Copy link
Contributor Author

I've been able to reproduce the test failures locally, will now try to fix them. I'll mark this PR ready to for review once I'm done to not bother you unnecessarily.

@wgalecki wgalecki force-pushed the adbookpsp-adapter branch 3 times, most recently from 01074e4 to 5ad491a Compare May 10, 2021 12:56
@wgalecki wgalecki marked this pull request as ready for review May 10, 2021 13:04
@wgalecki wgalecki force-pushed the adbookpsp-adapter branch 2 times, most recently from d6fb751 to 5e14968 Compare May 14, 2021 10:02
params: {
placementId: 'example-placement-id',
video: {
protocols: [2, 3],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please move this to the ad unit

@wgalecki wgalecki force-pushed the adbookpsp-adapter branch from 5e14968 to 22460fd Compare May 20, 2021 13:24
@wgalecki wgalecki force-pushed the adbookpsp-adapter branch from 138208c to 6a8cb8a Compare May 25, 2021 13:47
@wgalecki wgalecki requested a review from patmmccann May 25, 2021 13:47
@wgalecki
Copy link
Contributor Author

I've updated this branch with the latest upstream changes but still some tests are not passing. Do you have any advice?

@patmmccann
Copy link
Collaborator

Tests have passed


for (const id of impIds) {
targetingMap[id] = {
hb_liid_adbookpsp: values[id].lineItemIds.join(TARGETING_VALUE_SEPARATOR),
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is happening here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In short, we use custom targeting keys to pass additional information to GAM which is then used by our custom creative script to select an ad independently from Prebid.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you want to check said script into integration examples?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I meant the script rendered by GAM, I'm not sure we're interested in adding an example right now. Is this something you require?

Copy link
Collaborator

@patmmccann patmmccann May 27, 2021

Choose a reason for hiding this comment

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

No, but please add prominent disclosure in your doc repo pull and your .md file that custom gam creatives are required and that this bidder only works in its own gam order and that the prebid universal creative does not work etc. Please be very explicit and redundant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've expanded the note about the adapter requirements in the doc pull request and brought the note to the readme file here.

Copy link
Collaborator

@patmmccann patmmccann left a comment

Choose a reason for hiding this comment

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

a few minor requests

@wgalecki wgalecki requested a review from patmmccann May 26, 2021 10:39
modules/adbookpspBidAdapter.js Show resolved Hide resolved
modules/adbookpspBidAdapter.js Show resolved Hide resolved
@wgalecki wgalecki requested a review from msm0504 May 27, 2021 04:42
@msm0504
Copy link
Contributor

msm0504 commented Jun 4, 2021

@patmmccann Are there any changes that you're still waiting on or can this be approved?

@patmmccann patmmccann merged commit 0ca2a83 into prebid:master Jun 10, 2021
prebidtappx pushed a commit to prebidtappx/Prebid.js that referenced this pull request Nov 15, 2021
* Added adbookpspBidAdapter

* Fixed video parameter placement in readme

* Simplified video parameters handling

* Improved video dimensions handling

* Updated readme with note about custom GAM setup
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.

4 participants