/// <summary>
 /// Initializing Plugin with values
 /// </summary>
 /// <param name="pubID">Admob App ID</param>
 /// <param name="advSize">Advertisement Size</param>
 /// <param name="advOrient">Advertisement Orientation</param>
 /// <param name="position_1">Advertisement First Position</param>
 /// <param name="position_2">Advertisement Second Position</param>
 /// <param name="isTesting">Flag for testing game/app</param>
 /// <param name="testDeviceId">Test Device Id</param>
 /// <param name="animIn">Animation IN Type</param>
 /// <param name="animOut">Animation OUT Type</param>
 /// <param name="levelOfDebug">Debug Level</param>
 public static void Instantiate(string pubID, AdvSize advSize, AdvOrientation advOrient, Position position_1, Position position_2, bool isTesting, string testDeviceId, AnimationInType animIn, AnimationOutType animOut, LevelOfDebug levelOfDebug)
 {
     Debug.Log("Instantiate Called");
     admobPluginClass = new AndroidJavaClass("com.microeyes.admob.AdmobActivity");
     unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
     currActivity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity");
     admobPluginClass.CallStatic("AdvHandler", (int)Activity.INSTANTIATE, currActivity, pubID, (int)advSize, (int)advOrient, (int)position_1, (int)position_2, isTesting, testDeviceId, (int)animIn, (int)animOut, (int)levelOfDebug);
     Debug.Log("Instantiate FINISHED");
 }
Exemple #2
0
 /// <summary>
 /// Initializing Plugin with values
 /// </summary>
 /// <param name="pubID">Admob App ID</param>
 /// <param name="advSize">Advertisement Size</param>
 /// <param name="advOrient">Advertisement Orientation</param>
 /// <param name="position_1">Advertisement First Position</param>
 /// <param name="position_2">Advertisement Second Position</param>
 /// <param name="isTesting">Flag for testing game/app</param>
 /// <param name="testDeviceId">Test Device Id</param>
 /// <param name="animIn">Animation IN Type</param>
 /// <param name="animOut">Animation OUT Type</param>
 /// <param name="levelOfDebug">Debug Level</param>
 public static void Instantiate(string pubID, AdvSize advSize, AdvOrientation advOrient, Position position_1, Position position_2, bool isTesting, string testDeviceId, AnimationInType animIn, AnimationOutType animOut, LevelOfDebug levelOfDebug)
 {
     Debug.Log("Instantiate Called");
     admobPluginClass = new AndroidJavaClass("com.microeyes.admob.AdmobActivity");
     unityPlayer      = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
     currActivity     = unityPlayer.GetStatic <AndroidJavaObject>("currentActivity");
     admobPluginClass.CallStatic("AdvHandler", (int)Activity.INSTANTIATE, currActivity, pubID, (int)advSize, (int)advOrient, (int)position_1, (int)position_2, isTesting, testDeviceId, (int)animIn, (int)animOut, (int)levelOfDebug);
     Debug.Log("Instantiate FINISHED");
 }