com.guru.unity.max/Amazon/Scripts/Internal/APSBannerAdRequest.cs

87 lines
2.8 KiB
C#
Raw Normal View History

2024-06-24 01:28:57 +00:00
using System;
using UnityEngine;
namespace AmazonAds {
2023-12-26 03:47:44 +00:00
public class APSBannerAdRequest : AdRequest {
2024-06-24 01:28:57 +00:00
public APSBannerAdRequest () : base() {
2023-12-26 03:47:44 +00:00
}
public APSBannerAdRequest (string slotGroupName) : base() {
client.SetSlotGroup (slotGroupName);
}
public APSBannerAdRequest (int width, int height, string uid) : base() {
AdSize size = new AdSize (width, height, uid);
client.SetSizes (size.GetInstance ());
}
public APSBannerAdRequest (AdSize size) {
client.SetSizes (size.GetInstance ());
}
public void LoadSmartBanner () {
if (onSuccess != null && onFailed != null) {
client.LoadSmartBanner (onFailed, onSuccess);
} else if (onSuccess != null && onFailedWithError != null) {
client.LoadSmartBanner (onFailedWithError, onSuccess);
}
}
public void SetSizes (int width, int height, string uid) {
AdSize size = new AdSize (width, height, uid);
SetSizes (size);
}
public void SetSizes (AdSize size) {
client.SetSizes (size.GetInstance ());
}
public void SetSlotGroup (string slotGroupName) {
client.SetSlotGroup (slotGroupName);
}
2024-06-24 01:28:57 +00:00
[Obsolete("This API has been deprecated", false)]
2023-12-26 03:47:44 +00:00
public void SetAutoRefreshAdMob (bool flag, bool isSmartBanner = false) {
2024-06-24 01:28:57 +00:00
Debug.LogError("This API has been deprecated");
2023-12-26 03:47:44 +00:00
}
2024-06-24 01:28:57 +00:00
[Obsolete("This API has been deprecated", false)]
2023-12-26 03:47:44 +00:00
public void SetAutoRefreshMoPub (bool flag, int refreshTime) {
2024-06-24 01:28:57 +00:00
Debug.LogError("This API has been deprecated");
2023-12-26 03:47:44 +00:00
}
2024-06-24 01:28:57 +00:00
[Obsolete("This API has been deprecated", false)]
2023-12-26 03:47:44 +00:00
public void DisposeAd () {
2024-06-24 01:28:57 +00:00
Debug.LogError("This API has been deprecated");
2023-12-26 03:47:44 +00:00
}
2024-06-24 01:28:57 +00:00
[Obsolete("This API has been deprecated", false)]
2023-12-26 03:47:44 +00:00
public void IsAutoRefreshAdMob () {
2024-06-24 01:28:57 +00:00
Debug.LogError("This API has been deprecated");
2023-12-26 03:47:44 +00:00
}
2024-06-24 01:28:57 +00:00
[Obsolete("This API has been deprecated", false)]
2023-12-26 03:47:44 +00:00
public void IsAutoRefreshMoPub () {
2024-06-24 01:28:57 +00:00
Debug.LogError("This API has been deprecated");
2023-12-26 03:47:44 +00:00
}
public string AutoRefreshID () {
return client.AutoRefreshID ();
}
2024-06-24 01:28:57 +00:00
[Obsolete("This API has been deprecated", false)]
2023-12-26 03:47:44 +00:00
public void CreateFetchManager (bool isSmartBanner = false) {
2024-06-24 01:28:57 +00:00
Debug.LogError("This API has been deprecated");
2023-12-26 03:47:44 +00:00
}
2024-06-24 01:28:57 +00:00
[Obsolete("This API has been deprecated", false)]
2023-12-26 03:47:44 +00:00
public void DestroyFetchManager () {
2024-06-24 01:28:57 +00:00
Debug.LogError("The API has been deprecated");
2023-12-26 03:47:44 +00:00
}
2024-06-24 01:28:57 +00:00
[Obsolete("This API has been deprecated", false)]
2023-12-26 03:47:44 +00:00
public void OnApplicationPause (bool isPaused) {
2024-06-24 01:28:57 +00:00
Debug.LogError("This API has been deprecated");
2023-12-26 03:47:44 +00:00
}
}
}