var com = window.com || {}; if(!window.com){ window.com = com; }; try{ }catch(e){debugger;} var adtechAdConfig = { "canvasId": 412002, "liveStatsEnabled": false, "servicesUrl": "", "dynamic": false, "productFamilyId": 0, "formatId": 2, "servicesHosts": { "http": "", "https": "", "post": "" }, "adServerVars": { "uid": "1585589555191", "id": "412002", "bannerId": "_ADBNID_", "bannerUid": "_ADBNUID_", "networkId": "_ADNETID_", "subNetworkId": "_ADSUBNETID_", "creativeId": "0", "pageId": "_ADFC_PAGEID_", "placementId": "_ADCUID_", "adSize": "_ADFC_ADSIZE_", "servingProto": "https", "servingHost": "localhost", "sequenceId32": "_ADREFSEQUENCEID32_", "sequenceId64": "_ADREFSEQUENCEID64_", "secureAssetHost": "https:\/\/richmedia.cdnservices.net\/adtech\/assets\/e2d0d69a80845cb5ca82d1bf24c29fa3\/", "configBaseURL": "https:\/\/richmedia.cdnservices.net\/adtech\/assets\/e2d0d69a80845cb5ca82d1bf24c29fa3\/", "assetBaseURL": "https:\/\/richmedia.cdnservices.net\/adtech\/assets\/e2d0d69a80845cb5ca82d1bf24c29fa3\/", "baseURL": "https:\/\/richmedia.cdnservices.net\/adtech\/assets\/e2d0d69a80845cb5ca82d1bf24c29fa3\/", "viewCounter": "", "campaignId": "_ADMCID_", "publisherId": "_ADWEBSITEID_", "externalId": "", "advertiserId": 1369780, "regionId": 1, "iqRegionId": "eu" }, "geoData": { "area": "_ADAREATEXT_", "city": "Amsterdam", "country": "_ADCOUNTRYTEXT_", "state": "Noord-Holland", "zip": "_ADZIPTEXT_" }, "tagVars": [], "preview": true, "pubVars": { "clickPixel": "", "iframeBusterPath": "", "clickRedirect": "", "overflowFixLevel": "0", "viewCountUrl": "", "overrideX": "", "overrideY": "", "closeTimeout": "0" }, "regs": { "gdpr": { "applies": "_ADGDPR_", "consent": "_ADCONSENT_" }, "ccpa": { "privacy": "_ADUSPRIVACY_" } }, "DeliveryServerTag": { "source": "_ADDCP(tag.srvsrc)_", "lineId": "_ADDCP(tag.srvlid)_", "creativeId": "_ADDCP(tag.srvcid)_", "variables": "_ADDCP(tag.vars:{})_" }, "clickRedirect": "", "assetContainers": { "main": { "type": "inlineDiv", "width": 0, "height": 150, "contentWidth": 0, "contentHeight": 150, "contentWidthUnit": "px", "contentHeightUnit": "px", "xRel": "adSlotLeft", "yRel": "adSlotTop", "x": 0, "y": 0, "renderEvent": "serve", "content": "index.html", "contentType": "html", "zIndex": 26001, "wmode": "transparent", "pluginVersion": 0, "contractedY": 0, "contractedX": 0, "contractedWidth": 0, "contractedHeight": 150, "isExpandable": true, "startContracted": true, "stickyX": false, "stickyY": false, "pushesContent": false, "expandAnimationDuration": 0, "contractAnimationDuration": 0, "closeTimeout": 0, "modal": false, "sequence": 1, "iframeBuster": "", "langVersion": 0 } }, "clickthroughs": { "default": { "id": 2019, "plid": "19820fb2c1c5cecacd4528a5bad3aa93", "dest": "https:\/\/www.adsolutions.com\/rich-media-gallery\/", "target": "_blank", "features": "" }, "backupImageClickthrough": { "id": 7492, "plid": "4d2c2cef5973417f3f03adc213a06d6d", "dest": "https:\/\/www.adsolutions.com\/rich-media-gallery\/", "target": "_blank", "features": "" }, "main": { "id": 1, "plid": "37f1f67addb076058db521478e783928", "dest": "https:\/\/www.adsolutions.com\/rich-media-gallery\/", "target": "_blank", "features": "" } }, "contentVariables": { "Backup Alt Text": "Adsolutions advertisement", "QRUrl": "" }, "contentProperties": { "Backup image file": "1x1.gif", "Backup image clickthrough": "" }, "adrConfig": { "eventEndpoint": "https:\/\/delivery.adnuntius.com\/u?rt={{{rt}}}" }, "dataFeeds": [], "screenGrabs": [], "polls": [], "assets": [ { "id": "Backup image", "name": "1x1.gif", "url": "1x1.gif" }, { "id": null, "name": "closeButton_60x30.png", "url": "closeButton_60x30.png" }, { "id": "main", "name": "index.html", "url": "index.html" }, { "id": null, "name": "main.css", "url": "main.css" }, { "id": null, "name": "customAd.js", "url": "customAd.js" }, { "id": null, "name": "main.js", "url": "main.js" } ], "events": [ { "id": 2020, "plid": "850415b95f929ae311dc1d1d3f7f2bec", "name": "engagement", "cumulative": false, "interaction": true, "custom": false, "video": false, "isLoggable": true }, { "id": 11324, "plid": "c9f6fe2c78d93485fb24a1ef9bf6c7ef", "name": "viewableImpression", "cumulative": false, "interaction": false, "custom": false, "video": false, "isLoggable": true }, { "id": 11325, "plid": "49fcf58513758b38fec25dcf95efa15d", "name": "indeterminableViewability", "cumulative": false, "interaction": false, "custom": false, "video": false, "isLoggable": true }, { "id": 11333, "plid": "8afd9cf75017beeb04259947c2f58b45", "name": "backupViewableImpression", "cumulative": false, "interaction": false, "custom": false, "video": false, "isLoggable": true }, { "id": 24615, "plid": "c35dcf63748b2faf210d23745a8726b4", "name": "interactiveImpression", "cumulative": false, "interaction": false, "custom": false, "video": false, "isLoggable": true }, { "id": 8070, "plid": "c10258071c4eeb2cfe7888cdddf2c3e7", "name": "close", "cumulative": true, "interaction": true, "custom": true, "video": false, "isLoggable": true } ], "timers": [ { "id": 2024, "plid": "9e2cc5168834ac4024fd04d15301dd7d", "name": "displayTimer" }, { "id": 2025, "plid": "a292c5fb89ef5b03a9fcdb861d430814", "name": "viewTimer" }, { "id": 2026, "plid": "4156b82ad1b06efe75b026c5b9c8c361", "name": "engagementTimer" }, { "id": 24616, "plid": "ac893edcdd42b26a64ce4d4ef9967b16", "name": "interactionTimer" } ], "eventHandlers": [ { "name": "expand", "target": "main", "source": "main", "action": "expand" }, { "name": "contract", "target": "main", "source": "main", "action": "contract" } ], "thirdPartyTracking": [ { "id": 1, "type": "1_PIXEL", "url": "https:\/\/delivery.adnuntius.com\/u?rt={{{rt}}}&customType=19820fb2c1c5cecacd4528a5bad3aa93", "secureUrl": "https:\/\/delivery.adnuntius.com\/u?rt={{{rt}}}&customType=19820fb2c1c5cecacd4528a5bad3aa93", "onEvent": "SPECIFIC_CLICK", "eventName": "default" }, { "id": 2, "type": "1_PIXEL", "url": "https:\/\/delivery.adnuntius.com\/u?rt={{{rt}}}&customType=4d2c2cef5973417f3f03adc213a06d6d", "secureUrl": "https:\/\/delivery.adnuntius.com\/u?rt={{{rt}}}&customType=4d2c2cef5973417f3f03adc213a06d6d", "onEvent": "SPECIFIC_CLICK", "eventName": "backupImageClickthrough" }, { "id": 3, "type": "1_PIXEL", "url": "https:\/\/delivery.adnuntius.com\/u?rt={{{rt}}}&customType=37f1f67addb076058db521478e783928", "secureUrl": "https:\/\/delivery.adnuntius.com\/u?rt={{{rt}}}&customType=37f1f67addb076058db521478e783928", "onEvent": "SPECIFIC_CLICK", "eventName": "main" }, { "id": 4, "type": "1_PIXEL", "url": "", "secureUrl": "", "onEvent": "SPECIFIC_EVENT", "eventName": "viewableImpression" } ], "contentHubConfig": { "mapping": [], "assets": [] }, "fallback": "1x1.gif", "defaultClick": "default" }; /*debugger;*/ if(window.adtechAdConfig){ if(window.adtechAdConfig.clickthroughs && window.adtechAdConfig.clickthroughs["default"] && window.adtechAdConfig.clickthroughs["default"].dest && window.adtechAdConfig.clickthroughs["default"].dest.length>0){ for(var i in window.adtechAdConfig.clickthroughs){ if(i == "default"){ continue; } if(window.adtechAdConfig.clickthroughs[i].dest.length == ""){ window.adtechAdConfig.clickthroughs[i].dest = window.adtechAdConfig.clickthroughs["default"].dest; } } } }; /** * Boilerplate code required to hook into the ADTECH rich media library. * * For API documentation, please contact canvas-help@adtech.com */ (function(adConfig) { adConfig.assetContainers.main.contentHeight = 262; adConfig.assetContainers.main.contractedHeight = 80; var requiresBreakout = false; if (!adConfig.overrides || adConfig.overrides.displayWindowTarget != self) { for (var id in adConfig.assetContainers) { if (adConfig.assetContainers.hasOwnProperty(id)) { var container = adConfig.assetContainers[id]; if (container.type != 'inlineDiv' || container.isExpandable) { requiresBreakout = true; break; } } } } if (adConfig.overrides && adConfig.overrides.displayWindowTarget) { var displayWindowTarget = adConfig.overrides.displayWindowTarget; displayWindowTarget = (typeof adtechIframeHashArray != 'undefined' && self != top) ? displayWindowTarget.parent : displayWindowTarget; } else { var calculatedTarget = null; var currentWindow = parent; while (currentWindow != undefined) { try { var targetDoc = currentWindow.document; if (targetDoc) { calculatedTarget = currentWindow; } } catch(e) {} currentWindow = (currentWindow == top) ? null : currentWindow.parent; } var displayWindowTarget = calculatedTarget || top; } var targetIsFriendly = false; try { var targetDoc = displayWindowTarget.document; if (targetDoc) { targetIsFriendly = true; } } catch(e) {} var targetWindow = (requiresBreakout && (self != top && targetIsFriendly)) ? displayWindowTarget : self; targetWindow.com = targetWindow.com || {}; targetWindow.com.adtech = targetWindow.com.adtech || {}; targetWindow.com.adtech.AdtechCustomAd$AD_ID$ = function() { // Custom code class constructor. }; targetWindow.com.adtech.AdtechCustomAd$AD_ID$.prototype = { /** * Entry point methods. * * Automatically invoked by the rich media library when the library API is * available to use, and the Advert instance has been instantiated. */ preInit: function() { window.com = com || {}; com.adtech = targetWindow.com.adtech; }, init: function(advert) { if (!advert.richView) { // The backup client can not render the rich version of the advert. return; } // A few useful things to help you get started. Please delete as necessary! this.advert = advert; this.utils = com.adtech.Utils_3_3_0; this.globalEventBus = targetWindow.adtechAdManager_3_3_0.globalEventBus; this.richMediaEvent = com.adtech.RichMediaEvent_3_3_0; this.container = advert.getAssetContainer('main'); this.mcontainer = advert.getAssetContainer('float'); if (this.container.rendered) { this.renderEventHandler(); } else { this.container.addEventListener('render', this.renderEventHandler, this); } /* * This is how you listen for your custom events. * ADTECH.close() is actually just an alias of ADTECH.event('close'). */ advert.eventBus.addEventListener('close', this.utils.createClosure(this, this.closeHandler)); advert.eventBus.addEventListener('expand',this.expandHandler, this); advert.eventBus.addEventListener('contract',this.contractHandler, this); /* * Want to wait until the DOM or the page has loaded? No problem! */ if (this.globalEventBus.pageLoaded) { this.pageLoadHandler(); } else { this.globalEventBus.addEventListener(this.richMediaEvent.PAGE_LOAD, this.utils.createClosure(this, this.pageLoadHandler)); } }, /********************************************************* * * Create your instance methods below. * * Please remember not to add a trailing comma to you last * method - IE will not like that! * *********************************************************/ closeHandler: function() { this.container.close(); /* * This will get invoked when the close event has been dispatched by any one * of your ad units. */ }, renderEventHandler:function(){ var styles = {zIndex:0xFFFFFFFF,width:'100%', left:'0', top:'initial', bottom:0,position:'fixed'}; for(var i in styles){ if(this.container.anchorDiv == this.container.div.parentNode){ this.container.anchorDiv.style[i] = styles[i]; this.container.div.style.width = '100%'; this.container.div.style.bottom = '0px'; this.container.div.style.top = 'initial'; this.container.div.style.height = '150px'; }else{ this.container.div.style[i] = styles[i]; } } this.container.content.contentObject.style.width = '100%'; this.container.content.contentObject.style.height = '100%'; if(this.advert.assetContainers.main.startContracted){ this.contractHandler(); }else{ this.expandHandler(); } var t = this; setTimeout(function(){ t.container.close(); },10000); }, contractHandler:function(){ this.container.div.style.clip = 'auto'; this.container.div.style.height = '150px'; }, expandHandler:function(){ this.container.div.style.clip = 'auto'; this.container.div.style.height = '150px';//this.container.contentHeight+'px'; }, pageLoadHandler: function() { } }; targetWindow.adtechCallbackInstances = targetWindow.adtechCallbackInstances || []; var instanceIndex = targetWindow.adtechCallbackInstances.length; targetWindow.adtechCallbackInstances[instanceIndex] = new targetWindow.com.adtech.AdtechCustomAd$AD_ID$(); targetWindow.adtechAdCallbacks = targetWindow.adtechAdCallbacks || {}; targetWindow.adtechAdCallbacks[adConfig.adServerVars.uid] = targetWindow.adtechAdCallbacks[adConfig.adServerVars.uid] || []; targetWindow.adtechAdCallbacks[adConfig.adServerVars.uid].push( targetWindow.adtechCallbackInstances[instanceIndex]); })(adtechAdConfig); (function (D) { if (!D.initOverride) { var B = "https://richmedia.cdnservices.net/adtech/lib/"; var H = (D.mraidCompatible) ? "MRAID" : ""; var F = B + "adtechRichMediaLib" + H + "_3_3_0.js"; D.rmLibUrl = F; if (!window.adtechAdManager_3_3_0) { adtechAdQueue = window.adtechAdQueue || []; adtechAdQueue.push(D); if (!window.adtechAdManagerReqs || !window.adtechAdManagerReqs["3_3_0"]) { adtechAdManagerReqs = window.adtechAdManagerReqs || {}; adtechAdManagerReqs["3_3_0"] = true; var A = "scr"; document.write("<" + A + 'ipt type="text/javascript" src="' + F + '">"); } } else { adtechAdManager_3_3_0.registerAd(D); } } })(adtechAdConfig);