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