RequestBanner() public method

public RequestBanner ( ) : void
return void
Example #1
0
    // Use this for initialization
    void Start()
    {
        ad = GameObject.FindGameObjectWithTag("Ad").GetComponent<GoogleMobileAdsScript>();
        ad.RequestBanner ();
        ad.ShowBanner();

        _camera = GameObject.Find("Main Camera").GetComponent<MenuCameraLogic>();
        menuNum = 0;
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        ad = GameObject.FindGameObjectWithTag("Ad").GetComponent <GoogleMobileAdsScript>();
        ad.RequestBanner();
        ad.ShowBanner();

        _camera = GameObject.Find("Main Camera").GetComponent <MenuCameraLogic>();
        menuNum = 0;
    }
Example #3
0
    public IEnumerator RequestAds()
    {
        yield return(new WaitForSeconds(1f));

        if (RewardBasedVideo)
        {
            admob.RequestRewardBasedVideo();
        }
        if (Interstitial)
        {
            admob.RequestInterstitial();
        }
        if (Banner)
        {
            admob.RequestBanner(BannerPostion);
        }
    }