text: pbjsChunk([81],{74:function(e,t,r){r(75),e.exports=r(76)},75:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spec=void 0;var a=(function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}})(r(0)),i=r(1),n=r(4);var d=t.spec={code:"adgeneration",aliases:["adg"],supportedMediaTypes:[n.BANNER,n.NATIVE],isBidRequestValid:function(e){return!!e.params.id},buildRequests:function(e){for(var t=[],r=0,i=e.length;r<i;r++){var n=e[r],d=n.params.debug?"http://api-test.scaleout.jp/adsv/v1":"https://d.socdm.com/adsv/v1",s="";s=a.tryAppendQueryString(s,"posall","SSPLOC");var u=a.getBidIdParameter("id",n.params);s=a.tryAppendQueryString(s,"id",u),s=a.tryAppendQueryString(s,"sdktype","0"),s=a.tryAppendQueryString(s,"hb","true"),s=a.tryAppendQueryString(s,"t","json3"),s=a.tryAppendQueryString(s,"transactionid",n.transactionId),n.mediaTypes&&n.mediaTypes.native||(s=a.tryAppendQueryString(s,"imark","1")),s.lastIndexOf("&")===s.length-1&&(s=s.substring(0,s.length-1)),t.push({method:"GET",url:d,data:s,bidRequest:e[r]})}return t},interpretResponse:function(e,t){var r=e.body,i=[],d={};if(r.results&&r.results.length>0){var c={requestId:(d=t.bidRequest).bidId,cpm:r.cpm||0,width:d.sizes[0][0],height:d.sizes[0][1],creativeId:r.creativeid||"",dealId:r.dealid||"",currency:"JPY",netRevenue:!0,ttl:r.ttl||10,referrer:a.getTopWindowUrl()};d.mediaTypes&&d.mediaTypes.native?(c.native=(function(e){var t={};if(e.native_ad&&e.native_ad.assets.length>0){for(var r=e.native_ad.assets,a=0,i=r.length;a<i;a++)switch(r[a].id){case 1:t.title=r[a].title.text;break;case 2:t.image={url:r[a].img.url,height:r[a].img.h,width:r[a].img.w};break;case 3:t.icon={url:r[a].img.url,height:r[a].img.h,width:r[a].img.w};break;case 4:t.sponsoredBy=r[a].data.value;break;case 5:t.body=r[a].data.value;break;case 6:t.cta=r[a].data.value}t.clickUrl=e.native_ad.link.url,t.clickTrackers=e.native_ad.link.clicktrackers||[],t.impressionTrackers=e.native_ad.imptrackers||[]}return t})(r),c.mediaType=n.NATIVE):c.ad=(function(e,t){var r=e.ad;e.vastxml&&e.vastxml.length>0&&(r='<div id="apvad-'+t.bidId+'"></div>'+s(r,((c=document.createElement("script")).type="text/javascript",c.id="apv",c.src="https://cdn.apvdr.com/js/VideoAd.min.js",c.outerHTML+(a=t.bidId,i=e.vastxml,n={s:a},(d=document.createElement("script")).type="text/javascript",d.innerHTML="(function(){ new APV.VideoAd("+JSON.stringify(n)+").load('"+i.replace(/\r?\n/g,"")+"'); })();",d.outerHTML))));var a,i,n,d;var c;return u(r=s(r,e.beacon))?u(r):r})(r,d),i.push(c)}return i},getUserSyncs:function(e,t){return[]}};function s(e,t){return e.replace(/<\/\s?body>/,t+"</body>")}function u(e){var t=e.indexOf("<body>"),r=e.lastIndexOf("</body>");return-1!==t&&-1!==r&&e.substr(t,r).replace("<body>","").replace("</body>","")}(0,i.registerBidder)(d)},76:function(e,t){}},[74]);