public void HandlePlacementRequestSuccess(TJPlacement placement) { if (placement.IsContentAvailable ()) { Debug.Log ("C#: Content available for " + placement.GetName ()); } else { Debug.Log ("C#: No content available for " + placement.GetName ()); } }
private void RemovePlacement(TJPlacement placement) { if (!this._placementDic.ContainsKey(placement.GetName())) { return; } this._placementDic.Remove(placement.GetName()); }
public void HandlePlacementContentShow(TJPlacement placement) { if (placement.GetName() == "Video") { loadingSpriteUI.enabled = false; } }
public void HandlePlacementRequestSuccess(TJPlacement placement) { Debug.Log("C#: Content available for " + placement.GetName()); if (placement.GetName() == "Ad_Video") { videoReady = true; } else if (placement.GetName() == "InterSticial") { IntterAdReady = true; } else { offerReady = true; } }
public void HandlePlacementRequestFailure(TJPlacement placement, string error) { if (placement.GetName() == "Video") { uiVideoLabel.text = "Ошибка запроса\n(видео)"; loadingSpriteUI.enabled = false; } }
public void HandlePlacementContentDismiss(TJPlacement placement) { if (placement.GetName() == "Video") { uiVideoLabel.text = "Контент не загружен\n(видео)"; loadingSpriteUI.enabled = false; } }
public void HandlePlacementRequestSuccess(TJPlacement placement) { if (placement.IsContentAvailable()) { placement.ShowContent(); } else { MyLog.D("C#: No content available for " + placement.GetName()); } }
public void HandlePlacementContentReady(TJPlacement placement) { if (placement.GetName() == "Video") { if (placement.IsContentAvailable()) { uiVideoLabel.text = "Видео(загружено)\n+200 руб"; } else { uiVideoLabel.text = "Нет контента\n(видео)"; } loadingSpriteUI.enabled = false; } }
public void HandlePlacementRequestSuccess(TJPlacement placement) { if (placement.GetName() == "Video") { if (placement.IsContentAvailable()) { uiVideoLabel.text = "Смотреть видео\n+200 руб"; } else { uiVideoLabel.text = "Нет контента\n(видео)"; } loadingSpriteUI.enabled = false; } }
/// <summary> /// Checks the placement name and invoke right completed event. /// </summary> /// Called in HandleTJPlacementOnVideoComplete event handler. protected virtual void InvokePlacementCompleteEvent(TJPlacement tjPlacement) { if (mAdSettings == null || tjPlacement == null) { Debug.Log("Null value(s)!!!"); return; } string targetName = tjPlacement.GetName(); /// Check if the tjPlacement is the default interstitial placement. if (mDefaultInterstitialPlacement != null && mDefaultInterstitialPlacement.GetName().Equals(targetName)) { OnInterstitialAdCompleted(AdPlacement.Default); return; } /// Check if the tjPlacement is the default rewarded video placement. if (mDefaultRewaredVideoPlacement != null && mDefaultRewaredVideoPlacement.GetName().Equals(targetName)) { OnRewardedAdCompleted(AdPlacement.Default); return; } /// Check if the tjPlacement is one of loaded custom interstitial ads. AdPlacement adPlacement = GetAdPlacementFromTJPlacement(mCustomInterstitialPlacements, targetName); if (adPlacement != null) { OnInterstitialAdCompleted(adPlacement); return; } /// Check if the tjPlacement is one of loaded custom rewarded video ads. adPlacement = GetAdPlacementFromTJPlacement(mCustomRewardedPlacements, targetName); if (adPlacement != null) { OnRewardedAdCompleted(adPlacement); return; } /// Otherwise Debug.LogWarning("Tried to invoke completed event of an unexpected custom placement. Name: " + targetName); }
public void HandlePlacementRequestSuccess(TJPlacement placement) { if (placement.IsContentAvailable()) { if (placement.GetName() == samplePlacementName) { Debug.Log("C#: Content available for " + placement.GetName()); output = "Content available for " + placement.GetName(); contentIsReadyForPlacement = true; } else if (placement.GetName() == "offerwall_unit") { // Show offerwall immediately placement.ShowContent(); } } else { output = "No content available for " + placement.GetName(); Debug.Log("C#: No content available for " + placement.GetName()); } }
public void HandleVideoComplete(TJPlacement placement) { Debug.Log("C#: HandleVideoComplete for placement " + placement.GetName()); }
public void HandleVideoError(TJPlacement placement, string message) { Debug.Log("C#: HandleVideoError for placement " + placement.GetName() + "with message: " + message); }
public void HandleVideoStart(TJPlacement placement) { Debug.Log("C#: HandleVideoStarted for placement " + placement.GetName()); }
public void HandlePlacementContentDismiss(TJPlacement placement) { Debug.Log ("C#: HandlePlacementContentDismiss"); contentIsReadyForPlacement = false; output = "TJPlacement " + placement.GetName () + " has been dismissed"; }
public void HandlePlacementRequestSuccess(TJPlacement placement) { if (placement.IsContentAvailable ()) { if (placement.GetName () == samplePlacementName) { Debug.Log ("C#: Content available for " + placement.GetName ()); output = "Content available for " + placement.GetName (); contentIsReadyForPlacement = true; } else if (placement.GetName () == "offerwall_unit") { // Show offerwall immediately placement.ShowContent (); } } else { output = "No content available for " + placement.GetName (); Debug.Log ("C#: No content available for " + placement.GetName ()); } }
public void HandlePlacementRequestFailure(TJPlacement placement, string error) { Debug.Log ("C#: HandlePlacementRequestFailure"); Debug.Log ("C#: Request for " + placement.GetName () + " has failed because: " + error); }
public void HandlePlacementRequestSuccess(TJPlacement placement) { this.ShowMessage("Content for " + placement.GetName(), new object[0]); }
public void HandlePlacementRequestFailure(TJPlacement placement, string error) { Debug.Log("C#: HandlePlacementRequestFailure"); Debug.Log("C#: Request for " + placement.GetName() + " has failed because: " + error); output = "Request for " + placement.GetName() + " has failed because: " + error; }
public void HandlePlacementRequestFailure(TJPlacement placement, string error) { this.ShowMessage("C#: HandlePlacementRequestFailure", new object[0]); this.ShowMessage("C#: Request for " + placement.GetName() + " has failed because: " + error, new object[0]); }
public void HandlePlacementRequestFailure(TJPlacement placement, string error) { MyLog.D("C#: HandlePlacementRequestFailure"); MyLog.D("C#: Request for " + placement.GetName() + " has failed because: " + error); }
public void HandlePlacementContentDismiss(TJPlacement placement) { Debug.Log("C#: HandlePlacementContentDismiss"); contentIsReadyForPlacement = false; output = "TJPlacement " + placement.GetName() + " has been dismissed"; }