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 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);
    }
Beispiel #3
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);
    }
Beispiel #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);
     }
 }
 static public void showBannerAd(string placementID)
 {
     Debug.Log("Unity: ATBannerAdWrapper::showBannerAd(" + placementID + ")");
     ATUnityCBridge.SendMessageToC(CMessaageReceiverClass, "showBannerAdWithPlacementID:", new object[] { placementID }, false);
 }
Beispiel #6
0
 public static bool purchaseFlag()
 {
     return(ATUnityCBridge.SendMessageToC("ATUnityManager", "clearPurchaseFlag", null));
 }
Beispiel #7
0
 static public void removeNativeAdView(string placementID)
 {
     Debug.Log("Unity: ATNativeAdWrapper::removeNativeAdView(" + placementID + ")");
     ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "removeNativeAdViewWithPlacementID:", new object[] { placementID });
 }
Beispiel #8
0
 static public bool isNativeAdReady(string placementID)
 {
     Debug.Log("Unity: ATNativeAdWrapper::isNativeAdReady(" + placementID + ")");
     return(ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "isNativeAdReadyForPlacementID:", new object[] { placementID }));
 }
 static public void clearCache(string placementID)
 {
     Debug.Log("Unity: ATInterstitialAdWrapper::clearCache()");
     ATUnityCBridge.SendMessageToC(CMessaageReceiverClass, "clearCache", null);
 }
 static public void setExtra(Dictionary <string, object> extra)
 {
     Debug.Log("Unity: ATRewardedVideoWrapper::setExtra()");
     ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "setExtra:", new object[] { extra });
 }
Beispiel #11
0
 public static void setCustomMap(string jsonMap)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "setCustomData:", new object[] { jsonMap });
 }
Beispiel #12
0
 public static void setSubChannel(string subchannel)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "setSubChannel:", new object[] { subchannel });
 }
Beispiel #13
0
 public static void SetNetworkGDPRInfo(int network, string mapJson)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "setDataConsent:network:", new object[] { mapJson, network });
 }
Beispiel #14
0
 public static void SetDataConsent(int consent)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "setDataConsent:", new object[] { consent });
 }
Beispiel #15
0
 public static void ShowGDPRAuthDialog()
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "presentDataConsentDialog", null);
 }
Beispiel #16
0
 public static bool isEUTraffic()
 {
     return(ATUnityCBridge.SendMessageToC("ATUnityManager", "inDataProtectionArea", null));
 }
 static public void showRewardedVideo(string placementID, string mapJson)
 {
     Debug.Log("Unity: ATRewardedVideoWrapper::showRewardedVideo(" + placementID + ")");
     ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "showRewardedVideoWithPlacementID:extraJsonString:", new object[] { placementID, mapJson });
 }
Beispiel #18
0
 public static void setCustomDataForPlacementID(string customData, string placementID)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "setCustomData:forPlacementID:", new object[] { customData, placementID });
 }
 static public void showInterstitialAd(string placementID, string mapJson)
 {
     Debug.Log("Unity: ATInterstitialAdWrapper::showInterstitialAd(" + placementID + ")");
     ATUnityCBridge.SendMessageToC(CMessaageReceiverClass, "showInterstitialAdWithPlacementID:extraJsonString:", new object[] { placementID, mapJson });
 }
Beispiel #20
0
 public static void setLogDebug(bool isDebug)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "setDebugLog:", new object[] { isDebug ? "true" : "false" });
 }
Beispiel #21
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);
 }
Beispiel #22
0
 public static void deniedUploadDeviceInfo(string deniedInfo)
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "deniedUploadDeviceInfo:", new object[] { deniedInfo });
 }
Beispiel #23
0
 static public void showNativeAd(string placementID, string metrics)
 {
     Debug.Log("Unity: ATNativeAdWrapper::showNativeAd(" + placementID + ")");
     ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "showNativeAdWithPlacementID:metricsJSONString:", new object[] { placementID, metrics });
 }
Beispiel #24
0
 static public void removeAd(string placementID)
 {
     Debug.Log("ATNativeBannerAdWrapper::removeAd()");
     ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "removeNativeBannerAdWithPlacementID:", new object[] { placementID }, false);
 }
Beispiel #25
0
 static public void clearCache()
 {
     Debug.Log("Unity: ATNativeAdWrapper::clearCache()");
     ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "clearCache", null);
 }
Beispiel #26
0
 public static void clearPurchaseFlag()
 {
     ATUnityCBridge.SendMessageToC("ATUnityManager", "clearPurchaseFlag", null);
 }