AdManager

class AdManager : AdManagerInternal, AdLoading, AdManagerListening, SlotAds

The main class for Richie Ads.

Use one of the create methods to create a new instance.

Important: only one instance of AdManager during the lifetime of the hosting application is supported.

Types

Link copied to clipboard
interface SlotListener
Listener for loading events related to slot ads.

Functions

Link copied to clipboard
Adds a listener, which gets notified when slot ads become available.
Link copied to clipboard
open fun create(@NonNull context: Context, @NonNull applicationIdentifier: String): AdManager
Creates a new AdManager instance which stores its data in internal storage.
open fun create(@NonNull context: Context, @NonNull applicationIdentifier: String, @NonNull dataDirLocation: StorageOption): AdManager
Creates a new AdManager instance, with an option to choose Ads' data storage location.
Link copied to clipboard
open fun getAd(@NonNull identifier: String, @NonNull containerDir: File): Ad
Get an Ad object that can be used to configure an AdView.
Link copied to clipboard
Tells Richie Ads that a page view has occurred in a slot.
Link copied to clipboard
Tells Richie Ads that a page view has occurred in multiple slots.
See nextFlightForSlots for details.
Link copied to clipboard
Removes a slot listener.
Link copied to clipboard
Global persisted parameters can be used by ad creatives (using JavaScript API) to query global state.
Link copied to clipboard
Sets the delegate for opening ad links.