Jump to content

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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