configure
suspend fun AdService.configure(networkId: String, context: Context, timeoutAfterSeconds: UInt? = null, cacheSizeInMb: UShort? = null, cachePath: String? = null): AdResult<Unit>
Configure AdService with the passed parameters.
This method is the only correct way to configure an AdService. It configure the AdService, loads the initial cookies that will be used by the ad server to identify the user, and registers all standard compose renderers.
Return
The result of the AdService configuration.
Parameters
networkId
The unique identifier of the ad network.
context
The application context required for handling URLs that are triggered if users interact with ads.
timeoutAfterSeconds
Optional timeout for the cookie loading, in seconds.
cacheSizeInMb
Optional cache size in MB.
cachePath
Optional cache path.