
{ pbjs.addAdUnits(this.ADUNITDISPLAY); pbjs.addAdUnits(this.ADUNITVIDEO); pbjs.setConfig({ priceGranularity: this.PRICE, enableSendAllBids: true, cache: { url: ‘https://prebid.adnxs.com/pbc/v1/cache’ }, // bidderTimeout: 2000, }); pbjs.requestBids({ bidsBackHandler: this.initAdserver, timeout: this.PREBID_TIMEOUT, }); }); } initAdserver() { if (pbjs.initAdserverSet) return; pbjs.initAdserverSet = true; // Get all of the adUnit codes for the display adUnits var displayAdUnitCodes = []; adUnitsDisplay.forEach(function (adUnit) { displayAdUnitCodes.push(adUnit.code); //console.log(adUnit.code); }); googletag.cmd.push(function () { pbjs.que.push(function () { pbjs.setTargetingForGPTAsync(displayAdUnitCodes); googletag.pubads().refresh([window.GAMLibrary.showcase]); googletag.pubads().refresh([window.GAMLibrary.halfpage1]); googletag.pubads().refresh([window.GAMLibrary.halfpage2]); googletag.pubads().refresh([window.GAMLibrary.leaderboard]); }); }); } } /** START – PREBID INITIATE CLASS */ /** START – PREBID INIT, CONFIGURATION & GOOGLE INIT */ const priceGranularityConfig = { buckets: [{ precision: 2, min: 0.02, max: 2.99, increment: 0.01 }, { precision: 2, min: 3, max: 10, increment: 0.1 },], }; var gptadslots = []; var googletag = googletag || {}; var pbjs = pbjs || {}; var adUnitsDisplay = [{ code: “div-gpt-ad-bolacom-sc”, mediaTypes: { banner: { sizes: [ [300, 250], [250, 250], [200, 200], ], }, }, bids: [{ bidder: “teads”, params: { pageId: 151738, placementId: 167845 } }, { bidder: ‘rubicon’, params: { accountId: 12534, siteId: 373786, zoneId: 2046352 } }, { bidder: ‘pubmatic’, params: { publisherId: ‘156536’, adSlot: ‘Prebid-Bolacom-Mobile-300x250_1’ } }, { bidder: ‘unruly’, params: { siteId: 243584 } }, { bidder: ‘medianet’, params: { cid: ‘8CUWX4UX4’, crid: ‘576550861’ } }, { bidder: ‘smartadserver’, params: { domain: ‘https://prg-apac.smartadserver.com’, networkId: 4221, siteId: 498329, pageId: 1556521, formatId: 111310 } }, { bidder: “openx”, params: { delDomain: “emtek-d.openx.net”, unit: “556894062” } }, { bidder: ‘jixie’, params: { unit: ‘1000214-N4GvgJ6ajv’, accountid: ‘Bo214CWsuO’ } }, { bidder: ‘ix’, params: { siteId: ‘802769’ } }, { bidder: “oftmedia”, params: { placementId: “27497194” } }, { bidder: “yahoossp”, params: { dcn: ‘8a96992f018383b1c311c65fad13024b’, pos: ‘8a9695bc018383b1c995c65ff3060251’ } }, { bidder: “taboola”, params: { tagId: ‘showcase_readpage_1’, publisherId: ‘1501400’, } },], }, { code: “div-gpt-ad-bolacom-halfpage1”, mediaTypes: { banner: { sizes: [ [300, 250], [300, 600], [160, 600], ], }, }, bids: [{ bidder: “teads”, params: { pageId: 151738, placementId: 167845 } }, { bidder: “innity”, params: { zone: 98060, pub: 539 } }, { bidder: ‘rubicon’, params: { accountId: 12534, siteId: 373786, zoneId: 2046352 } }, { bidder: ‘pubmatic’, params: { publisherId: ‘156536’, adSlot: ‘Prebid-Bolacom-Mobile-300×600’ } }, { bidder: ‘unruly’, params: { siteId: 243584 } }, { bidder: ‘medianet’, params: { cid: ‘8CUWX4UX4’, crid: ‘123558562’ } }, { bidder: ‘smartadserver’, params: { domain: ‘https://prg-apac.smartadserver.com’, networkId: 4221, siteId: 498329, pageId: 1556521, formatId: 111311 } }, { bidder: “openx”, params: { delDomain: “emtek-d.openx.net”, unit: “556894056” } }, { bidder: ‘jixie’, params: { unit: ‘1000214-wJqWTkVMJH’, accountid: ‘Bo214CWsuO’ } }, { bidder: ‘ix’, params: { siteId: ‘802770’ } }, { bidder: “oftmedia”, params: { placementId: “27497195” } }, { bidder: “yahoossp”, params: { dcn: ‘8a96992f018383b1c311c65fad13024b’, pos: ‘8a96992f018383b1c311c6602980024d’ } }, { bidder: “taboola”, params: { tagId: ‘halfpage_readpage_1’, publisherId: ‘1501400’, } }, { bidder: “triplelift”, params: { inventoryCode: ‘Bola-com_300x600_Prebid’ } },], }, { code: “div-gpt-ad-bolacom-halfpage2”, mediaTypes: { banner: { sizes: [ [300, 250], [300, 600], [160, 600], ], }, }, bids: [{ bidder: “teads”, params: { pageId: 151738, placementId: 167845 } }, { bidder: “innity”, params: { zone: 98060, pub: 539 } }, { bidder: ‘rubicon’, params: { accountId: 12534, siteId: 373786, zoneId: 2046352 } }, { bidder: ‘pubmatic’, params: { publisherId: ‘156536’, adSlot: ‘Prebid-Bolacom-Mobile-300×600’ } }, { bidder: ‘unruly’, params: { siteId: 243584 } }, { bidder: ‘medianet’, params: { cid: ‘8CUWX4UX4’, crid: ‘123558562’ } }, { bidder: ‘smartadserver’, params: { domain: ‘https://prg-apac.smartadserver.com’, networkId: 4221, siteId: 498329, pageId: 1556521, formatId: 111311 } }, { bidder: “openx”, params: { delDomain: “emtek-d.openx.net”, unit: “556894056” } }, { bidder: ‘jixie’, params: { unit: ‘1000214-iAZqCTKnIA’, accountid: ‘Bo214CWsuO’ } }, { bidder: ‘ix’, params: { siteId: ‘802771’ } }, { bidder: “oftmedia”, params: { placementId: “27497196” } }, { bidder: “yahoossp”, params: { dcn: ‘8a96992f018383b1c311c65fad13024b’, pos: ‘8a96992f018383b1c311c6602980024d’ } }, { bidder: “taboola”, params: { tagId: ‘halfpage_readpage_2’, publisherId: ‘1501400’, } }, { bidder: “triplelift”, params: { inventoryCode: ‘Bola-com_300x600_Prebid’ } },], }, { code: “div-gpt-ad-bolacom-lb”, mediaTypes: { banner: { sizes: [ [728, 90], [970, 90], [970, 250], ], }, }, bids: [{ bidder: ‘smartadserver’, params: { domain: ‘https://prg-apac.smartadserver.com’, networkId: 4221, siteId: 498329, pageId: 1556521, formatId: 111313 } }, { bidder: ‘jixie’, params: { unit: ‘1000214-SMl7kIYI4B’, accountid: ‘Bo214CWsuO’ } }, { bidder: ‘ix’, params: { siteId: ‘802768’ } }, { bidder: “teads”, params: { pageId: 151738, placementId: 167845 } }, { bidder: “oftmedia”, params: { placementId: “27497197” } }, { bidder: “yahoossp”, params: { dcn: ‘8a96992f018383b1c311c65fad13024b’, pos: ‘8a969d80018383b1b722c660ded30245’ } }, { bidder: “taboola”, params: { tagId: ‘leaderboard_readpage_1’, publisherId: ‘1501400’, } },], },]; var adUnitsVideo = [{ code: “div-gpt-ad-bolacom-sc”, mediaTypes: { video: { playerSize: [300, 250], // Not set so that the player can be repsonsive context: “outstream”, protocols: [2, 3, 7] }, }, bids: [{ bidder: “spotx”, params: { channel_id: 285432, ad_unit: “outstream”, outstream_function: spotxOutstreamFunc } }, { bidder: ‘ix’, params: { siteId: ‘802769’ } },], }, { code: “div-gpt-ad-bolacom-halfpage1”, mediaTypes: { video: { playerSize: [300, 600], // Not set so that the player can be repsonsive context: “outstream”, protocols: [2, 3, 7] }, }, bids: [{ bidder: “spotx”, params: { channel_id: 285432, ad_unit: “outstream”, outstream_function: spotxOutstreamFunc } }, { bidder: ‘ix’, params: { siteId: ‘802770’ } },], }, { code: “div-gpt-ad-bolacom-halfpage2”, mediaTypes: { video: { playerSize: [300, 600], // Not set so that the player can be repsonsive context: “outstream”, protocols: [2, 3, 7] }, }, bids: [{ bidder: “spotx”, params: { channel_id: 285432, ad_unit: “outstream”, outstream_function: spotxOutstreamFunc } }, { bidder: ‘ix’, params: { siteId: ‘802771’ } }, ], }, { code: “div-gpt-ad-bolacom-lb”, mediaTypes: { video: { playerSize: [970, 250], // Not set so that the player can be repsonsive context: “outstream”, protocols: [2, 3, 7] }, }, bids: [{ bidder: ‘ix’, params: { siteId: ‘802768’ } },], },]; pbjs.bidderSettings = { taboola: { storageAllowed: true } } pbjs.que = pbjs.que || []; googletag.cmd = googletag.cmd || []; /**START JIXIE ANALYTICS*/ pbjs.que.push(function () { window._jxbidsq = window._jxbidsq || [], pbjs.onEvent(“auctionInit”, function (n) { _jxbidsq.push([“auctionInit”, n]) }), pbjs.onEvent(“auctionEnd”, function (n) { _jxbidsq.push([“auctionEnd”, n]) }), pbjs.onEvent(“bidWon”, function (n) { _jxbidsq.push([“bidWon”, n]) }), pbjs.onEvent(“bidTimeout”, function (n) { _jxbidsq.push([“bidTimeout”, n]) }), pbjs.onEvent(“bidRequested”, function (n) { _jxbidsq.push([“bidRequested”, n]) }), pbjs.onEvent(“setTargeting”, function (n) { _jxbidsq.push([“setTargeting”, n]) }), pbjs.onEvent(“bidResponse”, function (n) { _jxbidsq.push([“bidResponse”, n]) }) }), window.googletag = window.googletag || { cmd: [] }, googletag.cmd.push(function () { window._jxbidsq = window._jxbidsq || [], googletag.pubads().addEventListener(“slotRenderEnded”, function (n) { _jxbidsq.push([“slotRenderEnded”, n]) }), googletag.pubads().addEventListener(“impressionViewable”, function (n) { _jxbidsq.push([“impressionViewable”, n]) }) }); /**END JIXIE ANALYTICS*/ /** END – PREBID INIT, CONFIGURATION & GOOGLE INIT */ /** LOAD PREBID – END */ /*PROTOTYPE CUSTOM FILTERING*/ String.prototype.klyFiltering = function (delimiter) { return this.trim().split(delimiter).map(function (t) { return t.trim().toLowerCase() }).filter(x => x != “”); }; window.GAMLibrary = {}; window.GAMLibrary = { gamImmersive: ‘/36504930/KLY/DESKTOP/BOLA.COM/IMMERSIVE’, gamTopFrame: ‘/36504930/KLY/DESKTOP/BOLA.COM/TOP_FRAME’, gamBottomFrame: ‘/36504930/KLY/DESKTOP/BOLA.COM/BOTTOM_FRAME’, gamSkinad: ‘/36504930/KLY/DESKTOP/BOLA.COM/SKINAD’, gamBillboard: ‘/36504930/KLY/DESKTOP/BOLA.COM/MASTHEAD’, gamBalloon: ‘/36504930/KLY/DESKTOP/BOLA.COM/BALLOON’, gamHeadline1: ‘/36504930/www.bola.com/dfp-headline1’, gamHeadline2: ‘/36504930/www.bola.com/dfp-headline2’, gamNewsTag1: ‘/36504930/KLY/DESKTOP/BOLA.COM/NEWS_TAG_1’, gamOrganicFeedCRM1: ‘/36504930/KLY/DESKTOP/BOLA.COM/ORGANIC_FEED_CRM_1’, gamOrganicFeedCRM2: ‘/36504930/KLY/DESKTOP/BOLA.COM/ORGANIC_FEED_CRM_2’, gamOrganicFeedCRM3: ‘/36504930/KLY/DESKTOP/BOLA.COM/ORGANIC_FEED_CRM_3’, gamShowcase: ‘/36504930/KLY/DESKTOP/BOLA.COM/SHOWCASE’, gamHalfpage1: ‘/36504930/KLY/DESKTOP/BOLA.COM/HALFPAGE_1’, gamHalfpage2: ‘/36504930/KLY/DESKTOP/BOLA.COM/HALFPAGE_2’, gamLeaderboard: ‘/36504930/KLY/DESKTOP/BOLA.COM/LEADERBOARD’, gamInterstitial: ‘/36504930/KLY/DESKTOP/BOLA.COM/INTERSTITIAL’, userAgent: navigator.userAgent.toLowerCase(), tags: ”, GAMisTablet: /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(this.userAgent), documentMeta: function (metaName) { var metaResult = ”; var metas = document.getElementsByTagName(‘meta’); if (metas) { for (var x = 0, y = metas.length; x 0) { if (matchString = new RegExp(“\b(” + subKeywordList.join(“|”) + “)\b”, “ig”).exec(siteContentText)) { bsKeyword.push(bsKey); } } } if (bsKeyword.length > 0) { googletag.pubads().setTargeting(“bsKeyword”, bsKeyword); /*Temporary preserve the previous brand safety targeting*/ googletag.pubads().setTargeting(“isMatcont”, isMatcont); googletag.pubads().setTargeting(“brandsafety”, isViolateBrandSafety); } }, onMessageReceivedGPTUpdateCreativeStyle: function () { this.onMessageReceivedGetStyle = function (e) { /** filter only correct origin and setStyle command */ if (!(e.origin.match(/safeframe.googlesyndication.com/ig)) || typeof e.data !== ‘object’ || typeof e.data.id !== ‘string’ || e.data.cmd !== ‘setStyle’ || typeof e.data.params !== ‘object’ ) { return; } /* remove # character from id, we don’t use jquery*/ var elementId = e.data.id.replace(/#/, “”); var wrapperEl = document.getElementById(elementId); if (wrapperEl === null) { return; } var elements = [wrapperEl]; /*target on KLY authorized element child ( div and iframe ) */ if (typeof e.data.query === ‘string’ && e.data.query) { let el = null; if (el = e.data.query.match(/(div|iframe)/ig)) { elements = wrapperEl.querySelectorAll(el.join(“, “)); } } /** target on KLY authorized attribute ( display, heigth, width ) */ elements.forEach(function (element) { Object.keys(e.data.params).forEach(function (param) { let allowedAttr = [‘display’, ‘height’, ‘width’]; allowedAttr.indexOf(param) > -1 ? (element.style[param] = e.data.params[param]) : ”; }); }); } if (window.addEventListener) { window.addEventListener(‘message’, this.onMessageReceivedGetStyle, false); } else { if (window.attachEvent) { window.attachEvent(‘onmessage’, this.onMessageReceivedGetStyle); } else { window.onmessage = this.onMessageReceivedGetStyle; } } } } /* DMP CATEGORY LIST */ window.widgetBLV02 = true; window.createDMPTracker = function (adsCatList, dfpTracker, macro) { window.createCDPTracker(adsCatList, macro); parent.window.open(dfpTracker, ‘_blank’); }; window.createCDPTracker = function (cat, macro) { var cName = ‘ahoy_visitor=’, cVisitorId = document.cookie.split(‘;’).find(v => { return v.match(cName); }), partnerUID = cVisitorId ? decodeURIComponent(cVisitorId).trim().replace(cName, ”) : 0, gamMacro = typeof macro === “string” ? JSON.parse(macro) : macro, defaultKey = { adunitId: “ads_adunit_id”, advertiserId: “ads_advertiser_id”, creativeId: “ads_creative_id”, lineitemId: “ads_lineitem_id”, orderId: “ads_order_id”, }; actionDetails = Object.keys(gamMacro).reduce((obj, k) => Object.assign(obj, defaultKey[k] ? { [defaultKey[k]]: gamMacro[k] } : { [k]: gamMacro[k] }), {}), cdpData = { action: actionDetails.action ? actionDetails.action : ‘ads_click’, action_category: cat, action_details: actionDetails.action ? (delete actionDetails.action, actionDetails = actionDetails) : actionDetails, visitor_id: partnerUID }; (actionDetails.action == ‘ads_click’) ? (partnerUID ? window.AhoyEvent.sendPersonalizationUserEvent(cdpData) : ”) : ”; }; googletag.cmd.push(function () { var urlPath = document.URL; GAMLibrary.brandSafetyChecker(); /* DEFINE IMMERSIVE TAG – DO NOT CHANGE THE SLOT ORDER, IMMERSIVE ALWAYS ON THE 1st POSITION – */ window.GAMLibrary.immersive = googletag.defineOutOfPageSlot(GAMLibrary.gamImmersive, ‘div-gpt-ad-bolacom-immersive-oop’).addService(googletag.pubads()); window.GAMLibrary.showcase = googletag.defineSlot(GAMLibrary.gamShowcase, [ [300, 250], [250, 250] ], ‘div-gpt-ad-bolacom-sc’).addService(googletag.pubads()); window.GAMLibrary.halfpage1 = googletag.defineSlot(GAMLibrary.gamHalfpage1, [ [300, 250], [300, 600], [160, 600] ], ‘div-gpt-ad-bolacom-halfpage1’).addService(googletag.pubads()); window.GAMLibrary.halfpage2 = googletag.defineSlot(GAMLibrary.gamHalfpage2, [ [300, 250], [300, 600], [160, 600] ], ‘div-gpt-ad-bolacom-halfpage2’).addService(googletag.pubads()); window.GAMLibrary.leaderboard = googletag.defineSlot(GAMLibrary.gamLeaderboard, [ [970, 250], [970, 90], [728, 90] ], ‘div-gpt-ad-bolacom-lb’).addService(googletag.pubads()).setTargeting(“leaderboard_type”, [‘direct’]); /*OUT OF PAGE SLOT*/ window.GAMLibrary.ballon = googletag.defineOutOfPageSlot(GAMLibrary.gamBalloon, ‘div-gpt-ad-bolacom-balloon-oop’).addService(googletag.pubads()); window.GAMLibrary.headline1 = googletag.defineOutOfPageSlot(GAMLibrary.gamHeadline1, ‘div-gpt-ad-bolacom-dfp-headline1-oop’).addService(googletag.pubads()); window.GAMLibrary.headline2 = googletag.defineOutOfPageSlot(GAMLibrary.gamHeadline2, ‘div-gpt-ad-bolacom-dfp-headline2-oop’).addService(googletag.pubads()); window.GAMLibrary.newstag1 = googletag.defineOutOfPageSlot(GAMLibrary.gamNewsTag1, ‘div-gpt-ad-bolacom-newsTag1-oop’).addService(googletag.pubads()); window.GAMLibrary.organicFeedCRM1 = googletag.defineOutOfPageSlot(GAMLibrary.gamOrganicFeedCRM1, ‘div-gpt-ad-bolacom-crm1-oop’).addService(googletag.pubads()); window.GAMLibrary.organicFeedCRM2 = googletag.defineOutOfPageSlot(GAMLibrary.gamOrganicFeedCRM2, ‘div-gpt-ad-bolacom-crm2-oop’).addService(googletag.pubads()); window.GAMLibrary.organicFeedCRM3 = googletag.defineOutOfPageSlot(GAMLibrary.gamOrganicFeedCRM3, ‘div-gpt-ad-bolacom-crm3-oop’).addService(googletag.pubads()); /* INTERSTITIAL ADS */ window.GAMLibrary.interstitial = googletag.defineOutOfPageSlot(GAMLibrary.gamInterstitial, googletag.enums.OutOfPageFormat.INTERSTITIAL); window.GAMLibrary.interstitial ? window.GAMLibrary.interstitial.addService(googletag.pubads()) : ”; /* INTERSTITIAL ADS */ googletag.pubads().addEventListener(‘slotRenderEnded’, function (event) { var dfp_slotElementId = event.slot.getSlotId().getDomId(), dfp_lb_keyTargetting = [], containerId = event.slot.getSlotElementId(), containerEl = document.getElementById(containerId); if (event.slot == window.GAMLibrary.immersive) { if (event.isEmpty) { gam_billboard = googletag.defineOutOfPageSlot(GAMLibrary.gamBillboard, ‘div-gpt-ad-bolacom-billboard-oop’).addService(googletag.pubads()); gam_topfrm = googletag.defineOutOfPageSlot(GAMLibrary.gamTopFrame, ‘div-gpt-ad-bolacom-topfrm-oop’).addService(googletag.pubads()); gam_bottomfrm = kmklabs.gtm.type !== “PhotoGallery” ? googletag.defineSlot(GAMLibrary.gamBottomFrame, [468, 60], ‘div-gpt-ad-bolacom-bottomfrm-oop’).addService(googletag.pubads()) : “”; if (!GAMLibrary.GAMisTablet) { gam_skinad = googletag.defineOutOfPageSlot(GAMLibrary.gamSkinad, ‘div-gpt-ad-bolacom-skinad-oop’).addService(googletag.pubads()); kmklabs.gtm.type !== “PhotoGallery” ? googletag.pubads().refresh([gam_billboard, gam_topfrm, gam_bottomfrm, gam_skinad]) : googletag.pubads().refresh([gam_billboard, gam_topfrm, gam_skinad]); } else { kmklabs.gtm.type !== “PhotoGallery” ? googletag.pubads().refresh([gam_billboard, gam_topfrm, gam_bottomfrm]) : googletag.pubads().refresh([gam_billboard, gam_topfrm]); } /* STICKY BOTTOM FRAME TWEAK */ document.querySelector(“#div-gpt-ad-bolacom-bottomfrm-oop”).style = “position: sticky; bottom: 0; z-index: 9999;”; } } if (containerEl !== null) { var iframeEl = containerEl.querySelectorAll(‘iframe’)[0]; /* it’s delayed by 10 milliseconds, because iframe is not yet fully rendered and limited to max to 10 seconds to wait*/ var timeoutFunction = function () { var src = “#” + containerId; /* `src` attribute is null, when iframe is FriendlyIframe, and when it’s present, then it’s SafeFrame */ if (iframeEl) { if ((iframeEl.getAttribute(‘src’) !== null)) { src = iframeEl.getAttribute(‘src’).replace(/#.*/, “”) + src; } else { var name = iframeEl.getAttribute(‘name’) + “#” + containerId; iframeEl.setAttribute(‘name’, name); } iframeEl.setAttribute(‘src’, src); } }; setTimeout(timeoutFunction, 10); } }); /* START – SEND IMPRESSION DATA TO CDP */ googletag.pubads().addEventListener(‘slotOnload’, function (event) { var dfp_slotDelivered = event.slot.getResponseInformation() ? ‘block’ : ‘none’; /* check wheter there is ads or not*/ if (dfp_slotDelivered == ‘block’) { cdpData = { action: ‘ads_impression’, action_details: { slotElementId: event.slot.getSlotElementId(), ResponseInformation: event.slot.getResponseInformation(), sizes: event.slot.getSizes(), adunitPath: event.slot.getAdUnitPath(), outOfPage: event.slot.getOutOfPage() } }; window.AhoyEvent.sendPersonalizationUserEvent(cdpData); } }); /* END – SEND IMPRESSION DATA TO CDP */ /* INITIATE INFINITE SC */ GAMLibrary.initiateInfiniteSC(); /* START TARGETING BLOCK */ googletag.pubads().setTargeting(“tags”, GAMLibrary.tags); googletag.pubads().setTargeting(“currentUrl”, urlPath); googletag.pubads().setTargeting(“platform”, kmklabs.platform); googletag.pubads().setTargeting(“type”, kmklabs.gtm.type); googletag.pubads().setTargeting(“pageType”, kmklabs.pageType); googletag.pubads().setTargeting(“channel”, kmklabs.gtm.subCategory); googletag.pubads().setTargeting(“audience”, kmklabs.gtm.audience.split(“|”)); googletag.pubads().setTargeting(“isAdvertorial”, typeof (isAdvertorial = kmklabs.article && kmklabs.article.isAdvertorial.toString()) === “undefined” ? “false” : isAdvertorial); googletag.pubads().setTargeting(“isMultipage”, typeof (isMultipage = kmklabs.article && kmklabs.article.isMultipage.toString()) === “undefined” ? “false” : isMultipage); googletag.pubads().setTargeting(“articleId”, kmklabs.gtm.articleId.toString()); googletag.pubads().setTargeting(“site”, kmklabs.site); googletag.pubads().setTargeting(“age”, typeof (age = kmklabs.gtm.age) === “undefined” ? “false” : kmklabs.gtm.age.toString()); googletag.pubads().setTargeting(“gender”, typeof (gender = kmklabs.gtm.gender) === “undefined” ? “false” : kmklabs.gtm.gender.toString()); googletag.pubads().setTargeting(“subcategory”, kmklabs.gtm.subCategory); /* END TARGETING BLOCK */ /* SET VISITOR ID AS PUBLISHER PROVIDED ID – START*/ var cVisitorId = (visId = document.cookie.split(“ahoy_visitor”)[1]) ? visId.split(‘;’)[0].replace(/[^a-zA-Z0-9]/ig, ”) : false; if (cVisitorId) { googletag.pubads().setPublisherProvidedId(cVisitorId + ‘kly’); } /* SET VISITOR ID AS PUBLISHER PROVIDED ID – END*/ googletag.pubads().setCentering(true); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(); googletag.pubads().disableInitialLoad(); googletag.enableServices(); googletag.pubads().refresh([window.GAMLibrary.interstitial, window.GAMLibrary.immersive, window.GAMLibrary.ballon, window.GAMLibrary.headline1, window.GAMLibrary.headline2, window.GAMLibrary.newstag1, window.GAMLibrary.organicFeedCRM1, window.GAMLibrary.organicFeedCRM2, window.GAMLibrary.organicFeedCRM3]); }); /* INITIATE PREBID */ var prebidObject = new PrebidInstantiate(1000, 3000, 1000, adUnitsDisplay, adUnitsVideo, priceGranularityConfig); /** GET MESSAGE FROM SAFEFRAME CONTAINER */ GAMLibrary.onMessageReceivedGPTUpdateCreativeStyle(); /** GET MESSAGE FROM SAFEFRAME CONTAINER */ ]]>
Leave a Reply