let adType_6532a23d56dce = “leaderboard”; // Create the element let script_6532a23d56dce = document.createElement(“script”); script_6532a23d56dce.innerHTML = ` window.googletag = window.googletag || {cmd: []}; googletag.cmd.push(function() { var mapping; // Size mapping for leaderboard ads var lbmapping = googletag.sizeMapping() .addSize([1024, 0], [[970, 250], [970, 90], [1, 1], [728, 90]]) .addSize([728, 0], [[728, 90], [1, 1]]) .addSize([320, 0], [[1, 1], [300, 50], [300, 100], [320, 50], [320, 100]]) .addSize([0, 0], [[1, 1], [320, 50]]) .build(); // Size mapping for med rectengle ads var medrecmapping = googletag.sizeMapping() .addSize([1024, 0], [[300, 600],[300, 250]]) .addSize([728, 0], [300, 250]) .addSize([320, 0], [[1, 1],[300, 250]]) .addSize([0, 0], [[1, 1], [300, 250]]) .build() //var lbSlots = [[[320, 100], [728, 90], [300, 100], [1, 1], [300, 50], [970, 250], [320, 50], [970, 90]]]; //var medrecSlots = [[300, 600], [1, 1], [300, 250]]; mapping = adType_6532a23d56dce == ‘leaderboard’ ? lbmapping : medrecmapping; googletag.defineSlot(‘/39808611/article_page/article_leaderboard_1’, [], ‘div-gpt-ad-6532a23d56dce’).addService(googletag.pubads()).defineSizeMapping(mapping); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(); //maybe optional googletag.pubads().refresh(); //maybe optional googletag.enableServices(); }); `; //checking to see if script is inserted in the header successfully if (document.head.appendChild(script_6532a23d56dce)) { //variable holding the rendering body document.getElementById(“gptBodySection-6532a23d56dce”).innerHTML = ` googletag.cmd.push(function() { googletag.display(div-gpt-ad-6532a23d56dce); }); `; }
The post A Grape Guide to Temecula Valley appeared first on Wine Enthusiast.
This Article was originally published on Wine Enthusiast