public void notifyNativeRequestResponse(String body) { TraxnetNativeBannerAd result = new TraxnetNativeBannerAd(); result = JsonUtility.FromJson <TraxnetNativeBannerAd> (body); Debug.Log("notifyNativeRequestResponse:" + result.zoneId); TraxnetPlus.onNativeRequestResponse(result); }
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); }); }
public void Request() { TraxnetPlus.requestRewardedVideo(ZONE_ID, (string zoneId) => { Debug.Log("on response " + zoneId); }, (TraxnetError error) => { Debug.Log("Error " + error.message); } ); }
public void Request() { TraxnetPlus.requestNativeBanner(this, ZONE_ID, (TraxnetNativeBannerAd result) => { Debug.Log("on response"); NativeBannerScene.nativeAd = result; }, (TraxnetError error) => { Debug.Log("Error " + error.message); } ); }
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); }); }
public void notifyRequestResponse(String zoneId) { Debug.Log("notifyRequestResponse:" + zoneId); TraxnetPlus.onRequestResponse(zoneId); }
public void notifyReward(String zoneId) { Debug.Log("notifyReward:" + zoneId); TraxnetPlus.onReward(zoneId); }
public void notifyAdClosed(String zoneId) { Debug.Log("notifyAdClosed:" + zoneId); TraxnetPlus.onCloseAd(zoneId); }
public void notifyAdOpened(String zoneId) { Debug.Log("notifyAdOpened:" + zoneId); TraxnetPlus.onOpenAd(zoneId); }
public void hide() { TraxnetPlus.hideBanner(); }
void Start() { TraxnetPlus.initialize(TRAXNET_PLUS_KEY); }