Esempio n. 1
0
    public void initSDK()
    {
//		DebugConsole.Log ("init sdk");
        Debug.Log("Developer Version of the runtime: " + Application.unityVersion);
        Debug.Log("Developer init sdk");
        Debug.Log(" Developer Screen size : {" + Screen.width + ", " + Screen.height + "}");
        ATSDKAPI.setChannel("unity3d_test_channel");
        ATSDKAPI.setSubChannel("unity3d_test_Subchannel");
        ATSDKAPI.initCustomMap(new Dictionary <string, string> {
            { "unity3d_data", "test_data" }
        });
        ATSDKAPI.setCustomDataForPlacementID(new Dictionary <string, string> {
            { "unity3d_data_pl", "test_data_pl" }
        }, "b5b728e7a08cd4");
        ATSDKAPI.setLogDebug(true);

        Debug.Log("Developer DataConsent: " + ATSDKAPI.getGDPRLevel());
        Debug.Log("Developer isEUTrafic: " + ATSDKAPI.isEUTraffic());

        ATSDKAPI.getUserLocation(new GetLocationListener());


#if UNITY_ANDROID
        ATSDKAPI.initSDK("a5aa1f9deda26d", "4f7b9ac17decb9babec83aac078742c7", new InitListener());
#elif UNITY_IOS || UNITY_IPHONE
        ATSDKAPI.initSDK("a5b0e8491845b3", "7eae0567827cfe2b22874061763f30c9", new InitListener());
        // ATSDKAPI.initSDK("a5e81de0f9beec", "98afd4bbc12d3cae38d6a1a48b593c5d", new InitListener());
#endif
    }
Esempio n. 2
0
 public void didGetUserLocation(int location)
 {
     Debug.Log("Developer callback didGetUserLocation(): " + location);
     if (location == ATSDKAPI.kATUserLocationInEU && ATSDKAPI.getGDPRLevel() == ATSDKAPI.UNKNOWN)
     {
         ATSDKAPI.showGDPRAuth();
     }
 }
Esempio n. 3
0
    public void loadVideo()
    {
        if (callbackListener == null)
        {
            callbackListener = new ATCallbackListener();
            Debug.Log("Developer init video....placementId:" + mPlacementId_rewardvideo_all);
            ATRewardedVideo.Instance.setListener(callbackListener);
        }

        ATSDKAPI.setCustomDataForPlacementID(new Dictionary <string, string> {
            { "placement_custom_key", "placement_custom" }
        }, mPlacementId_rewardvideo_all);

        Dictionary <string, string> jsonmap = new Dictionary <string, string>();

        jsonmap.Add(ATConst.USERID_KEY, "test_user_id");
        jsonmap.Add(ATConst.USER_EXTRA_DATA, "test_user_extra_data");


        ATRewardedVideo.Instance.loadVideoAd(mPlacementId_rewardvideo_all, jsonmap);
    }
Esempio n. 4
0
    public void showGDPRAuth()
    {
        Debug.Log("Developer showGDPRAuth");

        ATSDKAPI.showGDPRAuth();
    }