2014-03-31

Calling all Unity app developers! We are excited to announce the launch of version 2.0 of the Google Mobile Ads Unity Plugin. The new version comes with a completely rewritten, but much more flexible, API. It includes the following new features:

A single package supporting both Android and iOS

Support for running apps in the Unity editor

Ability to create multiple banner instances

Ability to create banners of any size

Flexible ad request targeting

and much more!

Taking a closer look at how to integrate the plugin, a typical banner request in v2.0 looks like this:

For custom banner sizes, simply pass in an AdSize object into the BannerView constructor:

Want to pass additional targeting parameters? No problem! Set your custom targeting when building the AdRequest:

Listening for ad events is also extremely straightforward. Register for the callbacks you care about:

You can also manage the lifecycle of each BannerView by calling show(), hide(), or destroy().

To get access to these awesome features, check out the source code. Also stay tuned for upcoming support for interstitial ads.

If you have any feature requests or bug reports against the plugin, track it! If you have questions about how to use the plugin, speak up! And if you just want the latest news on what’s going on in the wonderful world of Google Ads, circle us!

 - Eric Leichtenschlag, Mobile Ads Developer Relations

Show more