Giter Site home page Giter Site logo

mopub-unity-sdk's Introduction

MoPub Unity SDK

Thanks for taking a look at MoPub! We take pride in having an easy-to-use, flexible monetization solution that works across multiple platforms.

Sign up for an account at http://app.mopub.com/.

Need Help?

To get started visit our Unity Engine Integration guide and find additional help documentation on our developer help site.

To file an issue with our team please email [email protected].

New in This Version (5.4.0 - October 9, 2018)

Version 5.4.0 (October 9, 2018)

  • The MoPub Unity Plugin now includes versions 5.4.0 of the MoPub Android SDK and the MoPub iOS SDK.
  • The MoPub menu now has more features: About, Documentation, Report Issue, and SDK Manager
  • The SDK Manager dialog allows checking for and updating to new versions of the SDK.
  • The SDK directory structure has changed: All files are now collected under Assets/MoPub. See below for notes on migration.

Please view the MoPub Unity SDK changelog, MoPub Android SDK changelog, and MoPub iOS SDK changelog for a complete list of additions, fixes, and enhancements across releases and platforms.

Upgrading to SDK 5.4

Starting in MoPub Unity Plugin 5.4, the SDK Manager (opened via the previously-beta MoPub menu) automatically detects if there are directories or files in the legacy plugin structure, and displays a “Migrate” button. NOTE: Performing the migration is optional as it simply organizes all MoPub code within the same directory, and doing it (or not) should not have any adverse effect.

for more details, see https://developers.mopub.com/docs/unity/getting-started/#migrating-to-54

Upgrading to SDK 5.0

Please see the Getting Started Guide for instructions on upgrading from SDK 4.X to SDK 5.0.

For GDPR-specific upgrading instructions, also see the GDPR Integration Guide.

License

The MoPub SDK License can be found at http://www.mopub.com/legal/sdk-license-agreement/.

Developing on the MoPub Unity Plugin

Cloning the project

git clone https://github.com/mopub/mopub-unity-sdk
git submodule init
git submodule update

Repository structure

  • mopub-android-sdk/ - Git submodule of the MoPub Android SDK
  • mopub-android-sdk-unity/ - Android wrapper, contains a project that adds Unity-specific files to the Android SDK
  • mopub-ios-sdk/ - Git submodule of the MoPub iOS SDK
  • mopub-ios-sdk-unity/ - iOS wrapper, contains a project that adds Unity-specific files to the iOS SDK
  • unity-sample-app/ - Contains MoPub Unity Plugin sample project
  • mopub-unity-plugin/ - Where the Unity packages are exported after running ./unity-export-package.sh

Prerequisities

Before you can build the plugin per the instructions below, you must do the following:

  • Place any third-party SDKs and dependencies in their corresponding directories, per README files in:
    • mopub-android-sdk-unity/libs/ - Android wrapper dependencies
    • unity/MoPubUnityPlugin/Assets/Plugins/Android/ - Android plugin dependencies
    • iOS loads dependencies at runtime, so there's no need to add them prior to building
  • Set up the Unity IDE:
    • Make sure you are logged in to your Unity account
    • Open the Unity Plugin project (under the unity/ directory), open Build Settings and Switch Platform to either Android or iOS
    • Close the Unity IDE

How do I build?

Simply run ./scripts/build.sh (make sure the Unity IDE is not running), which runs git submodule update and then invokes the following scripts:

Each script can be invoked separately. Exporting the unity package can also be done manually, by opening the unity/ project in Unity, right-clicking the Assets/ folder and chosing Export Package....

How do I run the sample unity project and test?

After building per instructions above, open the unity/ project in Unity, click File > Build Settings..., select iOS or Android, click Build and Run.

mopub-unity-sdk's People

Contributors

aornelas avatar mojren avatar rsatrasala avatar sdolim avatar thomasmso avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.