Exemplo n.º 1
0
    /**
     * Show banner ad
     *
     * @param position position (top or bottom)
     */
    public static void ShowBannerAdWithPosition(string placement, Position position)
    {
        string strPos = "BOTTOM";

        if (position == Position.TOP)
        {
            strPos = "TOP";
        }

        InitializeEnhance();
#if UNITY_EDITOR
        FGLEditorInternals.ShowBannerAd(placement, strPos);
#elif UNITY_ANDROID
        FGLAndroidInternals.ShowBannerAd(placement, strPos);
#elif UNITY_IOS
        FGLiOSInternals.ShowBannerAd(placement, strPos);
#endif
    }