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

using bid.ext.bidType for mediaType #460

Merged
merged 5 commits into from
May 14, 2021

Conversation

pm-shashank-jain
Copy link
Collaborator

No description provided.

admStr = JSON.parse(adm.replace(/\\/g, ''));
if (admStr && admStr.native) {
newBid.mediaType = NATIVE;
var adm = bid.adm;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a log for falling back

} else if (videoRegex.test(adm)) {
newBid.mediaType = VIDEO;
function _checkMediaType(bid, newBid) {
if (bid.ext && bid.ext.bidType && Object.keys(MEDIATYPE).indexOf(bid.ext.bidType.toString())) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Shashank,

As discussed in code review, pls check if we need to add check for Object.keys(MEDIATYPE).indexOf(bid.ext.bidType.toString()) > -1

Thanks,
Prakhar Jain

@pm-shashank-jain pm-shashank-jain merged commit 9fd728d into nightly_upgrade May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants