The following block of code creates and loads a banner ad:
In your layout:
In your activity or fragment:
Once you’ve loaded an ad, you can also display it:
These are the default values:
Parameter
Value
Configuration
Production
Test mode
Disabled
Background
Gray
Warning
All instances of SABannerAd must have an Android ID assigned. Avoiding to correctly set one either in your XML layout or in code will cause the banner to crash with an exception.