text: pbjsChunk([119],{86:function(e,a,r){e.exports=r(87)},87:function(e,a,r){"use strict";var o=r(0),t=r(3),s=r(2),l=r(5),m=r(0),n=r(4),i=function(){return pbjs.admediaHandler=function(e){var a={},r=e.callback_id,i="",d=(0,o.getBidRequest)(r);d&&(i=d.placementCode),d&&0<e.cpm&&e.ad?((a=t.createBid(n.STATUS.GOOD)).bidderCode=d.bidder,a.cpm=parseFloat(e.cpm),a.ad=e.ad,a.width=e.width,a.height=e.height):((a=t.createBid(n.STATUS.NO_BID)).bidderCode=d.bidder,m.logMessage("No prebid response from Admedia for placement code "+i)),s.addBidResponse(i,a)},{callBids:function(e){var a,r=window.location.protocol+"//b.admedia.com/banner/prebid/bidder/?";a=e.bids||[];for(var i=0;i<a.length;i++){var d={},o=a[i];if(o.params.aid){d.aid=o.params.aid,o.params.page_url&&(d.page_url=o.params.page_url),1===o.params.test_ad&&(d.test_ad=1);var t=m.parseSizesInput(o.sizes),s=t.length;if(0<s&&(d.size=t[0],1<s)){for(var n=[],p=1;p<s;p++)n.push(t[p]);d.promo_sizes=n.join(",")}d.siteDomain=window.location.host,d.sitePage=window.location.href,d.siteRef=document.referrer,d.topUrl=m.getTopWindowUrl(),d.callback="pbjs",d.callbackId=o.bidId;var c=r+m.parseQueryStringParameters(d);l.loadScript(c)}else m.logError("required param aid is missing","admedia")}}}};r(1).registerBidAdapter(new i,"admedia"),e.exports=i}},[86]);