Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Mobile Ads plugin


enpu
 Share

Recommended Posts

Now it's super easy to add ads to your native Android and iOS Panda games with the new Mobile Ads plugin.

It uses Google AdMob and includes banner, interstitial and rewarded video ads.

Look how easy it is to add simple banner to your game. First install Mobile Ads plugin to your project, then add App ID and Ad unit ID to your config:

game.config = {
    mobileAds: {
        appId: 'ca-app-pub-3940256099942544~1458002511'
    },

    bannerAd: {
        adUnitId: 'ca-app-pub-3940256099942544/2934735716'
    }
};

Then just create new banner ad and show it:

var banner = new game.BannerAd();
banner.show();

Export your game to Android or iOS and that's it!

Documentation: https://www.panda2.io/plugins/mobileads/docs

Download: https://www.panda2.io/plugins

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...