// Creates a banner public static void createBanner(long placementId, string keys, InMobiAdPosition alignment, int width, int height, int refreshInterval, string keywords = null, Dictionary <string, string> publisherExtra = null) { if (Application.platform != RuntimePlatform.Android) { return; } _plugin.Call("createBanner", (int)alignment, width, height, placementId, refreshInterval, keys, keywords, publisherExtra != null ? Json.Serialize(publisherExtra) : string.Empty); Debug.Log("Ads: createBanner"); }
// Creates a banner public static void createBanner(InMobiAdPosition alignment, string appId, InMobiAdSize adSize, int refreshInterval) { if (Application.platform != RuntimePlatform.Android) { return; } if (refreshInterval > 0 && refreshInterval < 20) { Debug.LogError("refreshInterval cannot be less than 20 seconds. resettting it to 20."); refreshInterval = 20; } _plugin.Call("createBanner", (int)alignment, (int)adSize, appId, refreshInterval); }