Android SDK code samples overview
This section contains various code samples to help you in the development of your app.
Topics | Description |
---|---|
Add A Transition Animation Between Creatives | How to transition between multiple creatives. |
Add Targeting Parameters | How to add targeting parameters to a ad unit. |
Allow Multiple Ad Sizes | How to enable a banner ad to receive multiple ad sizes. |
Android SDK settings | Lists the details about the methods, input parameters, returned values, restrictions, guidelines, and examples for the Android SDK settings. |
API for Exiting Banner Video from Fullscreen | How to enable exit of the expanded video in activity stack. |
Click Through URL | How click throughs work and how to implement them. |
Configure SDK Logging | How to enable SDK logging and set logging levels. |
Control Ad Unit Alignment | List of the types of alignments for banner ads. |
Control Landing Page Load Visibility | How to configuring the landing page load behavior on ad clicks. |
Customize Video Player Options | How to customize video player controls. |
Dismiss Interstitials on User Click | How to dismiss an interstitial ad when the user clicks. |
External User ID Mapping | How to map your own user ID to a Xandr user id. |
Force Creative ID | How to specify the ID of a creative that should be forced to appear in a placement. |
Get Facebook Demand for Native | How to get assets for Facebook native ads. |
Lazy Loading an Ad Unit | How to lazy load an ad unit to control when trackers, including 3rd party trackers, are fired. |
Listener for Ad About To Expire | Listener for ads which are about to expire and are expired. |
OMID Friendly Obstruction | How to obstruct views from the Open Measurement Software Development Kit. |
Open Ad Clicks in the Native Browser | How to choose if native browser will open if the ad is clicked. |
Pass Custom Keywords | How to pass custom keywords to the request body. |
Receive Ad View Status Events | How to receive status events for the ad unit. |
Request Ads Over HTTPS | How to request ads over HTTPS. |
Resize Ads to fit the Screen or Banner Ad View | How to resize ads to fit its container. |
Resize the Banner Ad View to the Size of the Winning Creative | How to resize the ad unit to fit the creative size. |
Set Reserve Prices | How to minimum bid amount you'll accept to show an ad. |
Support for External Inventory and Traffic Source Code | How to break out inventory more granularly than the placement level. |
Toggle PSAs | How to enable PSAs. |