Skip to content

Advertising

VirtueSky edited this page Sep 8, 2024 · 7 revisions

What

  • Support for Max, Admob and IronSource

Use

  • Open AdSetting: Open tab Advertising in Magic Panel

Unity_nuKYp6KGag

  • Here, select Ad Network and enter the ad unit id you want to use, don't forget add Define Symbol.
  • If you use Runtime auto init, Advertising will be created automatically when you load the scene. Conversely, you would attach Advertising to the GameObject in the scene so that the ads can be loaded

Screenshot 2024-05-16 174541

  • Demo API Show Ads
    public void ShowBanner()
    {
        Advertising.BannerAd.Show();
    }

    public void HideBanner()
    {
        Advertising.BannerAd.HideBanner();
    }

    public void ShowInter()
    {
        Advertising.InterstitialAd.Show().OnCompleted(() =>
        {
            // handle show inter completed
        });
    }

    public void ShowReward()
    {
        Advertising.RewardAd.Show().OnCompleted(() =>
        {
            // handle show reward completed
        }).OnSkipped(() =>
        {
            // handle skip reward
        });
    }

    public void ShowRewardInter()
    {
        Advertising.RewardedInterstitialAd.Show().OnCompleted(() => { });
    }

    public void ShowAppOpen()
    {
        Advertising.AppOpenAd.Show();
    }
Clone this wiki locally