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 genieeiframe = document.getElementById('iframeContent');
if (genieeiframe) {
if (genieeiframe.contentWindow.document.getElementById('gn_ydn_interstitial_btn')) {
var genieeiframeDocument = genieeiframe.contentWindow.document.getElementById('gn_ydn_interstitial_btn');
} else {
var genieeiframeDocument = null;
}
} else {
var genieeiframeDocument = null;
}
if (genieeiframeDocument != null) {
clearInterval(set_interval_id);
genieeiframeDocument.addEventListener('mouseup', function() {
overlayBids();
});
console.info("%c Dads ", adLabel, " Geniee_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 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')) {
var riseiframeDocument = riseiframe.contentWindow.document.getElementById('rise-close-text-base');
} else {
var riseiframeDocument = null;
}
} else {
var riseiframeDocument = null;
}
} else {
var riseiframeDocument = null;
}
if(riseiframeDocument!= null) {
clearInterval(set_interval_id);
riseiframeDocument.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");
}