Hello students!
We're now a few months into the
AdMob Student Challenge. By now many of you have probably made some headway on your app, but aren't completely sure about how you want to integrate AdMob. Today we'll give you some tips on best practices for integration.
Positioning
In general, ad placement should work with the flow of your app.
Banners can be placed at the bottom of a screen containing another view, as elements placed in a ListView (as long as you don't show more than one banner on screen at once!) or other places that work with the current layout of the screen.
On the other hand,
interstitials should be placed at a natural break in your flow from screen to screen - for example, in between game levels. You can see more examples of ad integration in our
Ad Catalog app.
Event-based Action
If you want to track the different lifecycle events of an AdView object, you can use an
AdListener. This allows you to not only track, but also take action in onAdOpened(), onAdClosed() and other methods. You can see an example of an AdListener in the Ad Catalog app, and the basic AdListener behavior
in this sample app.
Flair
Another fun thing to do is create
Custom Events, which allow you to serve your own ads in the ad space. For example, if you know your user's birthday, you could
deliver a Happy Birthday message instead of an ad on that day. Custom Events give you a lot of flexibility with your ad space, and we're excited to see how you use them.
For additional controls, such as location and ad color, check out
our docs. And if you have any SDK-related questions, you can ask other AdMob developers (including me!) for help
on our forum.
Remember, using AdMob is a requirement to submit your app for the student challenge. We're looking forward to your submissions and hope to see some innovative uses of the AdMob SDK!
- Amy Quispe, Mobile Ads Developer Relations