function snack_adds_init(call_type){for(var i=0;i<snack_tags.length;i++){if(call_type=='divs'){snack_add_tag(snack_tags[i]);}
if(call_type=='display'){snack_display_tag(snack_tags[i]);}}}
function snack_add_tag(tag){var dt=document.getElementById(tag.id);if(typeof(dt)!='undefined'&&dt!=null){dt.innerHTML='<div id="div-gpt-ad-'+tag.placementID+'"></div>';}else{console.log('DFP - div could not be targetted: '+tag.id);}}
function snack_display_tag(tag){var dt=document.getElementById('div-gpt-ad-'+tag.placementID);if(typeof(dt)!='undefined'&&dt!=null){googletag.display('div-gpt-ad-'+tag.placementID);console.log('DFP display called:'+tag.placementName);}else{console.log('DFP - ad display not called: '+tag.id);}}
function snack_setup_ads(){for(var i=0;i<snack_tags.length;i++){if(snack_tags_present[i]){filled_slots[(snack_tags[i].id)]=googletag.defineSlot('/'+snack_tags[i].accountID+'/'+snack_tags[i].placementName,snack_tags[i].sizes,'div-gpt-ad-'+snack_tags[i].placementID).addService(googletag.pubads());console.log('DFP slot defined:'+snack_tags[i].placementName);}}}
function aps_setup_ads(){for(var i=0;i<snack_tags.length;i++){if(snack_tags_present[i]){requestManager.apstagSlots.push({slotID:'div-gpt-ad-'+snack_tags[i].placementID,slotName:'/'+snack_tags[i].accountID+'/'+snack_tags[i].placementName,sizes:snack_tags[i].sizes});}}}
function snack_enqueue_script(src,loc,id){var s=document.createElement("script");s.type="text/javascript";s.src=src;if(id){s.id=id;}
if(loc=='head'){document.getElementsByTagName('head')[0].appendChild(s);}
if(loc=='body'){document.getElementsByTagName('body')[0].appendChild(s);}
return s;}
var snack_head_scripts=[];var snack_body_scripts=[];snack_head_scripts.push({'url':'https://scripts.webcontentassessor.com/scripts/c4157cfccfb6b488b69cd799b4cbc384e3551b423c7e35c12c87cccf416a3617','id':'tmt-videogamecritic'});for(i=0;i<snack_head_scripts.length;i++){snack_enqueue_script(snack_head_scripts[i].url,'head',snack_head_scripts[i].id);}
for(i=0;i<snack_body_scripts.length;i++){snack_enqueue_script(snack_body_scripts[i].url,'body',snack_body_scripts[i].id);}
var pbSnackMobile=false;var pbSnackTablet=false;var pbSnackDevice=false;!function(e){var n=/iPhone/i,t=/iPod/i,r=/iPad/i,a=/\bAndroid(?:.+)Mobile\b/i,p=/Android/i,b=/\bAndroid(?:.+)SD4930UR\b/i,l=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,f=/Windows Phone/i,s=/\bWindows(?:.+)ARM\b/i,u=/BlackBerry/i,c=/BB10/i,h=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,w=/Mobile(?:.+)Firefox\b/i;function m(e,i){return e.test(i)}function i(e){var i=e||("undefined"!=typeof navigator?navigator.userAgent:""),o=i.split("[FBAN");void 0!==o[1]&&(i=o[0]),void 0!==(o=i.split("Twitter"))[1]&&(i=o[0]);var d={apple:{phone:m(n,i)&&!m(f,i),ipod:m(t,i),tablet:!m(n,i)&&m(r,i)&&!m(f,i),device:(m(n,i)||m(t,i)||m(r,i))&&!m(f,i)},amazon:{phone:m(b,i),tablet:!m(b,i)&&m(l,i),device:m(b,i)||m(l,i)},android:{phone:!m(f,i)&&m(b,i)||!m(f,i)&&m(a,i),tablet:!m(f,i)&&!m(b,i)&&!m(a,i)&&(m(l,i)||m(p,i)),device:!m(f,i)&&(m(b,i)||m(l,i)||m(a,i)||m(p,i))||m(/\bokhttp\b/i,i)},windows:{phone:m(f,i),tablet:m(s,i),device:m(f,i)||m(s,i)},other:{blackberry:m(u,i),blackberry10:m(c,i),opera:m(h,i),firefox:m(w,i),chrome:m(v,i),device:m(u,i)||m(c,i)||m(h,i)||m(w,i)||m(v,i)}};return d.any=d.apple.device||d.android.device||d.windows.device||d.other.device,d.phone=d.apple.phone||d.android.phone||d.windows.phone,d.tablet=d.apple.tablet||d.android.tablet||d.windows.tablet,d}"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=i:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?(module.exports=i(),module.exports.isMobile=i):"function"==typeof define&&define.amd?define([],e.isMobile=i()):e.isMobile=i()}(this);if(isMobile.phone){pbSnackMobile=true;}
if(isMobile.tablet){pbSnackTablet=true;}
if(isMobile.any){pbSnackDevice=true;}
var snack_base_url='https://cdn-header-bidding.snack-media.com/';var filled_slots=[];var max_refresh=20;var times_refreshed=0;var snack_tags_present=[];var snack_tags_lazyload=[];var snack_tags_not_present=[];var AD_UNITS_TOGGLE_OFF=[];var PREBID_TIMEOUT=20000;var googletag=googletag||{};googletag.cmd=googletag.cmd||[];googletag.cmd.push(function(){googletag.pubads().disableInitialLoad();});var pbjs=pbjs||{};pbjs.que=pbjs.que||[];var gpt_script=snack_enqueue_script('https://securepubads.g.doubleclick.net/tag/js/gpt.js','head');if(typeof snack_data!=='undefined'){googletag.cmd.push(function(){for(var i=0;i<snack_data.length;i++){googletag.pubads().setTargeting(snack_data[i].k,snack_data[i].v);}});}
if(!window.__cmp&&window.parent.__cmp){window.__cmp=window.parent.__cmp;}
if(window.__cmp){window.__cmp('getPublisherConsents',null,function(result){console.log(result);if(result.standardPurposeConsents[3]===false){console.log("Standard Purpose 3 not accepted",result.standardPurposeConsents[3]);googletag.cmd.push(function(){googletag.pubads().setRequestNonPersonalizedAds(1);});}else{console.log("Standard Purpose 3 accepted",result.standardPurposeConsents[3]);}});window.__cmp('getConsentData',null,function(result){googletag.cmd.push(function(){googletag.pubads().setTargeting("gdpr","1");googletag.pubads().setTargeting("gdpr_string",result.consentData);});});window.__cmp('getGooglePersonalization',function(consent,isSuccess){if(!isSuccess){return;}
if(consent.googlePersonalizationData.consentValue){console.log("Google accepted");}else{console.log("Google not accepted");googletag.cmd.push(function(){googletag.pubads().setRequestNonPersonalizedAds(1);});}});window.__cmp('getPublisherConsents',null,function(result){if(result.standardPurposeConsents[3]===false||result.standardPurposeConsents[1]===false){no_pubcid();}});window.__cmp('getVendorConsents',null,function(result){if(result.purposeConsents[1]===false||result.purposeConsents[2]===false||result.purposeConsents[3]===false){no_pubcid();}});}
function no_pubcid(){setCookie('_pubcid_optout','1',1825);deleteCookie('_pubcid');}
function deleteCookie(name){setCookie(name,'',-1);}
function setCookie(name,value,days){var d=new Date;d.setTime(d.getTime()+24*60*60*1000*days);document.cookie=name+"="+value+";path=/;expires="+d.toGMTString();}
var snack_tags=[{'id':'snack_ldb','placementID':'1563204601111-0','accountID':6428571,'placementName':'videogamecritic.com-Unit1','sizes':[728,90],'no_refresh':false,'lazyload':false,},{'id':'snack_mpu','placementID':'1563967869931-0','accountID':6428571,'placementName':'wolvesbite.com-Unit2','sizes':[300,250],'no_refresh':false,'lazyload':false,},{'id':'snack_dmpu','placementID':'1563967892587-0','accountID':6428571,'placementName':'wolvesbite.com-Unit3','sizes':[[300,600],[300,250]],'no_refresh':false,'lazyload':false,},{'id':'snack_sky','placementID':'1563204664067-0','accountID':6428571,'placementName':'videogamecritic.com-Unit4','sizes':[[160,600],[120,600]],'no_refresh':false,'lazyload':false,},{'id':'snack_dex1','placementID':'1563204639208-0','accountID':6428571,'placementName':'videogamecritic.com-Unit1a','sizes':[728,90],'no_refresh':false,'lazyload':false,},{'id':'snack_dex2','placementID':'1564744100526-0','accountID':6428571,'placementName':'videogamecritic.com-Unit4a','sizes':[[160,600],[120,600]],'no_refresh':false,'lazyload':false,},{'id':'snack_dex3','placementID':'1565093003709-0','accountID':6428571,'placementName':'videogamecritic.com-Unit4b','sizes':[[160,600],[120,600]],'no_refresh':false,'lazyload':false,},{'id':'snack_dex4','placementID':'1567070072606-0','accountID':6428571,'placementName':'videogamecritic.com-Unit1b','sizes':[728,90],'no_refresh':false,'lazyload':false,},{'id':'snack_dex5','placementID':'1567070088655-0','accountID':6428571,'placementName':'videogamecritic.com-Unit1c','sizes':[728,90],'no_refresh':false,'lazyload':false,},{'id':'snack_dex6','placementID':'1567070102684-0','accountID':6428571,'placementName':'videogamecritic.com-Unit1d','sizes':[728,90],'no_refresh':false,'lazyload':false,},{'id':'snack_mob_top','placementID':'1563530461329-0','accountID':6428571,'placementName':'videogamecritic.com-Unit5','sizes':[[320,50],[320,100],[300,250]],'no_refresh':false,'lazyload':false,},{'id':'snack_mob_mid','placementID':'1563530499135-0','accountID':6428571,'placementName':'videogamecritic.com-Unit6','sizes':[[300,250],[320,50],[320,100]],'no_refresh':false,'lazyload':false,},{'id':'snack_mob_bot','placementID':'1563530522993-0','accountID':6428571,'placementName':'videogamecritic.com-Unit7','sizes':[[300,250],[320,50],[320,100],[300,600]],'no_refresh':false,'lazyload':false,}];var snack_site_config={'refreshAds':true,'refreshAdsInView':false,'refreshTime':90000,'headerBidding':true,'headerBiddingTimeout':900,'sizeMapping':false,};if(pbSnackMobile){if(typeof PREBID_TIMEOUT!=='undefined'){PREBID_TIMEOUT=900;}else{var PREBID_TIMEOUT=900;}
var adUnits=[{code:'div-gpt-ad-1563530461329-0',mediaTypes:{banner:{sizes:[[320,50],[320,100],[300,250]]},},bids:[{bidder:'',params:{}},{bidder:'appnexus',params:{placementId:'16527445'}},{bidder:'ix',params:{size:[320,100],siteId:'392730'}}]},{code:'div-gpt-ad-1563530499135-0',mediaTypes:{banner:{sizes:[[300,250],[320,50],[320,100]]},},bids:[{bidder:'',params:{}},{bidder:'appnexus',params:{placementId:'16527447'}},{bidder:'ix',params:{size:[320,100],siteId:'392730'}}]},{code:'div-gpt-ad-1563530522993-0',mediaTypes:{banner:{sizes:[[300,250],[320,50],[320,100],[300,600]]},},bids:[{bidder:'',params:{}},{bidder:'appnexus',params:{placementId:'16527449'}},{bidder:'ix',params:{size:[320,100],siteId:'392730'}}]}];}else{if(typeof PREBID_TIMEOUT!=='undefined'){PREBID_TIMEOUT=900;}else{var PREBID_TIMEOUT=900;}
var adUnits=[{code:'div-gpt-ad-1563204601111-0',mediaTypes:{banner:{sizes:[[728,90]]},},bids:[{bidder:'appnexus',params:{placementId:'16494990'}},{bidder:'ix',params:{size:[728,90],siteId:'392730'}}]},{code:'div-gpt-ad-1563967869931-0',mediaTypes:{banner:{sizes:[[300,250]]},},bids:[{bidder:'',params:{}},{bidder:'appnexus',params:{placementId:'16544217'}},{bidder:'ix',params:{size:[300,250],siteId:'392730'}}]},{code:'div-gpt-ad-1563967892587-0',mediaTypes:{banner:{sizes:[[300,600],[300,250]]},},bids:[{bidder:'',params:{}},{bidder:'appnexus',params:{placementId:'16544219'}},{bidder:'ix',params:{size:[300,600],siteId:'392730'}}]},{code:'div-gpt-ad-1563204664067-0',mediaTypes:{banner:{sizes:[[160,600],[120,600]]},},bids:[{bidder:'appnexus',params:{placementId:'16494993'}},{bidder:'ix',params:{size:[160,600],siteId:'392730'}}]},{code:'div-gpt-ad-1563204639208-0',mediaTypes:{banner:{sizes:[[728,90]]},},bids:[{bidder:'appnexus',params:{placementId:'16494992'}},{bidder:'ix',params:{size:[728,90],siteId:'392730'}}]},{code:'div-gpt-ad-1564744100526-0',mediaTypes:{banner:{sizes:[[160,600],[120,600]]},},bids:[{bidder:'appnexus',params:{placementId:'16609490'}},{bidder:'ix',params:{size:[160,600],siteId:'392730'}}]},{code:'div-gpt-ad-1565093003709-0',mediaTypes:{banner:{sizes:[[160,600],[120,600]]},},bids:[{bidder:'appnexus',params:{placementId:'16625288'}},{bidder:'ix',params:{size:[160,600],siteId:'392730'}}]},{code:'div-gpt-ad-1567070072606-0',mediaTypes:{banner:{sizes:[[728,90]]},},bids:[{bidder:'',params:{}},{bidder:'appnexus',params:{placementId:'16799272'}},{bidder:'ix',params:{size:[728,90],siteId:'392730'}}]},{code:'div-gpt-ad-1567070088655-0',mediaTypes:{banner:{sizes:[[728,90]]},},bids:[{bidder:'',params:{}},{bidder:'appnexus',params:{placementId:'16799273'}},{bidder:'ix',params:{size:[728,90],siteId:'392730'}}]},{code:'div-gpt-ad-1567070102684-0',mediaTypes:{banner:{sizes:[[728,90]]},},bids:[{bidder:'',params:{}},{bidder:'appnexus',params:{placementId:'16799274'}},{bidder:'ix',params:{size:[728,90],siteId:'392730'}}]}];}
var nano_kw=document.querySelector('meta[name=keywords]');var nano_kw_str='';if(nano_kw){nano_kw_str=nano_kw.getAttribute('content');}else{nano_kw_str='football, sports';}
for(u=0;u<adUnits.length;u++){for(b=0;b<adUnits[u].bids.length;b++){var bid=adUnits[u].bids[b];if(bid.bidder=='nanointeractive'){bid.params.nq=nano_kw_str;}}}
start_snack_ads();function start_snack_ads(){if(snack_site_config.sizeMapping===true&&pbSnackMobile){}
snack_adds_init('divs');for(var i=0;i<snack_tags.length;i++){var tag=snack_tags[i];var dt=document.getElementById(tag.id);if(typeof(dt)!='undefined'&&dt!=null){if(tag.lazyload==true){snack_tags_lazyload[i]=tag.id;}else{snack_tags_present[i]='div-gpt-ad-'+tag.placementID;}}else{AD_UNITS_TOGGLE_OFF.push('div-gpt-ad-'+tag.placementID);snack_tags_not_present[i]=true;}}
if(snack_site_config.headerBidding===true){var pb_src=snack_enqueue_script(snack_base_url+'assets/js/prebid-latest.js','head');snack_start_pb();}else{console.log('headerBidding is either false or undefined');googletag.cmd.push(function(){snack_setup_ads();googletag.enableServices();});googletag.cmd.push(function(){snack_adds_init('display');});googletag.cmd.push(function(){googletag.pubads().refresh();});}}
function snack_start_pb(){var PREBID_TIMEOUT=20000;pbjs.bidderSettings={'appnexus':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.9;}},'rubicon':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.9;}},'openx':{bidCpmAdjustment:function(bidCpm){return bidCpm*1.1;}},'ix':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.85;}},'sublime':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.85;}},'sharethrough':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.85;}},'collective564':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.7;}},'playgroundxyz':{bidCpmAdjustment:function(bidCpm){var pubCpm=4.85;return bidCpm>0?pubCpm:0;}},'conversant':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.85;}},'districtm':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.85;}},'justpremium':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.80;}},'sharethrough':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.8;}},'adyoulike':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.85;}},'aardvark':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.85;}},'emx_digital':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.75;}},'33across':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.8;}},'kargo':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.85;}},'undertone':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.85;}},'improvedigital':{bidCpmAdjustment:function(bidCpm){return bidCpm*0.8;}},};var customConfigObject={"buckets":[{"precision":2,"min":0,"max":8,"increment":0.01},{"precision":2,"min":8,"max":16,"increment":0.10}]};pbjs.que.push(function(){pbjs.setConfig({consentManagement:{cmpApi:'iab',timeout:PREBID_TIMEOUT,allowAuctionWithoutConsent:true},priceGranularity:customConfigObject,bidderSequence:"random",userSync:{userIds:[{name:"id5Id",params:{partner:211},storage:{type:"cookie",name:"pbjs-id5id",expires:5}},{name:"pubCommonId",storage:{type:"cookie",name:"_pubCommonId",expires:1825}},{name:"digitrust",params:{init:{member:'qfYlp4Xuc3',site:'CO6Ol2htmu'},callback:function(digiTrustResult){if(digiTrustResult.success){var el=document.getElementById('dtidOutput');console.log('Success',digiTrustResult.identity);}
else{console.error('Digitrust init failed');}}},storage:{type:"html5",name:"pbjsdigitrust",expires:60}}],syncDelay:3000,filterSettings:{all:{bidders:'*',filter:'include'}},useBidCache:true}});pbjs.addAdUnits(adUnits);pbjs.aliasBidder('appnexus','playgroundxyz');pbjs.aliasBidder('appnexus','scoota');pbjs.aliasBidder('appnexus','collective564');pbjs.requestBids({adUnitCodes:snack_tags_present,bidsBackHandler:sendAdserverRequest});});function sendAdserverRequest(){if(pbjs.adserverRequestSent)return;pbjs.adserverRequestSent=true;googletag.cmd.push(function(){pbjs.que.push(function(){pbjs.setTargetingForGPTAsync(snack_tags_present);googletag.pubads().refresh();});});}
setTimeout(function(){sendAdserverRequest();},PREBID_TIMEOUT);function refreshBids(){pbjs.que.push(function(){pbjs.requestBids({timeout:PREBID_TIMEOUT,bidsBackHandler:function(){pbjs.setTargetingForGPTAsync();googletag.pubads().refresh();}});});}
googletag.cmd.push(function(){snack_setup_ads();googletag.enableServices();});googletag.cmd.push(function(){snack_adds_init('display');});}
var times_refreshed_arr=[];if(snack_site_config.refreshAds==true&&typeof(snack_site_config.refreshTime)==='number'&&snack_site_config.refreshTime>1000){setTimeout(function(){refresh_init();},snack_site_config.refreshTime);}
function refresh_init(){for(var i=0;i<snack_tags.length;i++){if(snack_tags[i].no_refresh===false&&snack_tags[i].id!='snack_tablet_mapping'&&snack_tags_present.indexOf('div-gpt-ad-'+snack_tags[i].placementID)>-1){if(!times_refreshed_arr[snack_tags[i].id]){times_refreshed_arr[snack_tags[i].id]=0;}
refresh_loop(snack_tags[i].id);}}}
function refresh_loop(unit_id){if(times_refreshed_arr[unit_id]<max_refresh){googletag.destroySlots([(filled_slots[unit_id])]);filled_slots[unit_id]=refreshBid([unit_id]).toRefresh[0];times_refreshed_arr[unit_id]++;setTimeout(function(){refresh_loop(unit_id);},snack_site_config.refreshTime);}}
var slots=[];function refreshBid(tags){if(typeof snack_tags=='undefined'||!snack_tags.length){setTimeout(function(){refreshBid(tags);},100);}else{var adUnitCodes=[];var slots_for_refresh=[];var snack_tags_to_add=[];googletag.cmd.push(function(){for(var i=0;i<tags.length;i++){for(var ii=0;ii<snack_tags.length;ii++){if(tags[i]==snack_tags[ii].id){snack_tags_to_add[i]=snack_tags[ii];}};}
var test_slots=[];for(var i=0;i<snack_tags_to_add.length;i++){test_slots[(snack_tags_to_add[i].placementName)]=googletag.defineSlot('/'+snack_tags_to_add[i].accountID+'/'+snack_tags_to_add[i].placementName,snack_tags_to_add[i].sizes,'div-gpt-ad-'+snack_tags_to_add[i].placementID);if(test_slots[(snack_tags_to_add[i].placementName)]){slots[(snack_tags_to_add[i].placementName)]=test_slots[(snack_tags_to_add[i].placementName)].addService(googletag.pubads());}else{console.log('NULL SLOT',test_slots[(snack_tags_to_add[i].placementName)]);}
console.log('DFP slot defined:'+snack_tags_to_add[i].placementName);slots_for_refresh.push(slots[(snack_tags_to_add[i].placementName)]);adUnitCodes.push('div-gpt-ad-'+snack_tags_to_add[i].placementID);snack_add_tag(snack_tags_to_add[i]);snack_display_tag(snack_tags_to_add[i]);}
pbjs.que.push(function(){console.log("adUnitCodes",adUnitCodes);console.log("slots_for_refresh",slots_for_refresh);pbjs.requestBids({timeout:PREBID_TIMEOUT,adUnitCodes:adUnitCodes,bidsBackHandler:function(){console.log(pbjs.getAdserverTargeting());pbjs.setTargetingForGPTAsync(adUnitCodes);googletag.pubads().refresh(slots_for_refresh);}});});});return{"toAdd":snack_tags_to_add,"toRefresh":slots_for_refresh};}}
function killSlot(tags){console.log('killSlot',tags);var snack_tags_to_kill=[];googletag.cmd.push(function(){for(var i=0;i<tags.length;i++){for(var ii=0;ii<snack_tags.length;ii++){if(tags[i]==snack_tags[ii].id){snack_tags_to_kill[i]=snack_tags[ii];}};}
console.log('snack_tags_to_kill',snack_tags_to_kill);for(var i=0;i<snack_tags_to_kill.length;i++){console.log('slots',filled_slots[(snack_tags_to_kill[i].id)])
googletag.destroySlots(filled_slots[(snack_tags_to_kill[i].id)]);}});}