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
↧