Hey, I have an app that I want to make interstitial advertisement appear when a counter gets to a certain number. I have understood that i need to call these two functions( RequestInterstitial(); And ShowInterstitial() So how do I actually call the function from another script?? What do I need to include to make it work. Thanks in advance for any help
in script of GoogleMobileAdsDemoScript.cs
write this
public static GoogleMobileAdsDemoScript Instance;
void Awake()
{
Instance = this;
}
and drag script GoogleMobileAdsDemoScript.cs on one empty game object in scene.
now go to your script where you want to call full ads and write
GoogleMobileAdsDemoScript .Instance.RequestInterstitial();//this RequestInterstitial must be public method not private