getAd

open fun getAd(@NonNull identifier: String, @NonNull containerDir: File): Ad

Get an Ad object that can be used to configure an AdView.

Return

An Ad object if the ad exists on disk, null if not.

Parameters

identifier

The identifier of the ad.

containerDir

The container directory of the ad.