public void Intestinal_Ad_Create()
    {
        InterstitialAd l_interAd = AdmobManager.PrepareInterstitialAd("Interstitial_1");

        l_interAd.AdUnitId = "ca-app-pub-6065714673957825/2806333668";
        l_interAd.Create();
    }
Example #2
0
    void DrawInterstitialAdvs()
    {
        m_rect.x += m_rect.width + 30.0f;
        m_rect.y  = 40;

        m_rect.width  = Screen.width * 0.25f;
        m_rect.height = Screen.height * 0.15f;

        if (GUI.Button(m_rect, "Create Interstitial Ad"))
        {
            InterstitialAd l_interAd = AdmobManager.PrepareInterstitialAd("Interstitial_1");
            //OR
            //InterstitialAd l_interAd = AdmobManager.Prepare<InterstitialAd>("Interstitial_1");
            l_interAd.AdUnitId = "ca-app-pub-4192487455949741/8306159319";
            l_interAd.Create();
        }

        m_rect.y = m_rect.y + m_rect.height;
        if (GUI.Button(m_rect, "Load Interstitial Ad"))
        {
            InterstitialAd l_interAd = AdmobManager.Get <InterstitialAd>("Interstitial_1");
            l_interAd.Load();
        }
        m_rect.y = m_rect.y + m_rect.height;

        if (GUI.Button(m_rect, "Show Interstitial Ad"))
        {
            InterstitialAd l_interAd = AdmobManager.Get <InterstitialAd>("Interstitial_1");
            l_interAd.Show();
        }
    }