Hello I have tested my game and my ads take like 20 seconds to show up. I'm using Google Admob banner ads. I tested some other games which use the same service and the ads show up immediately or after 2-3 seconds. What can I do to speed it up? Any tricks?
Here is the code for the ads.
using UnityEngine;
using System.Collections;
using GooglePlayGames;
using UnityEngine.SocialPlatforms;
[RequireComponent(typeof(AdMobPlugin))]
public class AdsShow : MonoBehaviour
{
private const string AD_UNIT_ID = "ca-app-pub-4598216156226261/3719979839";
//private const string INTERSTITIAL_ID = "Your unique interstitial ID";
private AdMobPlugin admob;
public void Awake()
{
DontDestroyOnLoad(this);
}
// Use this for initialization
public void Start () {
PlayGamesPlatform.Activate();
admob = GetComponent();
admob.CreateBanner(AD_UNIT_ID, AdMobPlugin.AdSize.SMART_BANNER, false);
admob.RequestAd();
admob.ShowBanner();
}
}
↧