コード例 #1
0
 // Show the GADBannerView on the screen if it's hidden.
 public static void ShowBannerView()
 {
     // Call plugin only when running on real device.
     if (Application.platform == RuntimePlatform.OSXEditor)
     {
         return;
     }
     AdMobMobilePlugin.ShowBannerView();
 }
コード例 #2
0
 // Request a new ad for the GADBannerView.
 public static void RequestBannerAd(bool isTesting, string extras)
 {
     // Call plugin only when running on real device.
     if (Application.platform == RuntimePlatform.OSXEditor)
     {
         return;
     }
     AdMobMobilePlugin.RequestBannerAd(isTesting, extras);
 }
コード例 #3
0
 // Set the name of the callback handler so the right component gets ad callbacks.
 public static void SetCallbackHandlerName(string callbackHandlerName)
 {
     // Call plugin only when running on real device.
     if (Application.platform == RuntimePlatform.OSXEditor)
     {
         return;
     }
     AdMobMobilePlugin.SetCallbackHandlerName(callbackHandlerName);
 }
コード例 #4
0
 // Create a GADBannerView and adds it into the view hierarchy.
 public static void CreateBannerView(string publisherId, AdSize adSize, bool positionAtTop)
 {
     // Call plugin only when running on real device.
     if (Application.platform == RuntimePlatform.OSXEditor)
     {
         return;
     }
     AdMobMobilePlugin.CreateBannerView(publisherId, adSize.ToString(), positionAtTop);
 }