Skip to main content

Before You Begin

Check requirements before integration.

Requirements

  • Android minSdkVersion: 23
Verify app-ads.txt setup before proceeding.
Desugaring required: Configure desugaring if minSdk is below 26.

Configure Your App

1

Project-level build configuration

  1. Add maven repositories to the settings.gradle file.
2

Add the DARO plugin to build.gradle(root)

  1. Add the DARO plugin to the build.gradle(root) file.
Latest version
  • daro-plugin :
3

Add Daro SDK

  1. Add the Daro SDK.
Latest version
  • daro-a :
  • daro-compose-util :
4

Add android-daro-key.txt file

  1. Add the android-daro-key.txt file.
android-daro-key.txt can be downloaded from the DARO dashboard.
5

Configure daroAppKey

  1. Configure daroAppKey.
daroAppKey can be found in the DARO dashboard.daroAppKey
6

Apply the DARO plugin to build.gradle(app)

  1. Apply the DARO plugin to build.gradle(app).
7

Apply ProGuard rules if needed

  • The daro SDK includes the following obfuscation rules in consumer-rules.pro, which are automatically merged during app build when adding the AAR via Gradle.
  • If you want to modify the obfuscation rules, please refer to the content below and apply them to your proguard-rules.pro file.

Initialize SDK

Important: Load Ads After Initialization
  • Initialize DARO SDK before loading ads by calling Daro.init().
  • Requesting ads before initialization may prevent proper display.

App Mute Setting

For app open, banner, interstitial, rewarded, rewarded interstitial, and native ad formats, you can use the setAppMuted(...) method to inform the Daro SDK that the app volume has been muted.
Native ads apply the mute state to video playback at load time, so call setAppMuted before loading native ads.
App Mute Usage PrecautionsWhen app mute is enabled, some video ad creatives that cannot play while muted may be excluded from ad requests, which can slightly reduce the ad pool and affect revenue.