Exemplo n.º 1
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.º 2
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);
     Debug.Log("admob inited -------------");
 }
Exemplo n.º 3
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.º 4
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
#if UNITY_EDITOR
        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
#else
        ad.initAdmob(bannerID, fullID);                                                                   //all id are admob test id,change those to your
#endif

        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
 public static void DoRequestAdmob_FullScreen()
 {
     _pAdmob.loadInterstitial();
     _pAdmob.setTesting(true);
 }