-
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 native support for Criteo adapter #999
Conversation
2a1c1be
to
0413360
Compare
Hello guys, could we have an update on this PR please ? |
@Swiiip |
@mkendall07 Yes I do work for Criteo |
@Swiiip aka Hugo h.duthil@criteo.com is indeed working for Criteo. 😄 |
Ok thanks for the info guys. @matthewlane can you review? |
@Swiiip |
@Swiiip |
An example of native callback:
|
hi @mkendall07 any updates on this ? |
src/adapters/criteo.js
Outdated
// this code is executed in an iframe, we need to get a reference to the | ||
// publishertag in the main window to retrieve native responses and callbacks. | ||
// it doesn't work with safeframes | ||
bidObject.ad = "<script type=\"text/javascript\">"; |
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.
please use string literals for constructing the templates. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
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.
done 👍
0413360
to
27538d7
Compare
I updated the PR, we will provide updated documentation for the adapter once validated internally. |
That's great news @Swiiip 😍 We currently read the code to figure out how to configure prebid, which is kinda awkward ;) |
bidManager, 'addBidResponse', | ||
function (adUnitCode, bid) { | ||
let expectedAdProperty = `<script type=\"text/javascript\"> | ||
let win = window; |
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.
might consider indenting these lines.
@Swiiip it looks like the build is failing due to linting errors. Can you rebase 1 more time please and run |
27538d7
to
009afc9
Compare
All set :) |
…built * 'master' of https://github.com/prebid/Prebid.js: (95 commits) Specify --browsers when using gulp test --watch (prebid#1420) Added aliases for aol adapter. (prebid#1371) Added MobFox Adapter (prebid#1312) Fixed style error. (prebid#1419) Add native support for Criteo adapter (prebid#999) Update admediaBidAdapter.js (prebid#1395) Increment pre version (prebid#1413) Prebid 0.26.1 Release (prebid#1412) fix prebid#1410 - issue with ie and xhr.timeout (prebid#1411) Lint modules directory (prebid#1404) Set outstream mediaType based on renderer in response (prebid#1391) Fixing the BidAdjustmentEvent fire time (prebid#1399) Fix banner showing up in prebid-core.js (prebid#1388) Mention NodeJS 4.0 dependency in the README (prebid#1386) Increment pre version (prebid#1385) Prebid 0.26.0 Release (prebid#1384) PulsePoint Lite adapter - adding createNew method for aliasing. (prebid#1383) Modernizing build dependencies (prebid#1355) StickyAdsTV bidder adapter update (prebid#1311) Added CPM value as parameter for Vertoz Adapter (prebid#1306) ...
Type of change
Description of change
This feature provides a new parameter for the Criteo adapter:
New parameter: nativeCallback
Type: javascript function
Parameter: criteo native json response
This callback is called on the returned json for native zones.