Daro

object Daro

Daro SDK main object.

Daro manage all ad networks and provide APIs to initialize, grant/reject GDPR.

Properties

Link copied to clipboard

GDPR consent message version.

Functions

Link copied to clipboard
fun grantGdpr(context: Context, gdprVendor: DaroGdprVendor, consentString: String)

Grant GDPR consent to the ad network.

Link copied to clipboard
suspend fun init(application: Application, adNetworkConfigurations: List<DaroNetworkConfiguration>, logLevel: DaroLogLevel = DaroLogLevel.OFF, gdprConsentMessageVersion: String? = null)

initialize daro sdk.

Link copied to clipboard
fun openAdInspector(context: Context, onClosed: (errMsg: String?) -> Unit)

Opens the ad inspector UI.

Link copied to clipboard
fun openDebugMenu(context: Context, daroAdUnit: DaroAdUnit)

Opens the debug menu

Link copied to clipboard
fun registerWebView(webview: WebView)

Registers a WebView with the Daro SDK to improve in-app ad monetization of ads within this WebView.

Link copied to clipboard
fun rejectGdpr(context: Context, gdprVendor: DaroGdprVendor, consentString: String)

reject GDPR consent to the ad network.

Link copied to clipboard

Sets the global RequestConfiguration that will be used for every AdRequest during the app's session

Link copied to clipboard
fun setTagForUnderAgeConsent(forUnderAgeConsent: Boolean)

Sets tag for under age consent that will be used for every AdRequest during the app's session