Exemplo n.º 1
0
    /*******************admob ads *******************/

    void initAdmob()
    {
        ad = Admob.Instance();
        ad.bannerEventHandler        += onBannerEvent;
        ad.interstitialEventHandler  += onInterstitialEvent;
        ad.rewardedVideoEventHandler += onRewardedVideoEvent;
        ad.nativeBannerEventHandler  += onNativeBannerEvent;
        //ad.setTesting(true);


        ad.initAdmob(admob_bannerID, admob_interstitialID_fy);                        //all id are admob test id,change those to your

        ad.loadInterstitial();

        //ad.setTesting(true);//show test ad
        ad.setGender(AdmobGender.MALE);
        string[] keywords = { "game", "crash", "male game" };
        //  ad.setKeywords(keywords);//set keywords for ad
        Debug.Log("admob inited -------------");

        //	Admob.Instance().showBannerAbsolute(AdSize.Banner, 20, 300);
        //1111 if(PlayerPrefs.GetInt("noAds",0) != 1)
        //          ad.showBannerRelative(new AdSize(220,50), AdPosition.TOP_CENTER,0);



        loadRewardAds();
    }
Exemplo n.º 2
0
 public void ShowBanner()
 {
     ad.initAdmob("ca-app-pub-6319110362714674/8855868924", "ca-app-pub-6319110362714674~2847782205");
     //ad.bannerEventHandler += onBannerEvent;
     //ad.rewardedVideoEventHandler += onRewardedVideoEvent;
     ad.setTesting(true);
     ad.setGender(AdmobGender.MALE);
     Admob.Instance().showBannerRelative(AdSize.SmartBanner, AdPosition.BOTTOM_CENTER, 0);
 }
Exemplo n.º 3
0
 void initAdmob()
 {
     ad = Admob.Instance();
     ad.rewardedVideoEventHandler += onRewardedVideoEvent;
     ad.interstitialEventHandler  += onInterstitialEvent;
     //ca-app-pub-5547105749855252~7626858520
     ad.initAdmob("", "");//all id are admob test id,change those to your
     ad.setGender(AdmobGender.MALE);
     Debug.Log("admob inited -------------");
 }
Exemplo n.º 4
0
 void InitAdmob()
 {
     _ad = Admob.Instance();
     _ad.interstitialEventHandler  += OnInterstitialEvent;
     _ad.rewardedVideoEventHandler += OnRewardedVideoEvent;
     _ad.initAdmob("ca-app-pub-3940256099942544/2934735716", "ca-app-pub-3940256099942544/4411468910");//all id are admob test id,change those to your
     _ad.loadRewardedVideo("ca-app-pub-3940256099942544/1712485313");
     //ad.setTesting(true);//show test ad
     _ad.setGender(AdmobGender.MALE);
     //string[] keywords = { "game", "crash", "male game" };
     //  ad.setKeywords(keywords);//set keywords for ad
     Debug.Log("admob inited -------------");
 }
Exemplo n.º 5
0
 void initAdmob()
 {
     ad = Admob.Instance();
     ad.bannerEventHandler        += onBannerEvent;
     ad.interstitialEventHandler  += onInterstitialEvent;
     ad.rewardedVideoEventHandler += onRewardedVideoEvent;
     ad.nativeBannerEventHandler  += onNativeBannerEvent;
     ad.initAdmob("ca-app-pub-3940256099942544/2934735716", "ca-app-pub-3940256099942544/4411468910"); //all id are admob test id,change those to your
                                                                                                       //ad.setTesting(true);//show test ad
     ad.setGender(AdmobGender.MALE);
     //string[] keywords = { "game", "crash", "male game" };
     //  ad.setKeywords(keywords);//set keywords for ad
     Debug.Log("admob inited -------------");
 }
 void initAdmob()
 {
     //  isAdmobInited = true;
     ad = Admob.Instance();
     ad.bannerEventHandler        += onBannerEvent;
     ad.interstitialEventHandler  += onInterstitialEvent;
     ad.rewardedVideoEventHandler += onRewardedVideoEvent;
     ad.initAdmob("ca-app-pub-3076192958641421/3391964194", "ca-app-pub-3076192958641421/4868697393");
     //   ad.setTesting(true);
     ad.setGender(AdmobGender.MALE);
     string[] keywords = { "game", "crash", "male game" };
     ad.setKeywords(keywords);
     Debug.Log("admob inited -------------");
 }
Exemplo n.º 7
0
 void initAdmob()
 {
     ad = Admob.Instance();
     ad.bannerEventHandler        += onBannerEvent;
     ad.interstitialEventHandler  += onInterstitialEvent;
     ad.rewardedVideoEventHandler += onRewardedVideoEvent;
     ad.nativeBannerEventHandler  += onNativeBannerEvent;
     ad.initAdmob(adBannerId, adInterstitialId); //all id are admob test id,change those to your
     ad.setTesting(true);                        //show test ad
     ad.setGender(AdmobGender.MALE);
     string[] keywords = { "game", "crash", "male game" };
     //  ad.setKeywords(keywords);//set keywords for ad
     Debug.Log("admob inited -------------");
 }
Exemplo n.º 8
0
 //bool isAdmobInited = false;
 void initAdmob()
 {
     //  isAdmobInited = true;
     ad = Admob.Instance();
     ad.bannerEventHandler        += onBannerEvent;
     ad.interstitialEventHandler  += onInterstitialEvent;
     ad.rewardedVideoEventHandler += onRewardedVideoEvent;
     ad.nativeBannerEventHandler  += onNativeBannerEvent;
     ad.initAdmob("ca-app-pub-3940256099942544/2934735716", "ca-app-pub-3940256099942544/4411468910");
     //   ad.setTesting(true);
     ad.setGender(AdmobGender.MALE);
     string[] keywords = { "game", "crash", "male game" };
     ad.setKeywords(keywords);
     Debug.Log("admob inited -------------");
 }
Exemplo n.º 9
0
 //bool isAdmobInited = false;
 void initAdmob()
 {
     //  isAdmobInited = true;
     ad = Admob.Instance();
     // ad.bannerEventHandler += onBannerEvent;
     // ad.interstitialEventHandler += onInterstitialEvent;
     //ad.rewardedVideoEventHandler += onRewardedVideoEvent;
     //ad.nativeBannerEventHandler += onNativeBannerEvent;
     ad.initAdmob("ca-app-pub-8725679997372244/4435644010", "ca-app-pub-8725679997372244/8865843613");
     //   ad.setTesting(true);
     ad.setGender(AdmobGender.MALE);
     string[] keywords = { "game", "crash", "male game" };
     ad.setKeywords(keywords);
     Debug.Log("admob inited -------------");
 }