getAsset

abstract suspend fun getAsset(url: String): AdResult<AssetResult>

A method for retrieving an advertising resource from a passed URL.

This method is convenient to use when you have only one advertising resource, for example, one advertising banner. In this case, this method:

  1. Check the cache for the presence of this resource.

  2. Loads the resource if it is not in the cache.

  3. Caches the resource for future use.

  4. Returns the result as AssetResult.

Return

The result of the retrieval process.

Parameters

url

The http/https URL where the resource is located.