/// <summary> /// 全画面広告のスポットを登録します /// </summary> /// <param name="partnerid">パートナーID</param> /// <param name="mediaid">メディアID</param> /// <param name="spotid">スポットID</param> public static void register(string partnerid, string mediaid, string spotid) { IMobileSpotInfoManager.SetSpotInfo(spotid, partnerid, mediaid); #if UNITY_IPHONE && !UNITY_EDITOR if (Application.platform == RuntimePlatform.IPhonePlayer) { imobileRegisterWithPublisherID_(partnerid, mediaid, spotid); imobileStartBySpotID_(spotid); } #elif UNITY_ANDROID && !UNITY_EDITOR if (Application.platform == RuntimePlatform.Android) { imobileSdkAdsAndroidPlugin.CallStatic("registerFullScreen", partnerid, mediaid, spotid); imobileSdkAdsAndroidPlugin.CallStatic("start", spotid); } #endif }
/// <summary> /// インライン広告のスポットを登録します /// </summary> /// <param name="partnerid">Partnerid.</param> /// <param name="mediaid">Mediaid.</param> /// <param name="spotid">Spotid.</param> public static void registerInline(string partnerid, string mediaid, string spotid) { IMobileSpotInfoManager.SetSpotInfo(spotid, partnerid, mediaid); }