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

GUMGUM Bid Adapter: Add GPID for TTD #6841

Merged
merged 3 commits into from
Jun 4, 2021
Merged

Conversation

estavillo
Copy link
Contributor

Type of change

  • Feature

Description of change

Add gpid from bid request

  • official adapter submission

@estavillo
Copy link
Contributor Author

estavillo commented May 26, 2021

Not sure why those unit tests are failing, I did not edit ParrableId's code. :(
Any insights on what could be wrong?

@ChrisHuie
Copy link
Collaborator

@estavillo Kicked off the tests again. There are a few flaky tests we are currently trying to unwind

@ChrisHuie ChrisHuie changed the title [GUMGUM] Add GPID for TTD GUMGUM Bid Adapter: Add GPID for TTD May 26, 2021
@ChrisHuie
Copy link
Collaborator

@estavillo can you please add some unit test coverage for this pr please too

@ChrisHuie ChrisHuie self-requested a review May 26, 2021 22:38
@ChrisHuie ChrisHuie self-assigned this May 26, 2021
@lbenmore
Copy link
Contributor

lbenmore commented Jun 3, 2021

@ChrisHuie a unit test was added in; plz let us know if this is sufficient to proceed

@ChrisHuie
Copy link
Collaborator

Looks good to me

@ChrisHuie ChrisHuie merged commit 10a2760 into prebid:master Jun 4, 2021
const req = { ...bidRequests[0], ortb2Imp: { ext: { data: { adserver: { name: 'test', adslot: 123456 } } } } }
const bidRequest = spec.buildRequests([req])[0];
expect(bidRequest).to.have.property('gpid');
expect(bidRequest.gpid).to.equal(123456);
Copy link
Collaborator

Choose a reason for hiding this comment

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

this will always be a string

@@ -318,6 +325,7 @@ function buildRequests (validBidRequests, bidderRequest) {
sizes,
url: BID_ENDPOINT,
method: 'GET',
gpid: gpid,
Copy link
Collaborator

Choose a reason for hiding this comment

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

unless you put something in data., as you have data.pi above, or data.fp, it doesn't appear to flow through to your endpoint

prebidtappx pushed a commit to prebidtappx/Prebid.js that referenced this pull request Nov 15, 2021
* add gpid

* add jira reference

* add unit test

Co-authored-by: Estavillo <fernando@gumgum.com>
Co-authored-by: Lisa Benmore <lisa@gumgum.com>
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