Exemple #1
0
    public void notifyNativeRequestResponse(String body)
    {
        TraxnetNativeBannerAd result = new TraxnetNativeBannerAd();

        result = JsonUtility.FromJson <TraxnetNativeBannerAd> (body);
        Debug.Log("notifyNativeRequestResponse:" + result.zoneId);
        TraxnetPlus.onNativeRequestResponse(result);
    }
Exemple #2
0
    public void notifyError(String body)
    {
        TraxnetError error = new TraxnetError();

        error = JsonUtility.FromJson <TraxnetError> (body);
        Debug.Log("notifyError:" + error.zoneId);
        TraxnetPlus.onError(error);
    }
    public void Show()
    {
        TraxnetPlus.showBannerAd(ZONE_ID, BannerType.BANNER_320x50, Gravity.BOTTOM, Gravity.CENTER,

                                 (string zoneId) => {
            Debug.Log("on response " + zoneId);
        },
                                 (TraxnetError error) => {
            Debug.Log("Error " + error.message);
        });
    }
Exemple #4
0
    public void Request()
    {
        TraxnetPlus.requestRewardedVideo(ZONE_ID,

                                         (string zoneId) => {
            Debug.Log("on response " + zoneId);
        },
                                         (TraxnetError error) => {
            Debug.Log("Error " + error.message);
        }
                                         );
    }
Exemple #5
0
    public void Request()
    {
        TraxnetPlus.requestNativeBanner(this, ZONE_ID,

                                        (TraxnetNativeBannerAd result) => {
            Debug.Log("on response");
            NativeBannerScene.nativeAd = result;
        },
                                        (TraxnetError error) => {
            Debug.Log("Error " + error.message);
        }
                                        );
    }
Exemple #6
0
    public void Show()
    {
        TraxnetPlus.showAd(ZONE_ID,

                           (string zoneId) => {
            Debug.Log("onOpenAd " + zoneId);
        },
                           (string zoneId) => {
            Debug.Log("onCloseAd " + zoneId);
        },
                           (string zoneId) => {
            Debug.Log("onReward " + zoneId);
        },
                           (TraxnetError error) => {
            Debug.Log("onError " + error.message);
        });
    }
Exemple #7
0
 public void notifyRequestResponse(String zoneId)
 {
     Debug.Log("notifyRequestResponse:" + zoneId);
     TraxnetPlus.onRequestResponse(zoneId);
 }
Exemple #8
0
 public void notifyReward(String zoneId)
 {
     Debug.Log("notifyReward:" + zoneId);
     TraxnetPlus.onReward(zoneId);
 }
Exemple #9
0
 public void notifyAdClosed(String zoneId)
 {
     Debug.Log("notifyAdClosed:" + zoneId);
     TraxnetPlus.onCloseAd(zoneId);
 }
Exemple #10
0
 public void notifyAdOpened(String zoneId)
 {
     Debug.Log("notifyAdOpened:" + zoneId);
     TraxnetPlus.onOpenAd(zoneId);
 }
 public void hide()
 {
     TraxnetPlus.hideBanner();
 }
Exemple #12
0
 void Start()
 {
     TraxnetPlus.initialize(TRAXNET_PLUS_KEY);
 }