= 286 && $int_appver < $testBuildId) || in_array($appver,$special_version_new)){ /*----------------------- new versions start -------------------------------*/ $australia = array("dfp","custom-ucweb"); $canada = array("dfp","custom-ucweb"); // $india = array("dfp","inmobi","dfp-inmobi-fallback","custom-ucweb"); $india = array("dfp","custom-ucweb"); // $india = array("inmobi","dfp","custom-ucweb"); $india_states = array("dfp","custom-ucweb"); $united_states = array("dfp","custom-ucweb"); // $home_page = array("inmobi","html-ucweb"); // $commentary_page = array("inmobi","html-ucweb"); $home_page = array("dfp","custom-ucweb"); $commentary_page = array("dfp","custom-ucweb"); $commentary_page_row= array("dfp","custom-ucweb"); $home_strip = array("html-homestrip"); $home_strip_airtel = array("custom-airtel"); $row = array("dfp","custom-ucweb"); /*----------------------- new version ends -------------------------------*/ }elseif($int_appver == $testBuildId){ $row = array("dfp","custom-ucweb"); //$india = array("dfp"); $india = array("dfp","custom-ucweb"); $campaign_region = "TESTING"; }elseif(($int_appver >= 205 && $int_appver < 286) || in_array($appver,$special_version_old) || $oldOS){ $australia = array("custom-dfp","custom-ucweb"); $canada = array("dfp","custom-ucweb"); $india = array("dfp","custom-ucweb"); $india_states = array("dfp","custom-ucweb"); $united_states = array("dfp","custom-ucweb"); $home_page = array("dfp","custom-ucweb"); $commentary_page = array("dfp","custom-ucweb"); $commentary_page_row= array("dfp","custom-ucweb"); $home_strip = array("html-homestrip"); $row = array("dfp","custom-ucweb"); }else{ $india = array("dfp","custom-ucweb"); $india_states = array("dfp","custom-ucweb"); $united_states = array("custom-dfp","inmobi"); $home_page = array("dfp","custom-ucweb"); $commentary_page = array("dfp","custom-ucweb"); $commentary_page_row= array("dfp","custom-ucweb"); $home_strip = array("html-homestrip"); $row = array("dfp","custom-ucweb"); } $cbads = new CBAds(); $cbads->set_country($country); $cbads->appver = $int_appver; $cbads->set_page_ads($empty_banner,"HomeStrip",$country); $cbads->set_page_ads($empty_banner,"TeamStrip",$country); $cbads->set_group_page_ads(array(),"marqueeseriesLeaderboard",$country); if($int_appver == $testBuildId){ // $cbads->set_network_defs("dfp","/1024780/320x50_SdkMed_Test_Inmobi","home"); // $cbads->set_network_defs("dfp","/1024780/320x50_SdkMed_Test_Pubmatic","home"); // $cbads->set_network_defs("dfp","/1024780/320x50_SdkMed_Test_FB","home"); // $cbads->set_network_defs("dfp","/1024780/320x50_SdkMed_Test_Admob","home"); } switch($campaign_region){ case 'TESTINGd': $cbads->set_all_ads($row,$country); $cbads->set_page_ads($html_none,"HomeStrip",$country); break; case 'TESTING': case 'IN': if($showINStatesAds){ $cbads->set_all_ads($india_states,$country); }else{ $cbads->set_all_ads($india,$country); } // $cbads->set_page_ads($home_page,"Home",$country); // $cbads->set_network_defs("html-homestrip",' ',"homestrip"); // $cbads->set_page_ads($empty_banner,"HomeStrip",$country); // $cbads->set_page_ads(array("custom-ads-home-strip"),"HomeStrip",$country); // $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); // $cbads->set_page_ads($home_strip_airtel,"HomeStrip",$country); $rand_num = rand(0,100); // if($rand_num < 3 && true){ // $cbads->set_network_defs("custom-home-strip",'http://a.cric.bz/ads/track/cnt/18034',"default"); // $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); // } else if($rand_num < 6 && true){ // $cbads->set_network_defs("custom-home-strip",'http://a.cric.bz/ads/track/cnt/18035',"default"); // $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); // }else if($rand_num < 10 && true){ // $cbads->set_network_defs("custom-home-strip",'http://a.cric.bz/ads/track/cnt/18036',"default"); // $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); // }else if($rand_num < 30 && true){ // $cbads->set_network_defs("custom-home-strip",'http://a.cric.bz/ads/track/cnt/18673',"default"); // $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); // }else if($rand_num < 60 && true){ // $cbads->set_network_defs("custom-home-strip",'http://a.cric.bz/ads/track/cnt/18836',"default"); // $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); // }else if($rand_num < 85 && true){ // $cbads->set_network_defs("custom-home-strip",'http://a.cric.bz/ads/track/cnt/17308',"default"); // $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); // }else if($rand_num < 100 && true){ // $cbads->set_network_defs("custom-home-strip",'http://a.cric.bz/ads/track/cnt/18736',"default"); // $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); // $cbads->set_network_defs("custom-home-strip",'http://mapps.cricbuzz.com/cricbuzz-android/native-ads?page=HomeStrip&country=IN',"default"); //$cbads->set_network_defs("custom-home-strip",'http://m.cricbuzz.com/includes/ads/banners/android/wc_320x26.html',"default"); //$cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); $show_home_strip = false; if($rand_num < 5 && true){ $impr_strip = "http://a.cric.bz/ads/track/impr/23020"; $clk_strip = "http://a.cric.bz/ads/track/clk/23019"; $background_strip = "#FEFEFE url(http://img.cricketcb.com/images/ads/2017/apr/21/prv_90efb_1492783629.jpg) no-repeat top center"; $show_home_strip = true; } else if($rand_num < 10 && true){ $impr_strip = "http://a.cric.bz/ads/track/impr/23022"; $clk_strip = "http://a.cric.bz/ads/track/clk/23021"; $background_strip = "#2E3640 url(http://img.cricketcb.com/images/ads/2017/apr/21/prv_5bcca_1492783770.png) no-repeat top center"; $show_home_strip = true; } else if($rand_num < 15 && true){ $impr_strip = "http://a.cric.bz/ads/track/impr/23024"; $clk_strip = "http://a.cric.bz/ads/track/clk/23023"; $background_strip = "#AD0000 url(http://img.cricketcb.com/images/ads/2017/apr/21/prv_9b087_1492783981.png) no-repeat top center"; $show_home_strip = true; } else if($rand_num < 25 && true){ $impr_strip = "http://a.cric.bz/ads/track/impr/23026"; $clk_strip = "http://a.cric.bz/ads/track/clk/23025"; $background_strip = "#AD0000 url(http://img.cricketcb.com/images/ads/2017/apr/21/prv_cac31_1492784017.png) no-repeat top center"; $show_home_strip = true; } else if($rand_num < 100 && true){ $impr_strip = "http://a.cric.bz/ads/track/impr/23002"; $clk_strip = "http://a.cric.bz/ads/track/clk/23003"; $background_strip = "#FFFFFF url(http://img.cricketcb.com/images/ads/2017/apr/22/prv_dca0d_1492826543.gif) no-repeat top center"; $show_home_strip = true; } if($show_home_strip){ $cbads->set_network_defs("html-ipl","
","default"); $cbads->set_page_ads(array("html-ipl"),"HomeStrip",$country); } else { $cbads->set_page_ads($empty_banner,"HomeStrip",$country); } /*TEAMS STRIP */ include("/home/cricbuzz/wwwdocs/ads/adserver/units/mobile/android/teamsStrip.php"); if($isTestBuild){ // $cbads->set_network_defs("custom-home-strip",'http://a.cric.bz/ads/track/cnt/18034'); // $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); $cbads->set_page_ads($empty_banner,"HomeStrip",$country); // $cbads->set_network_defs("custom-home-strip",'http://mapps.cricbuzz.com/cricbuzz-android/native-ads?page=HomeStrip&country='.$country,"default"); // $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); } /* if(rand(0,100) < 101 && true){ $cbads->set_network_defs("custom-home-strip",'http://a.cric.bz/ads/track/cnt/15913',"default"); $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); }else if(rand(0,100) < 101 && false){ $cbads->set_network_defs("custom-home-strip",'http://m.cricbuzz.com/includes/ads/banners/android/dfp-home-strip.html',"default"); $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); } */ if(rand(0,100) % 2){ $cbads->set_network_defs("html-ucweb",'
',"default"); }else{ $cbads->set_network_defs("html-ucweb",'
',"default"); } // $cbads->set_page_ads(array("html-ucweb"),"PlayerInfo",$country); // $cbads->set_group_page_ads($commentary_page,"live",$country); break; case 'AU': $cbads->set_all_ads($australia,$country); $cbads->set_page_ads($empty_banner,"HomeStrip",$country); $cbads->set_page_ads($empty_banner,"TeamStrip",$country); // $cbads->set_network_defs("html-homestrip","
","homestrip"); // $cbads->set_page_ads($home_strip,"HomeStrip",$country); break; case 'US': // $cbads->set_network_defs("html-homestrip","
","homestrip"); $cbads->set_all_ads($united_states,$country); // $cbads->set_page_ads($home_strip,"HomeStrip",$country); $cbads->set_page_ads($empty_banner,"HomeStrip",$country); $cbads->set_page_ads($empty_banner,"TeamStrip",$country); break; case "AE": case "SA": case "KW": case "BH": case "QA": case "OM": $cbads->set_all_ads(["dfp"],$country); $cbads->set_page_ads(["dfp"],"Home",$country); $cbads->set_page_ads($empty_banner,"HomeStrip",$country); $cbads->set_page_ads($empty_banner,"TeamStrip",$country); $cbads->set_group_page_ads(["dfp"],"live",$country); break; case 'CA': $cbads->set_all_ads($canada,$country); if(rand(0,100) < 60 && false){ $cbads->set_network_defs("custom-home-strip",'http://a.cric.bz/ads/track/cnt/16172',"default"); $cbads->set_page_ads(array("custom-home-strip"),"HomeStrip",$country); } else { $cbads->set_page_ads($empty_banner,"HomeStrip",$country); $cbads->set_page_ads($empty_banner,"TeamStrip",$country); } break; default: $cbads->set_all_ads($row,$country); $cbads->set_page_ads($row,"Home",$country); $cbads->set_page_ads($empty_banner,"HomeStrip",$country); $cbads->set_page_ads($empty_banner,"TeamStrip",$country); $cbads->set_group_page_ads($commentary_page_row,"live",$country); break; } if($country == "IN" && false){ $cbads->set_network_defs("custom-PullTORefresh",'http://i.cricketcb.com/images/ads/2017/jan/25/prv_5c91b_1485331456.jpg',"default"); $cbads->set_page_ads(array("custom-PullTORefresh"),"PullTORefresh",$country); }else{ $cbads->set_page_ads($custom_none,"PullTORefresh",$country); } // if($int_appver == $testBuildId){ // $cbads->set_network_defs("custom-PullTORefresh",'http://i.cricketcb.com/images/ads/2017/jan/25/prv_5c91b_1485331456.jpg',"default"); // $cbads->set_page_ads(array("custom-PullTORefresh"),"PullTORefresh",$country); // } if($country != "AU" && $country != "IN" && $country != "US" && $country != "CA" ){ $cbads->set_page_ads($empty_banner,"HomeStrip",$country); $cbads->set_page_ads($empty_banner,"TeamStrip",$country); }else{ if($int_appver >= 302 && false){ $cbads->set_page_ads(array("custom-PullTORefresh"),"PullTORefresh",$country); } } if($int_appver >= 302){ $cbads->add_marquee_series(); // $cbads->set_group_page_ads(array("dfp","inmobi","custom-ucweb","html-marqueeseries"),"marqueeseries",$country); // $cbads->set_group_page_ads(array("html-none"),"marqueeseriesLeaderboard",$country); if($isTestBuild){ $cbads->set_group_page_ads(array("dfp"),"marqueeseries",$country); $cbads->set_group_page_ads(array("dfp"),"teams",$country); }else if($device_api < 21){ $cbads->set_group_page_ads(array("dfp","inmobi","custom-ucweb"),"marqueeseries",$country); }else{ $cbads->set_group_page_ads(array("dfp"),"marqueeseries",$country); $cbads->set_group_page_ads(array("dfp"),"teams",$country); } /// native ads start $native_enabled = true; $nativeHomeMatches = []; $MarqueeSeriesVideoNative = []; $MatchVideosNative = []; $nativeHomeNews = []; $nativeLatestNews = []; $nativeMatches = []; $nativeNews = []; $nativeVenue = []; $nativeGallery = []; $nativeGalleryDetail = []; $nativeCaricatures = []; $native_none = array(); $native_custom_only = array("custom"); $native_inmobi_only = array("inmobi"); $native_custom_inmobi = array("custom","inmobi"); $native_inmobi_custom = array("inmobi","custom"); $native_ctn_inmobi_custom = array("ctn","inmobi","custom"); $native_ctn_custom = array("ctn","custom"); $native_fb_ctn = array("fb","ctn","inmobi"); $native_fb_inmobi = array("fb","inmobi"); $native_fb_ctn_inmobi = array("fb","ctn","inmobi"); $native_custom_fb_inmobi_ctn = array("custom","fb","inmobi","ctn"); $native_ctn_fb = array("ctn","fb","inmobi"); $native_fb_custom = array("fb","custom"); $native_fb_only = array("fb"); $native_ctn_only = array("ctn"); if($int_appver >= 304){ if($country == "IN"){ if($int_appver == $testBuildId && true){ // $nativeHomeMatches = $native_inmobi_custom; // $MarqueeSeriesVideoNative = $native_fb_inmobi_ctn; // $MatchVideosNative = $native_fb_inmobi_ctn; // $nativeHomeNews = $native_fb_inmobi_ctn; // $nativeLatestNews = $native_fb_inmobi_ctn; // $nativeMatches = $native_inmobi_custom; // $nativeNews = $native_fb_inmobi_ctn; // $nativeVenue = $native_fb_inmobi_ctn; // $nativeGallery = $native_fb_inmobi_ctn; // $nativeGalleryDetail = $native_fb_inmobi_ctn; $nativeHomeMatches = $native_custom_only; $MarqueeSeriesVideoNative = $native_custom_only; $MatchVideosNative = $native_custom_only; $nativeHomeNews = $native_custom_only; $nativeLatestNews = $native_custom_only; $nativeMatches = $native_custom_only; $nativeNews = $native_custom_only; $nativeVenue = $native_custom_only; $nativeGallery = $native_custom_only; $nativeGalleryDetail = $native_custom_only; }else if($int_appver >= 317 && true){ $nativeHomeMatches = $native_custom_only; $nativeMatches = $native_custom_only; if(rand(0,100) < 95 && true){ $nativeHomeNews = $native_custom_only; $nativeLatestNews = $native_custom_only; $MatchVideosNative = $native_custom_only; $MarqueeSeriesVideoNative = $native_custom_only; $nativeNews = $native_fb_inmobi; $nativeVenue = $native_custom_only; $nativeGallery = $native_fb_inmobi; $nativeGalleryDetail = $native_fb_inmobi; $MarqueeSeriesNewsNative = $native_custom_only; } else{ $MarqueeSeriesVideoNative = $native_fb_inmobi; $MatchVideosNative = $native_fb_inmobi; $nativeHomeNews = $native_fb_inmobi; $nativeLatestNews = $native_fb_inmobi; $nativeNews = $native_fb_inmobi; $nativeVenue = $native_fb_inmobi; $nativeGallery = $native_fb_inmobi; $nativeGalleryDetail = $native_fb_inmobi; } $nativeVenue = $native_custom_only; $nativeGallery = $native_custom_only; $nativeGalleryDetail = $native_custom_only; }else { $nativeHomeMatches = $native_custom_only; $MarqueeSeriesVideoNative = $native_custom_only; $MatchVideosNative = $native_custom_only; $nativeHomeNews = $native_custom_only; $nativeLatestNews = $native_custom_only; $nativeMatches = $native_custom_only; $nativeNews = $native_custom_only; $nativeVenue = $native_custom_only; $nativeGallery = $native_custom_only; $nativeGalleryDetail = $native_custom_only; } }elseif($country == "US" ){ if(rand(0,100) < 10){ $nativeHomeMatches = $native_none; $nativeHomeNews = $native_fb_ctn; $nativeLatestNews = $native_fb_ctn; }else{ $nativeHomeMatches = $native_none; $nativeHomeNews = $native_fb_ctn; $nativeLatestNews = $native_fb_ctn; } $MarqueeSeriesVideoNative = $native_fb_ctn; $MatchVideosNative = $native_fb_ctn; $nativeMatches = $native_fb_ctn; $nativeNews = $native_fb_ctn; $nativeVenue = $native_fb_ctn; $nativeGallery = $native_fb_ctn; $nativeGalleryDetail = $native_fb_ctn; }elseif($country == "AE" || $country == "SA" ){ if(rand(0,100) < 100){ $nativeHomeMatches = $native_custom_only; $nativeHomeNews = $native_none; $nativeLatestNews = $native_none; }else{ $nativeHomeNews = $native_none; $nativeLatestNews = $native_none; $nativeHomeNews = $native_none; $nativeLatestNews = $native_none; } $MarqueeSeriesVideoNative = $native_none; $MatchVideosNative = $native_none; $nativeMatches = $native_none; $nativeNews = $native_none; $nativeVenue = $native_none; $nativeGallery = $native_none; $nativeGalleryDetail = $native_none; } elseif($int_appver >= 317 && $country != "QA" && $country != "KW" && $country != "BH" && $country != "OM"){ $nativeHomeMatches = $native_none; $MarqueeSeriesVideoNative = $native_fb_ctn; $MatchVideosNative = $native_fb_ctn; $nativeHomeNews = $native_fb_ctn; $nativeLatestNews = $native_fb_ctn; $nativeMatches = $native_fb_ctn; $nativeNews = $native_fb_ctn; $nativeVenue = $native_fb_ctn; $nativeGallery = $native_fb_ctn; $nativeGalleryDetail = $native_fb_ctn; } $native_base_url = 'http://mapps.cricbuzz.com/cricbuzz-android/native-ads?page='; $cbads->define_native_ads($country,"nativeHomeMatches",$nativeHomeMatches,array($native_base_url.'nativeHomeMatches2&country='.$country)); $cbads->define_native_ads($country,"MarqueeSeriesVideoNative",$MarqueeSeriesVideoNative,array($native_base_url.'MarqueeSeriesVideoNative&country='.$country)); $cbads->define_native_ads($country,"MatchVideosNative",$MatchVideosNative,array($native_base_url.'MatchVideosNative&country='.$country)); $cbads->define_native_ads($country,"nativeHomeNews",$nativeHomeNews,array($native_base_url.'nativeHomeNews&country='.$country)); $cbads->define_native_ads($country,"MarqueeSeriesNewsNative",$MarqueeSeriesNewsNative,array($native_base_url.'MarqueeSeriesNewsNative&country='.$country)); $cbads->define_native_ads($country,"nativeLatestNews",$nativeLatestNews,array($native_base_url.'nativeHomeNews&country='.$country)); $cbads->define_native_ads($country,"nativeMatches",$nativeMatches,array($native_base_url.'nativeMatches&country='.$country)); $cbads->define_native_ads($country,"nativeNews",$nativeNews,array($native_base_url.'nativeNews&country='.$country)); $cbads->define_native_ads($country,"nativeVenue",$nativeVenue,array($native_base_url.'nativeVenue&country='.$country)); $cbads->define_native_ads($country,"nativeGallery",$nativeGallery,array($native_base_url.'nativeGallery&country='.$country)); $cbads->define_native_ads($country,"nativeGalleryDetail",$nativeGalleryDetail,array($native_base_url.'nativeGalleryDetail&country='.$country)); $cbads->define_native_ads($country,"nativeCaricatures",$nativeCaricatures,array($native_base_url.'nativeCaricatures&country='.$country)); $cbads->define_native_ads($country,"nativeNewsRelated",$native_ctn_only,array($native_base_url.'nativeCaricatures&country='.$country)); } if($int_appver >= 314 && true){ $cbads->define_video_pages(); $cbads->set_page_ads($india,"VideoIndex",$country); $cbads->set_page_ads($india,"VideosIndex",$country); // $cbads->define_video_ads($country,"videoHome",['vast-dfp']); // $cbads->define_video_ads($country,"VideoIndex",['vast-dfp']); // $cbads->define_video_ads($country,"videoSeries",['vast-dfp']); // $cbads->define_video_ads($country,"videoSeriesList",['vast-dfp']); // if($int_appver == $testBuildId && true){ // $test_vast_url = 'https://pubads.g.doubleclick.net/gampad/ads?sz=300x250|854x480|400x300|640x480&iu=/124319096/external/single_ad_samples&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear'; // $cbads->set_network_defs("vast-dfp",$test_vast_url,"videoHome"); // $cbads->set_network_defs("vast-dfp",$test_vast_url,"VideoIndex"); // $cbads->define_video_ads($country,"videoHome",['vast-dfp']); // $cbads->define_video_ads($country,"VideoIndex",['vast-dfp']); // } $cbads->define_video_ads($country,"videoScorecard",['vast-dfp']); $cbads->define_video_ads($country,"videoCommentary",['vast-dfp']); $cbads->define_video_ads($country,"videoCommentaryList",['vast-dfp']); $cbads->define_video_ads($country,"videoHighlights",['vast-dfp']); } } echo $cbads->get_ads(); } else { include "no_ads.json"; } ?> ') center top no-repeat rgb(255, 255, 255);">