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 how you set the placement name for various ad formats.

For banners and MRECs you must set the placement name immediately after you create the banner or MREC.

Banner

  • Ad Unit Identifier. Create Banner: Ad Unit Identifier. Banner Position: Bottom Center. Set Banner Placement: Ad Unit Identifier, Placement: YOUR_BANNER_PLACEMENT.
  • UAppLovinMAX::CreateBanner(ad_unit_id, position);
    UAppLovinMAX::SetBannerPlacement(ad_unit_id, placement);

MREC

  • Ad Unit Identifier. Create MRec: Ad Unit Identifier. MRec Position: Top Left. Set MRec Placement: Ad Unit Identifier, Placement: YOUR_MREC_PLACEMENT.
  • UAppLovinMAX::CreateMRec(ad_unit_id, position);
    UAppLovinMAX::SetMRecPlacement(ad_unit_id, placement);

Interstitial

  • Ad Unit Identifier. Show Interstitial: Ad Unit Identifier. Placement: YOUR_INTERSTITIAL_PLACEMENT.
  • UAppLovinMAX::ShowInterstitial(ad_unit_id, placement);

Rewarded

  • Ad Unit Identifier. Show Rewarded Ad: Ad Unit Identifier. Placement: YOUR_REWARDED_AD_PLACEMENT.
  • UAppLovinMAX::ShowRewardedAd(ad_unit_id, 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. The following code snippet shows how you mute audio on the supported networks:

  • To mute. Set Muted. Muted ☑. To unmute. Set Muted. Muted ☐.
  • UAppLovinMAX::SetMuted(true);  // to mute
    UAppLovinMAX::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 call:

  • Set Verbose Logging Enabled. Enabled ☑.
  • UAppLovinMAX::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].

Creative ID and Network Name

You can retrieve the creative ID and the network name of displayed ads of various mediated networks. Refer to the Creative Debugger documentation for more information.