- Home /
Question by
dedemlililer · Feb 26, 2018 at 06:56 AM ·
adsloaddelayadvertising
How to load ads before showing?
Hey guys.I am working on a project and its almost done.But i have problem.I added ads into my game. When the player dead for the third time i show ads. Here is my code:
prefdeğer = PlayerPrefs.GetFloat("reklam");
if (prefdeğer == 2)
{
if (Advertisement.IsReady())
{
Advertisement.Show();
PlayerPrefs.SetFloat("reklam", 0);
}
else
{
PlayerPrefs.SetFloat("reklam", 1);
}
}
else
{
prefdeğer += 1;
PlayerPrefs.SetFloat("reklam", prefdeğer);
}
I just wanna know if ads loading automaticly before showing or they start loading when i request if they dont loading automaticly how to load them since beggining of game
my english is broken.its not my native language.if i made a mistake im sorry
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612153445im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to Fix Unity Advertisement Error CS0433 1 Answer
Ads Problem 0 Answers
How much does a banner ad make vs a rewarded ad? 0 Answers
ClassNotFoundException: com.unity.ads.IUnityAdsShowListener 1 Answer
admob related question 2 Answers