// 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(); }
// 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); }
// 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); }
// 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); }