I run ads with the given sample ad unit ID, but it doesn’t work with the my ID
The application was not added to Google Play
what can I do for the solution
I’m sorry for my bad english
I run ads with the given sample ad unit ID, but it doesn’t work with the my ID
The application was not added to Google Play
what can I do for the solution
I’m sorry for my bad english
Please define “doesn’t work”, are you receiving a NoFill response? Please show your code and the device logs.
I am not getting an error
I use this way
using UnityEngine;
using System.Collections;
using GoogleMobileAds.Api;
public class AddInst : MonoBehaviour {
private InterstitialAd interstitial;
private void Start()
{
string appId = “*******”;
MobileAds.Initialize(appId);
interstitial = new InterstitialAd(“*******”);
AdRequest request = new AdRequest.Builder().Build();
interstitial.LoadAd(request);
if (interstitial.IsLoaded())
{
interstitial.Show();
}
}
}
Please describe what is not working. How are you debugging? What is the return value of IsLoaded?
I am not getting an error
I run ads with the given sample addUnitID, but it doesn’t work with the my ID
I use genymotion emulator for testing
Again, what is the return code for IsLoaded? How are you debugging? You can debug live in Visual Studio, or simply place Debug.Log statements in your code which will also show in the logs.