Quantcast
Channel: Questions in topic: "ads"
Viewing all articles
Browse latest Browse all 1416

Why my ads is not visible on final build just in editor?

$
0
0
I have some ads on my game like reward video and interstitial video Reward video needs to play when i pres the +20k money button and interstitial when you select a car. In editor everything works perfect but in build nothing work I tried all methods that i find on the internet but is the same problem. interstitial ad : public string mySurfacingId = "Interstitial"; string gameId = "4****9"; bool testMode = false; void Start() { // Initialize the Ads service: Advertisement.Initialize(gameId); } public void ShowInterstitialAd() { // Check if UnityAds ready before calling Show method: if (Advertisement.IsReady()) { Advertisement.Show(mySurfacingId); // Replace mySurfacingId with the ID of the placements you wish to display as shown in your Unity Dashboard. } else { Debug.Log("Interstitial ad not ready at the moment! Please try again later!"); } } video reward : private string gameId = "4****9"; Button myButton; public string mySurfacingId = "rewardedVideo"; public MoneyMNG Money; public bool testMode; void Start() { myButton = GetComponent

Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>