I made a script which reads:
usingUnityEngine;
usingUnityEngine.Advertisements;
publicclassads : MonoBehaviour
{
publicvoidShowAd()
{
if (Advertisement.IsReady())
{
Advertisement.Initialize("MyUnityAdsCode (obviously used the code in the actual script)");
Advertisement.Show();
}
}
}
but in the script I want the advert to show, I coded it like this:
if (other.tag == "tag") {
Advertisement.Show();
}
This is my first time finishing an app and I was just wondering whether that would initialise my code, too. I have already uploaded it but I was checking through codes for another app I’m doing then I thought ah it might not initialise my ads code they way I coded it.
So basically I just wanna know if that will work or if I should update it as soon as it’s passed the review process on app store and processing on android store?
Thanks
