-
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 AdgenerationBidAdapter #2034
Conversation
modules/adgenerationBidAdapter.js
Outdated
let serverRequests = []; | ||
for (let i = 0, len = validBidRequests.length; i < len; i++) { | ||
const validReq = validBidRequests[i]; | ||
const url = validReq.params.debug ? 'http://api-test.scaleout.jp/adsv/v1' : 'https://d.socdm.com/adsv/v1'; |
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.
prefer these strings to be constants.
modules/adgenerationBidAdapter.js
Outdated
export const spec = { | ||
code: ADG_BIDDER_CODE, | ||
aliases: ['adg'], // short code | ||
supportedMediaTypes: [NATIVE], |
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.
If you are supporting more than native, I.E. banner
, you need to set it explicitly here.
let script = document.createElement(`script`); | ||
script.type = 'text/javascript'; | ||
script.innerHTML = `(function(){ new APV.VideoAd(${JSON.stringify(apvVideoAdParam)}).load('${vastXml.replace(/\r?\n/g, '')}'); })();`; | ||
return script.outerHTML; |
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 explain what this is doing/why it's needed?
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.
VAST data, in our sever responses , is converted by CSS Sprites etc.
@adg-dev |
Hi, @mkendall07 |
@banakemi |
@mkendall07 |
I mean from your bidder params:
The adunit will have these defined already |
Type of change
Description of change
Adding Adgeneraton bid adapter for Prebid 1.0.