-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
Not sure why those unit tests are failing, I did not edit ParrableId's code. :( |
@estavillo Kicked off the tests again. There are a few flaky tests we are currently trying to unwind |
@estavillo can you please add some unit test coverage for this pr please too |
@ChrisHuie a unit test was added in; plz let us know if this is sufficient to proceed |
Looks good to me |
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); |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
Type of change
Description of change
Add gpid from bid request