-
Notifications
You must be signed in to change notification settings - Fork 760
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
Adgeneration: Update request to include device and app related info in headers and query params #2109
Adgeneration: Update request to include device and app related info in headers and query params #2109
Conversation
fix: fix sizes query.
…est-params FIX: makeBidRequestの不備
# Conflicts: # adapters/adgeneration/adgeneration.go
…dgeneration1.0.3_inhouse adding request parameter
@banakemi Can you please fix the tests for this PR and also add JSON tests for the changes made in this PR? Thanks! |
…dgeneration1.0.3_inhouse update test
Hi @mansinahar |
if request.Device != nil { | ||
if len(request.Device.UA) > 0 { | ||
headers.Add("User-Agent", request.Device.UA) | ||
} |
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.
@banakemi Can you please also add/modify existing JSON tests for the changes you've made in this file?
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.
@mansinahar
Thank you. I fixed it.
v.Set("sdktype", "2") | ||
} else { | ||
v.Set("sdktype", "0") | ||
} |
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.
Just want to reiterate the need for json tests for these new conditionals!
v.Set("sdktype", "2") | ||
} else { | ||
v.Set("sdktype", "0") | ||
} | ||
if request.Site != nil && request.Site.Page != "" { | ||
v.Set("tp", request.Site.Page) | ||
} | ||
if request.Source != nil && request.Source.TID != "" { | ||
v.Set("transactionid", request.Source.TID) |
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 line isn't new code, but I checked the test coverage and it isn't covering this case, so we'll need a json test for this too!
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.
@AlexBVolcy
Thank you. I fixed it.
…adgeneration1.0.3_inhouse update test
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.
Thank you for responding to feedback, the code coverage looks great!
* 'master' of https://github.com/wwwyyy/prebid-server: GDPR: pass geo based on special feature 1 opt-in (prebid#2122) Adyoulike: Fix adapter errors if no content (prebid#2134) Update adyoulike.yaml (prebid#2131) Add ORTB 2.4 schain support (prebid#2108) Stored response fetcher (with new func for stored resp) (prebid#2099) Adot: Add OpenRTB macros resolution (prebid#2118) Rubicon adapter: accept accountId, siteId, zoneId as strings (prebid#2110) Operaads: support multiformat request (prebid#2121) Update go-gdpr to v1.11.0 (prebid#2125) Adgeneration: Update request to include device and app related info in headers and query params (prebid#2109) Adnuntius: Read device information from ortb Request (prebid#2112) New Adapter: apacdex and Remove Adapter: valueimpression (prebid#2097) New Adapter: Compass (prebid#2102) Orbidder: bidfloor currency handling (prebid#2093)
…n headers and query params (prebid#2109)
…n headers and query params (prebid#2109)
…n headers and query params (prebid#2109)
Type of change
Description of change
Adding ad request parameters.