MoPub Menu in Unity Preferences

In the MoPub section of Unity Preferences (UnityPreferences…), you can enable and disable optional features for the MoPub Unity SDK. Starting with the Unity Plugin v5.4 release, the Enable MoPub menu option is enabled by default, while the Enable MoPub build menu and Enable MoPub native ads options are in beta mode and are disabled by default. They are further detailed below.

MoPub Preferences

Hovering your mouse pointer over each feature displays a description of the feature.

MoPub Menu

The MoPub menu enables publishers to browse documentation, manage integrated SDKs, and more. For more information about the Manage SDKs option, refer to our Unity migration guide.

MoPub Menu

MoPub Build Menu (Beta)

The MoPubBuild menu is a convenience tool for publishers who modify the MoPub Unity Android and iOS wrappers via a fork of our repository. In the past, these publishers would need to run command-line scripts to build the wrappers (sometimes having to close the Unity editor). Now you can easily build them, and export the Unity package from within the Unity editor.

MoPub Menu

To use the MoPubBuild menu, open the unity-sample-app project in the desired fork of the mopub-unity-sdk repository. From that project, check the appropriate MoPub preference (from UnityPreferences…MoPub), and that will display the MoPub menu.

The following build actions and build options are available in the menu:

  • Build Current Platform: Builds the MoPub wrapper for the currently enabled platform (Android or iOS).

  • Build All Platforms: Builds the MoPub wrappers for both Android and iOS.

  • Export MoPub Package: Exports a unity package with the currently built wrappers and project.

  • Option: Debug Build: Enables you to specify when to build wrappers with a debug flag.

    • Always

    • Never

    • If Development Build: When the Development Build option in Build Settings is selected.

  • Option: Compile on App Build: If enabled, every time the app is built via Build or Build And Run in Unity’s Build Settings dialog, the wrapper for the current platform will be built first.

Note: The MoPub iOS SDK is only buildable on Mac OSX hosts. On Windows hosts, only the MoPub Android SDK will be built.

Last updated August 28, 2021

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2021 MoPub (a division of Twitter, Inc.)