//Cooking Channel DEV AD RESTRICTIONS
var adRestrictionManager = new AdRestrictionManager();


/*****
 * TURN OFF LEADERBOARDS
 */


// turn off leaderboards on section pages including HOME 
var restrictionLeader1 = new AdRestriction();
restrictionLeader1.addParameter("adtype", "LEADERBOARD");
restrictionLeader1.addParameter("Type", "SECTION");
restrictionLeader1.isActive = false;
restrictionLeader1.isIframe = false;
adRestrictionManager.restriction.push(restrictionLeader1);

// turn off leaderboards on main search page 
var restrictionLeader2 = new AdRestriction();
restrictionLeader2.addParameter("adtype", "LEADERBOARD");
restrictionLeader2.addParameter("Classification", "SEARCH,COOK");
restrictionLeader2.isActive = false;
restrictionLeader2.isIframe = false;
adRestrictionManager.restriction.push(restrictionLeader2);

// turn off leaderboard page on video library landing page
var restrictionLeader3 = new AdRestriction();
restrictionLeader3.addParameter("adtype", "LEADERBOARD");
restrictionLeader3.addParameter("DetailId", "222");
restrictionLeader3.isActive = false;
restrictionLeader3.isIframe = false;
adRestrictionManager.restriction.push(restrictionLeader3);

// turn off leaderboard page on single video asset pages
var restrictionLeader4 = new AdRestriction();
restrictionLeader4.addParameter("adtype", "LEADERBOARD");
restrictionLeader4.addParameter("Classification", 	"VIDEO,COOK");
restrictionLeader4.isActive = false;
restrictionLeader4.isIframe = false;
adRestrictionManager.restriction.push(restrictionLeader4);

// turn off leaderboard page on video gallery pages
var restrictionLeader5 = new AdRestriction();
restrictionLeader5.addParameter("adtype", "LEADERBOARD");
restrictionLeader5.addParameter("Type", "CHANNEL");
restrictionLeader5.isActive = false;
restrictionLeader5.isIframe = false;
adRestrictionManager.restriction.push(restrictionLeader5);


// turn off leaderboard on episode search pages
var restrictionLeader7 = new AdRestriction();
restrictionLeader7.addParameter("adtype", "LEADERBOARD");
restrictionLeader7.addParameter("Type", "EPISODESEARCH");
restrictionLeader7.isActive = false;
restrictionLeader7.isIframe = false;
adRestrictionManager.restriction.push(restrictionLeader7);

// turn off leaderboard on episode search pages
var restrictionLeader8 = new AdRestriction();
restrictionLeader8.addParameter("adtype", "LEADERBOARD");
restrictionLeader8.addParameter("Type", "QMSearch");
restrictionLeader8.isActive = false;
restrictionLeader8.isIframe = false;
adRestrictionManager.restriction.push(restrictionLeader8);




// TURN OFF GOOGLE ZONE //

// turn off Google Footer on homepage as instructed by Jeff M. 9-14..bb
var restrictionGoogle1 = new AdRestriction();
restrictionGoogle1.addParameter("adtype", "GOOGLE_LEADERBOARD");
restrictionGoogle1.addParameter("Classification", "HOME,COOK");
restrictionGoogle1.isActive = false;
restrictionGoogle1.isIframe = false;
//adRestrictionManager.restriction.push(restrictionGoogle1);  //this needs to be uncommented to work

// turn off Google Footer on recipes as instructed by Lubke 9-30..bb
var restrictionGoogle2 = new AdRestriction();
restrictionGoogle2.addParameter("adtype", "GOOGLE_LEADERBOARD");
restrictionGoogle2.addParameter("UniqueId", "FOOD-RECIPE-401164-1");
restrictionGoogle2.isActive = false;
restrictionGoogle2.isIframe = false;
//adRestrictionManager.restriction.push(restrictionGoogle2);  //this needs to be uncommented to work

// turn off Google Footer on recipes as instructed by Lubke 9-30..bb
var restrictionGoogle3 = new AdRestriction();
restrictionGoogle3.addParameter("adtype", "GOOGLE_LEADERBOARD");
restrictionGoogle3.addParameter("UniqueId", "FOOD-RECIPE-401170-1");
restrictionGoogle3.isActive = false;
restrictionGoogle3.isIframe = false;
//adRestrictionManager.restriction.push(restrictionGoogle3);  //this needs to be uncommented to work

// turn off Google Footer on recipes as instructed by Lubke 9-30..bb
var restrictionGoogle4 = new AdRestriction();
restrictionGoogle4.addParameter("adtype", "GOOGLE_LEADERBOARD");
restrictionGoogle4.addParameter("UniqueId", "FOOD-RECIPE-401172-1");
restrictionGoogle4.isActive = false;
restrictionGoogle4.isIframe = false;
//adRestrictionManager.restriction.push(restrictionGoogle4);  //this needs to be uncommented to work

// turn off Google Footer on recipes as instructed by Lubke 9-30..bb
var restrictionGoogle5 = new AdRestriction();
restrictionGoogle5.addParameter("adtype", "GOOGLE_LEADERBOARD");
restrictionGoogle5.addParameter("UniqueId", "FOOD-RECIPE-401173-1");
restrictionGoogle5.isActive = false;
restrictionGoogle5.isIframe = false;
//adRestrictionManager.restriction.push(restrictionGoogle5);  //this needs to be uncommented to work

// turn off Google Footer on recipes as instructed by Lubke 9-30..bb
var restrictionGoogle6 = new AdRestriction();
restrictionGoogle6.addParameter("adtype", "GOOGLE_LEADERBOARD");
restrictionGoogle6.addParameter("UniqueId",	"FOOD-RECIPE-401176-1");
restrictionGoogle6.isActive = false;
restrictionGoogle6.isIframe = false;
//adRestrictionManager.restriction.push(restrictionGoogle6);  //this needs to be uncommented to work

// END GOOGLE ZONE //

/*
 * END TURN OFF LEADERBOARDS
 ******/

// DEFAULT RULE //
// turn off all leaderboards on sectionfronts site wide
var default1 = new AdDefault();
default1.addParameter("adtype", "LEADERBOARD");
default1.addParameter("Type", "SECTION");
default1.display=false;
//adRestrictionManager.adDefaults.push(default1);

// sample: use this format for LB's that need to be turned ON at the section front level
var restrictionLeader10 = new AdRestriction();
restrictionLeader10.addParameter("adtype", "LEADERBOARD");
restrictionLeader10.addParameter("Type", "SECTION");
restrictionLeader10.addParameter("Classification", "CATEGORY_VALUE,COOK");//updated cat value!!
restrictionLeader10.isActive = false;
restrictionLeader10.isIframe = false;
//adRestrictionManager.restriction.push(restrictionLeader10);  //this needs to be uncommented to work


/*
 * TURN OFF SUPERSTITIALS
 ******/

//template
var superstitialRestrictionBertolli = new AdRestriction();
superstitialRestrictionBertolli.addParameter("adtype", "SUPERSTITIAL");
superstitialRestrictionBertolli.addParameter("Sponsorship", "PUT_SPONSORSHIP_CODE_HERE");
superstitialRestrictionBertolli.isActive = false;
superstitialRestrictionBertolli.isIframe = false;
//adRestrictionManager.restriction.push(superstitialRestrictionBertolli); //this needs to be uncommented to work

 


 

