Advanced Settings

Ad Placements

You can set a placement name for each ad unit (for example, “Rewarded VideoLevels”, “INTER_levelEnd”, or “RewardedVideoCoinStore”). This can help you aggregate statistics for different placement categories. Below are code snippets that show you how to set the placement name for various ad formats.

  • AppLovinMAX.createBanner(bannerAdUnitId, AdViewPosition.BOTTOM_CENTER);
    AppLovinMAX.setBannerPlacement(bannerAdUnitId, placement);
  • AppLovinMAX.createMRec(mrecAdUnitId, AdViewPosition.CENTERED);
    AppLovinMAX.setMRecPlacement(mrecAdUnitId, placement);
  • AppLovinMAX.showInterstitial(interstitialAdUnitId, placement);
  • AppLovinMAX.showRewardedAd(rewardedAdUnitId, placement);

Mute Audio

You can mute audio for certain mediated SDK networks when you launch your app. The networks that support this functionality via the AppLovin SDK are Google bidding and Google AdMob, AppLovin, DT Exchange, Google Ad Manager, LINE, Mintegral, Tencent, and Verve. For other networks, consult your network’s account team to learn whether this functionality is available and how to access it.

DT Exchange supports muting audio only on interstitial ads.

The following code snippets show how you mute audio on the supported networks:

AppLovinMAX.setMuted(true);  // to mute
AppLovinMAX.setMuted(false); // to unmute

Set the mute state before you load ads. Some networks (like Google bidding and Google AdMob) return muted or unmuted videos depending on what the mute state is before ad load.

Enable Verbose Logging

Enable verbose logs with the following code:

AppLovinMAX.setVerboseLoggingEnabled(true);

To verify that you enabled verbose logs successfully you can check for the line that reads Verbose Logging On: true in the initialization section of the AppLovin SDK logs:

AppLovin SDK
Version: 11.4.2
⋮
Verbose Logging On: true
⋮

AppLovin SDK tags its logs with the tag /AppLovinSdk: [AppLovinSdk].