-
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
Add New Adapter dgadsBidAdapter #2429
Conversation
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.
Hello @r-sato thanks for submitting this new adapter.
Overall the code looks to be good, except for a few things. See the areas below for the code-specific feedback.
In terms of the testing, I was having some trouble getting the test banner unit to render on the hello_world.html
page. The bidResponse seemed fine but the rendering just didn't happen. Was this working for you on the hello_world
page?
Please let me know when you get the chance.
modules/dgadsBidAdapter.md
Outdated
mediaTypes: 'banner', | ||
params: { | ||
location_id: '1', | ||
site_id: '1'; |
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.
Can you remove this semi-colon?
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. We corresponded.
bidResponse.netRevenue = true; | ||
bidResponse.ttl = ad.ttl; | ||
bidResponse.referrer = utils.getTopWindowUrl(); | ||
if (ad.isNative == 1) { |
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.
Somewhere in here I would recommend to set the bid's mediaType to native
.
When I was testing the native ad with the .md file's test params, the bid's mediaType
was set to the default banner
.
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. We corresponded.
Hi @jsnellbaker, Thank you for the review. And regarding hello_world.html, |
Hi @r-sato, thanks for making the changes. I retested and found the banner creative was showing successfully. However the native test ad wasn't rendering. When I was looking at the browser console to debug the issue, I realized that the The following page gives an outline of what the native creative code looks like: http://prebid.org/adops/setting-up-prebid-native-in-dfp.html Can you take a look over this page? |
Hi @jsnellbaker, thank you for the check. Our native ad unit is rendered successfully. This is our test html for native. Please let me know if anything differs. |
@r-sato Thanks for making the updates and providing the sample test page. Everything looks good now. |
* Add dgads adapter * Add dgads adapter * Add spec file for dgads * Add spec file for dgads * Add dgads bid adapter * Add dgads bid adapter * fix * fix * fix email * remove semi-colon * Add mediaType native * Add import medaTypes
Type of change
Description of change