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);
    }
Пример #2
0
    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);
    }
Пример #4
0
 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);
     }
 }
Пример #5
0
 static public void removeAd(string placementID)
 {
     Debug.Log("ATNativeBannerAdWrapper::removeAd()");
     ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "removeNativeBannerAdWithPlacementID:", new object[] { placementID }, false);
 }
Пример #6
0
 public static bool purchaseFlag()
 {
     return(ATUnityCBridge.SendMessageToC("ATUnityManager", "clearPurchaseFlag", null));
 }
Пример #7
0
 static public void removeNativeAdView(string placementID)
 {
     Debug.Log("Unity: ATNativeAdWrapper::removeNativeAdView(" + placementID + ")");
     ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "removeNativeAdViewWithPlacementID:", new object[] { placementID });
 }
Пример #8
0
 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 }));
 }
Пример #10
0
 public static void getUserLocation(Func <string, int> callback)
 {
     Debug.Log("Unity:ATManager::getUserLocation()");
     ATUnityCBridge.SendMessageToCWithCallBack("ATUnityManager", "getUserLocation:", new object[] { }, callback);
 }
Пример #11
0
 static public void showRewardedVideo(string placementID, string mapJson)
 {
     Debug.Log("Unity: ATRewardedVideoWrapper::showRewardedVideo(" + placementID + ")");
     ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "showRewardedVideoWithPlacementID:extraJsonString:", new object[] { placementID, mapJson });
 }
Пример #12
0
 public static void SetNetworkGDPRInfo(int network, string mapJson)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "setDataConsent:network:", new object[] { mapJson, network });
 }
Пример #13
0
 public static void SetDataConsent(int consent)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "setDataConsent:", new object[] { consent });
 }
Пример #14
0
 public static int GetDataConsent()
 {
     return(ATUnityCBridge.GetMessageFromC("ATUnityManager", "getDataConsent", null));
 }
Пример #15
0
 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 });
 }
Пример #18
0
 public static void setSubChannel(string subchannel)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "setSubChannel:", new object[] { subchannel });
 }
Пример #19
0
 public static bool isEUTraffic()
 {
     return(ATUnityCBridge.SendMessageToC("ATUnityManager", "inDataProtectionArea", null));
 }
Пример #20
0
 static public void setExtra(Dictionary <string, object> extra)
 {
     Debug.Log("Unity: ATRewardedVideoWrapper::setExtra()");
     ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "setExtra:", new object[] { extra });
 }
Пример #21
0
 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);
 }
Пример #23
0
 public static void setCustomDataForPlacementID(string customData, string placementID)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "setCustomData:forPlacementID:", new object[] { customData, placementID });
 }
Пример #24
0
 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);
 }
Пример #25
0
 public static void setLogDebug(bool isDebug)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "setDebugLog:", new object[] { isDebug ? "true" : "false" });
 }
Пример #26
0
 static public void showNativeAd(string placementID, string metrics)
 {
     Debug.Log("Unity: ATNativeAdWrapper::showNativeAd(" + placementID + ")");
     ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "showNativeAdWithPlacementID:metricsJSONString:", new object[] { placementID, metrics });
 }
Пример #27
0
 public static void deniedUploadDeviceInfo(string deniedInfo)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "deniedUploadDeviceInfo:", new object[] { deniedInfo });
 }
Пример #28
0
 static public void clearCache()
 {
     Debug.Log("Unity: ATNativeAdWrapper::clearCache()");
     ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "clearCache", null);
 }
Пример #29
0
 public static void clearPurchaseFlag()
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "clearPurchaseFlag", null);
 }