- Home /
Unity ads are working in editor but not on android device
The ads are not appearing when called but in editor it works here is my code if anyone could help it would be much appreciated using UnityEngine; using System.Collections; using UnityEngine.Advertisements;
public class SimpleAds : MonoBehaviour
{
void Start ()
{
Advertisement.Initialize ("gameid");
StartCoroutine (ShowAdWhenReady());
}
IEnumerator ShowAdWhenReady()
{
while (!Advertisement.isReady())
yield return null;
Advertisement.Show ();
}
}
Answer by RChrispy · Sep 30, 2015 at 07:32 AM
For me it seems to be fine. Maybe you have not fast internet on your mobile? Are you in w-lan? And do other apps ( like crossy road ) show you adds?
Edit 2: Try this step by step guide: https://www.youtube.com/watch?v=pKRUNly4RRM
Maybe your backend settings of unity adds are wrong setup.
i published my app on the play store and people at my school dont get them either and when they are at home as well and other apps show ads i dont see why they dont if you want to see if they work on your phone type annoying plane in on play store and the ads should pop up as soon as you load the main menu @Dev6_RC
Did you setup all backend right? I mean in the editor there is only the test screen who does not need the add ids ans everything!
Her is a step by step guide try to repeat it maybe you forgott something: http://developer.fyber.com/content/current/ios/rewarded-video/adding-networks/unity_ads/
Answer by deekan142 · Feb 20, 2017 at 09:40 AM
The Advertisement.Initialize ("gameid"); requires a second Parameter, it's true or false. true means it's for development mode false means for release for public.
Try Advertisement.Initialize ("gameid", false);
Do NOT mark it false when testing. This can get you banned from the platform.
Your answer
Follow this Question
Related Questions
Chartboost adds are not showing up on android 0 Answers
My rigidbody2d is passing through the side of a collider2d but it's working on the top 0 Answers
How to add android 6.0 permission explanation 0 Answers
I know not how to implement the "open IAB" in unity 0 Answers
Unity Multiplayer Android Game 0 Answers