Hi all,
I just attempted to integrate Unity Ads into my game, and found it refreshingly simple reading over the docs. However, in practice it doesn’t seem to work for me.
I have imported the Unity Ads package, added a game to my account, grabbed the ID and run the Initialise code:
if (Advertisement.isSupported)
Advertisement.Initialize ("65149", false);
You’ll note that i’ve tried forcing test mode to false here.
In an Update function, I am testing with the following:
private void ShowAdOnPressSpace () {
if (Input.GetKeyUp(KeyCode.Space)) {
if (Advertisement.isInitialized)
Debug.Log("Unity Ads Initialized succesfully");
else
Debug.Log("Unity Ads Not Initialized");
if (Advertisement.IsReady())
Advertisement.Show();
else
Debug.Log ("Advertisement not ready");
}
}
When I press space, the log says “Unity Ads Not Initialized” every time.
One thing to note is that I don’t have my App store ID yet, so in my account the game was created by simply specifying the name.
Searching google, I didn’t find anyone having similar issues.
Thanks
Mat