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

Adgeneration: Update request to include device and app related info in headers and query params #2109

Merged

Conversation

banakemi
Copy link
Contributor

Type of change

  • Other

Description of change

Adding ad request parameters.

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

@mansinahar mansinahar changed the title Feature/update adgeneration1.0.3 Adgeneration: Update request to include device and app related info in headers and query params Dec 13, 2021
@mansinahar
Copy link
Contributor

mansinahar commented Dec 13, 2021

@banakemi Can you please fix the tests for this PR and also add JSON tests for the changes made in this PR? Thanks!

@banakemi
Copy link
Contributor Author

Hi @mansinahar
Thanks for the review. Fixed it.

@mansinahar mansinahar requested review from mansinahar and removed request for bsardo December 17, 2021 15:29
@mansinahar mansinahar assigned mansinahar and unassigned bsardo Dec 17, 2021
if request.Device != nil {
if len(request.Device.UA) > 0 {
headers.Add("User-Agent", request.Device.UA)
}
Copy link
Contributor

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?

Copy link
Contributor Author

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")
}
Copy link
Contributor

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)
Copy link
Contributor

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!

Copy link
Contributor Author

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.

Copy link
Contributor

@AlexBVolcy AlexBVolcy left a 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!

@mansinahar mansinahar merged commit 9524fdb into prebid:master Jan 6, 2022
wwwyyy pushed a commit to wwwyyy/prebid-server that referenced this pull request Jan 18, 2022
* '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)
ramyferjaniadot pushed a commit to adotmob/prebid-server that referenced this pull request Feb 2, 2022
jorgeluisrocha pushed a commit to jwplayer/prebid-server that referenced this pull request Sep 28, 2022
shunj-nb pushed a commit to ParticleMedia/prebid-server that referenced this pull request Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants