I am not getting an error
I run ads with the given sample test id, but it doesn't work with my admob id
I use genymotion emulator for testing
I uploaded in the google play market ten days ago
private InterstitialAd interstitial;
private void Awake()
{
RequestInterstitial();
StartCoroutine(Show());
}
IEnumerator Show()
{
while (true)
{
yield return new WaitForSeconds(5f);
ShowInterstitial();
}
}
void ShowInterstitial()
{
if (interstitial.IsLoaded())
{
interstitial.Show();
Invoke("RequestInterstitial", 3f);
}
}
private void RequestInterstitial()
{
//test id ca-app-pub-3940256099942544/1033173712
interstitial = new InterstitialAd("*****************************************");
AdRequest request = new AdRequest.Builder().Build();
interstitial.LoadAd(request);
}
↧