static public void showBannerAd(string placementID, string position, string mapJson) { Debug.Log("Unity: ATBannerAdWrapper::showBannerAd(" + placementID + "," + position + ")"); Dictionary <string, object> rectDict = new Dictionary <string, object> { { "position", position } }; ATUnityCBridge.SendMessageToC(CMessaageReceiverClass, "showBannerAdWithPlacementID:rect:extraJsonString:", new object[] { placementID, Json.Serialize(rectDict), mapJson }, false); }
static public void showAd(string placementID, ATRect rect, Dictionary <string, string> pairs) { Debug.Log("ATNativeBannerAdWrapper::showAd()"); Dictionary <string, object> rectDict = new Dictionary <string, object> { { "x", rect.x }, { "y", rect.y }, { "width", rect.width }, { "height", rect.height } }; ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "showNativeBannerAdWithPlacementID:rect:extra:", new object[] { placementID, Json.Serialize(rectDict), Json.Serialize(pairs != null ? pairs : new Dictionary <string, string>()) }, false); }
static public void showBannerAd(string placementID, ATRect rect, string mapJson) { Debug.Log("Unity: ATBannerAdWrapper::showBannerAd(" + placementID + ")"); Dictionary <string, object> rectDict = new Dictionary <string, object> { { "x", rect.x }, { "y", rect.y }, { "width", rect.width }, { "height", rect.height }, { "uses_pixel", rect.usesPixel } }; ATUnityCBridge.SendMessageToC(CMessaageReceiverClass, "showBannerAdWithPlacementID:rect:extraJsonString:", new object[] { placementID, Json.Serialize(rectDict), mapJson }, false); }
public static bool StartSDK(string appID, string appKey) { Debug.Log("Unity: ATManager::StartSDK(" + appID + "," + appKey + ")"); if (!SDKStarted) { Debug.Log("Has not been started before, will starting SDK"); SDKStarted = true; return(ATUnityCBridge.SendMessageToC("ATUnityManager", "startSDKWithAppID:appKey:", new object[] { appID, appKey })); } else { Debug.Log("SDK has been started already, ignore this call"); return(false); } }
static public void removeAd(string placementID) { Debug.Log("ATNativeBannerAdWrapper::removeAd()"); ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "removeNativeBannerAdWithPlacementID:", new object[] { placementID }, false); }
public static bool purchaseFlag() { return(ATUnityCBridge.SendMessageToC("ATUnityManager", "clearPurchaseFlag", null)); }
static public void removeNativeAdView(string placementID) { Debug.Log("Unity: ATNativeAdWrapper::removeNativeAdView(" + placementID + ")"); ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "removeNativeAdViewWithPlacementID:", new object[] { placementID }); }
static public bool isNativeAdReady(string placementID) { Debug.Log("Unity: ATNativeAdWrapper::isNativeAdReady(" + placementID + ")"); return(ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "isNativeAdReadyForPlacementID:", new object[] { placementID })); }
static public string checkAdStatus(string placementID) { Debug.Log("Unity: ATInterstitialAdWrapper::checkAdStatus(" + placementID + ")"); return(ATUnityCBridge.GetStringMessageFromC(CMessaageReceiverClass, "checkAdStatus:", new object[] { placementID })); }
public static void getUserLocation(Func <string, int> callback) { Debug.Log("Unity:ATManager::getUserLocation()"); ATUnityCBridge.SendMessageToCWithCallBack("ATUnityManager", "getUserLocation:", new object[] { }, callback); }
static public void showRewardedVideo(string placementID, string mapJson) { Debug.Log("Unity: ATRewardedVideoWrapper::showRewardedVideo(" + placementID + ")"); ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "showRewardedVideoWithPlacementID:extraJsonString:", new object[] { placementID, mapJson }); }
public static void SetNetworkGDPRInfo(int network, string mapJson) { ATUnityCBridge.SendMessageToC("ATUnityManager", "setDataConsent:network:", new object[] { mapJson, network }); }
public static void SetDataConsent(int consent) { ATUnityCBridge.SendMessageToC("ATUnityManager", "setDataConsent:", new object[] { consent }); }
public static int GetDataConsent() { return(ATUnityCBridge.GetMessageFromC("ATUnityManager", "getDataConsent", null)); }
public static void ShowGDPRAuthDialog() { ATUnityCBridge.SendMessageToC("ATUnityManager", "presentDataConsentDialog", null); }
static public void showBannerAd(string placementID) { Debug.Log("Unity: ATBannerAdWrapper::showBannerAd(" + placementID + ")"); ATUnityCBridge.SendMessageToC(CMessaageReceiverClass, "showBannerAdWithPlacementID:", new object[] { placementID }, false); }
static public void showInterstitialAd(string placementID, string mapJson) { Debug.Log("Unity: ATInterstitialAdWrapper::showInterstitialAd(" + placementID + ")"); ATUnityCBridge.SendMessageToC(CMessaageReceiverClass, "showInterstitialAdWithPlacementID:extraJsonString:", new object[] { placementID, mapJson }); }
public static void setSubChannel(string subchannel) { ATUnityCBridge.SendMessageToC("ATUnityManager", "setSubChannel:", new object[] { subchannel }); }
public static bool isEUTraffic() { return(ATUnityCBridge.SendMessageToC("ATUnityManager", "inDataProtectionArea", null)); }
static public void setExtra(Dictionary <string, object> extra) { Debug.Log("Unity: ATRewardedVideoWrapper::setExtra()"); ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "setExtra:", new object[] { extra }); }
public static void setCustomMap(string jsonMap) { ATUnityCBridge.SendMessageToC("ATUnityManager", "setCustomData:", new object[] { jsonMap }); }
static public void clearCache(string placementID) { Debug.Log("Unity: ATInterstitialAdWrapper::clearCache()"); ATUnityCBridge.SendMessageToC(CMessaageReceiverClass, "clearCache", null); }
public static void setCustomDataForPlacementID(string customData, string placementID) { ATUnityCBridge.SendMessageToC("ATUnityManager", "setCustomData:forPlacementID:", new object[] { customData, placementID }); }
static public void loadNativeAd(string placementID, string customData) { Debug.Log("Unity: ATNativeAdWrapper::loadNativeAd(" + placementID + ")"); ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "loadNativeAdWithPlacementID:customDataJSONString:callback:", new object[] { placementID, customData != null ? customData : "" }, true); }
public static void setLogDebug(bool isDebug) { ATUnityCBridge.SendMessageToC("ATUnityManager", "setDebugLog:", new object[] { isDebug ? "true" : "false" }); }
static public void showNativeAd(string placementID, string metrics) { Debug.Log("Unity: ATNativeAdWrapper::showNativeAd(" + placementID + ")"); ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "showNativeAdWithPlacementID:metricsJSONString:", new object[] { placementID, metrics }); }
public static void deniedUploadDeviceInfo(string deniedInfo) { ATUnityCBridge.SendMessageToC("ATUnityManager", "deniedUploadDeviceInfo:", new object[] { deniedInfo }); }
static public void clearCache() { Debug.Log("Unity: ATNativeAdWrapper::clearCache()"); ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "clearCache", null); }
public static void clearPurchaseFlag() { ATUnityCBridge.SendMessageToC("ATUnityManager", "clearPurchaseFlag", null); }