感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

Mobile Ads Sample Apps

Simple Ad Sample

The Simple Ad Sample is a simple app that demonstrates basic ad loading functionality. It is open-source, and its main purpose is to give developers access to a hands-on example of how the Amazon Mobile Ads API is implemented into an Android app.

Fig. 1: Screenshot of Simple Ad Sample

Floating Ad Sample

The Floating Ad Sample is a simple app featuring an ad banner that floats in from the bottom of the screen. Another feature of this app is that, when an ad is loaded, a scrollable webview appears in the original window behind the ad banner; this is designed to help developers get a sense for how the banner loads in relation to material on the page. The Floating Ad Sample is completely open-source, and its code can be used as an example for how to properly implement the Amazon Mobile Ads API as part of an app.

Fig. 2: Screenshots of Floating Ad Sample

Interstitial Ad Sample

This is a sample app that demonstrates how to load and show interstitial ads. It is open-source, and its main purpose is to give developers access to a hands-on example of how interstitial ads are implemented into an Android app.

Fig. 3: Screenshots of Interstitial Ad Sample

Swipeable Modeless Interstitial Ad Sample

The Swipeable Modeless Interstitial Sample App demonstrates how to load and show modeless interstitial ads in an image gallery setting. It displays the interaction with modeless ads through a swiping gesture. It is open-source, and its main purpose is to give developers access to a hands-on example of one way that modeless interstitial ads can be implemented into an Android app.

Fig. 4: Screenshots of Swipeable Modeless Interstitial Ad Sample

Framed Modeless Interstitial Ad Sample

The Framed Modeless Interstitial Sample App demonstrates how to load and show modeless interstitial ads in a framed context. Displaying an ad in a framed context enables the developer to display nearly full screen ads without removing the customer from the application's experience. It is open-source, and its main purpose is to give developers access to a hands-on example of one way that modeless interstitial ads can be implemented into an Android app.

Fig. 5: Screenshots of Framed Modeless Interstitial Ad Sample

How Can I Use Them?

Source code for these sample apps is available as part of the Amazon Mobile Ads API Download from the Mobile Ads API Landing Page. To install an app, open up the corresponding subfolder of /Ads/samples/ and then follow the concise instructions located in the sample app's Readme file.