-
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
added ccxAdapter #2575
added ccxAdapter #2575
Conversation
This pull request introduces 1 alert when merging 4d9452c into ce367d1 - view on lgtm.com new alerts:
Comment posted by lgtm.com |
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.
Hi @korys Thanks for submitting this new adapter.
I looked over the code and it largely seems good. There were two areas that should be reviewed and they're related to the same topic (see below for the in-line comments).
In addition, I was trying to test the adapter for delivery but I wasn't getting a response from the server. The POST request for both banner and video completed as a 204. I provided a copy of the request objects as they were executed for reference.
Could you take a look? We'd like to ensure a valid bid is returning/rendering for new adapters.
Banner request that was executed during testing:
{"imp":[{"id":"23150d2ee7b8d6","secure":1,"banner":{"format":[{"w":300,"h":250},{"w":300,"h":600}]},"ext":{"pid":3286844}}],"site":{"page":"http://ap.localhost:9999/integrationExamples/gpt/hello_world.html"},"device":{"w":1680,"y":1050,"ua":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36"},"id":"641cab37-d175-418a-942c-71ae64a84193","ext":{"ce":1}}
Video request executed during testing:
{"imp":[{"id":"254b2bd70ef68","secure":1,"video":{"w":1920,"h":1080,"protocols":[2,3,5,6],"mimes":["video/mp4","video/x-flv"],"playbackmethod":[1,2,3,4],"skip":0},"ext":{"pid":3287742}}],"site":{"page":"http://ap.localhost:9999/integrationExamples/gpt/video-instream-test.html"},"device":{"w":1680,"y":1050,"ua":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36"},"id":"4635eaf6-a1c6-433d-8997-5821209bd812","ext":{"ce":1}}
if (placement.video.skip === 1 && utils.deepAccess(bid, 'params.video.skipafter')) { | ||
placement.video.skipafter = utils.deepAccess(bid, 'params.video.skipafter') | ||
} | ||
} |
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.
Something to consider, some publishers may not have updated to use mediaTypes
in their adUnits
code to define sizes and are still using the old adUnits.sizes
variable. May wish to add a back-up check to look for this variable as well to help handle those scenarios.
utils.logWarn('Bid sizes are invalid.') | ||
} | ||
return isValid | ||
} else { |
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.
Another place to consider using adUnits.sizes
as a backup.
Hi @jsnellbaker, |
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.
@korys Thanks for making the fix on the back-end. I retested both banner and video and everything seemed to be working.
* added ccxAdapter * add ccxAdapter - lint formatting fixes
* added ccxAdapter * add ccxAdapter - lint formatting fixes
Type of change
Description of change
Be sure to test the integration with your adserver using the Hello World sample page.
For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:
Other information