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);
 }