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

AMX Bid Adapter: video bugfix to set mediaType on bid instead of meta object #6435

Merged
1 commit merged into from
Mar 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/amxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const BIDDER_CODE = 'amx';
const storage = getStorageManager(737, BIDDER_CODE);
const SIMPLE_TLD_TEST = /\.com?\.\w{2,4}$/;
const DEFAULT_ENDPOINT = 'https://prebid.a-mo.net/a/c';
const VERSION = 'pba1.2.1';
const VERSION = 'pba1.3.1';
const VAST_RXP = /^\s*<\??(?:vast|xml)/i;
const TRACKING_ENDPOINT = 'https://1x1.a-mo.net/hbx/';
const AMUID_KEY = '__amuidpb';
Expand Down Expand Up @@ -334,6 +334,7 @@ export const spec = {
advertiserDomains: bid.adomain,
mediaType,
},
mediaType,
ttl: typeof bid.exp === 'number' ? bid.exp : defaultExpiration,
});
})).filter((possibleBid) => possibleBid != null);
Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/amxBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ describe('AmxBidAdapter', () => {
...baseBidResponse.meta,
mediaType: BANNER,
},
mediaType: BANNER,
width: 300,
height: 600, // from the bid itself
ttl: 90,
Expand All @@ -458,6 +459,7 @@ describe('AmxBidAdapter', () => {
...baseBidResponse.meta,
mediaType: VIDEO,
},
mediaType: VIDEO,
vastXml: sampleVideoAd(''),
width: 300,
height: 250,
Expand Down