30) {
clearInterval(set_interval_id);
overlayBids();
console.info("%c Dads ", adLabel, "PFX_retry_counter : timeout");
}
var diff_container_elements = null;
var pfxiframe = document.getElementsByClassName("profitx-ad-frame-markup pfx-renderer-observed")[0];
if (pfxiframe) {
if (pfxiframe.contentWindow.document) {
diff_container_elements = pfxiframe.contentWindow.document.getElementById('pfx_interstitial_close');
}
}
if (diff_container_elements != null) {
clearInterval(set_interval_id);
diff_container_elements.addEventListener('mouseup', function() {
overlayBids();
});
console.info("%c Dads ", adLabel, "PFX_retry_counter : stopped");
}
}
}
function interstitialGeniee() {
console.info("%c Dads ", adLabel, " interstitial : Geniee");
gnsinstlib.interstitialRendered();
var set_interval_id = setInterval(findTargetElement, 200);
var retry_counter = 0;
function findTargetElement() {
console.info("%c Dads ", adLabel, " Geniee_retry_counter : ", retry_counter);
retry_counter++;
// �v�f��MAX���g���C�l�ɂȂ��Ă�������Ȃ��ꍇ�A�C���^�[�o�����폜
if (retry_counter > 30) {
clearInterval(set_interval_id);
overlayBids();
console.info("%c Dads ", adLabel, " Geniee_retry_counter : timeout");
}
var diff_container_elements = null;
var genieeiframe = document.getElementById('iframeContent');
if (genieeiframe) {
if (genieeiframe.contentWindow.document.getElementById('gn_ydn_interstitial_btn')) {
diff_container_elements = genieeiframe.contentWindow.document.getElementById('gn_ydn_interstitial_btn');
}
}
if (diff_container_elements != null) {
clearInterval(set_interval_id);
diff_container_elements.addEventListener('mouseup', function() {
overlayBids();
});
console.info("%c Dads ", adLabel, " Geniee_retry_counter : stopped");
}
}
}
function interstitialIMP() {
console.info("%c Dads ", adLabel, "interstitial : IMP");
var impDiv = document.createElement('div');
impDiv.id = "im-6b447825c5534f85bfa19990300ddb8c";
var impScript1 = document.createElement("script");
impScript1.async = true;
impScript1.src = "//imp-adedge.i-mobile.co.jp/script/v1/spot.js?20220104";
var impScript2 = document.createElement("script");
impScript2.innerHTML = '(window.adsbyimobile=window.adsbyimobile||[]).push({pid:11122,mid:569228,asid:1889232,type:"banner",display:"interstitial",elementid:"im-6b447825c5534f85bfa19990300ddb8c"})';
impDiv.appendChild(impScript1);
impDiv.appendChild(impScript2);
var body = document.getElementsByTagName("body")[0];
body.appendChild(impDiv);
var set_interval_id = setInterval(findTargetElement, 200);
var retry_counter = 0;
function findTargetElement() {
console.info("%c Dads ", adLabel, "IMP_retry_counter : ", retry_counter);
retry_counter++;
//�v�f��MAX���g���C�l�ɂȂ��Ă�������Ȃ��ꍇ�A�C���^�[�o�����폜
if (retry_counter > 30) {
clearInterval(set_interval_id);
overlayBids();
console.info("%c Dads ", adLabel, "IMP_retry_counter : timeout");
}
var diff_container_elements = null;
var impDiv = document.getElementById("im-6b447825c5534f85bfa19990300ddb8c");
if (impDiv) {
if (impDiv.getElementsByTagName("iframe")[0]) {
if (impDiv.getElementsByTagName("iframe")[0].contentWindow.document) {
diff_container_elements = impDiv.getElementsByTagName("iframe")[0].contentWindow.document.getElementById('close_b');
}
}
}
if (diff_container_elements != null) {
clearInterval(set_interval_id);
diff_container_elements.addEventListener("mouseup", function() {
overlayBids();
});
console.info("%c Dads ", adLabel, "IMP_retry_counter : stopped");
}
}
}
function interstitialRise() {
console.info("%c Dads ",adLabel, " interstitial : RISE");
var riseDiv = document.createElement('div');
riseDiv.id = "ads-ADU-G0TT3TFS";
var body = document.getElementsByTagName("body")[0];
body.appendChild(riseDiv);
(function(w,d,s,i){w.adunitlength?w.adunitlength.push('ADU-G0TT3TFS'):w.adunitlength=['ADU-G0TT3TFS'];var f=d.getElementsByTagName(s)[0],j=d.createElement(s);j.async=true;j.src='https://rise.enhance.co.jp/adu.js?id='+i + '&matwName=matw_uuid' + '&clientTime=' + (new Date()).getTime();f.parentNode.insertBefore(j,f);})(window,document,'script','ADU-G0TT3TFS');
var set_interval_id = setInterval(findTargetElement, 200);
var retry_counter = 0;
function findTargetElement() {
console.info("%c Dads ",adLabel, " RISE_retry_counter : ",retry_counter);
retry_counter++;
// �v�f��MAX���g���C�l�ɂȂ��Ă�������Ȃ��ꍇ�A�C���^�[�o�����폜
if(retry_counter > 30) {
clearInterval(set_interval_id);
overlayBids();
console.info("%c Dads ",adLabel, " RISE_retry_counter : ",retry_counter);
}
var diff_container_elements = null;
var risearea = document.getElementById('rise-interstitial-area');
if (risearea) {
var riseiframe = risearea.getElementsByTagName('iframe')[0];
if (riseiframe) {
if (riseiframe.contentWindow.document.getElementById('rise-close-text-base')) {
diff_container_elements = riseiframe.contentWindow.document.getElementById('rise-close-text-base');
}
}
}
if(diff_container_elements!= null) {
clearInterval(set_interval_id);
diff_container_elements.addEventListener('mouseup', function() {
overlayBids();
});
console.info("%c Dads ",adLabel, " RISE_retry_counter : stopped");
}
}
}
function overlayBids() {
var overlayAdSlots = [];
var overlayBiddingSlots = [];
googletag.cmd.push(function() {
overlayAdSlots[0] = googletag.defineSlot('/21662775423/dspc/special/p1wipe', [1, 1], 'dspc-overlay').addService(googletag.pubads());
overlayBiddingSlots.push(overlayAdSlots[0]);
googletag.pubads().refresh(overlayBiddingSlots);
});
console.info("%c Dads ", adLabel, " overlayAdsOn");
}