广告聚合

Get Started with Unity

Before You Begin 🔗

GitHub Repository 🔗

Our Chartboost Mediation Unity SDK is open source and available on GitHub.

Minimum Supported Development Tools 🔗

Software Version
Minimum Unity Editor Version 2022.3.22f1 (2022 LTS)
Minimum Supported Android Version API 21 (Android 5.0 Lollipop)
Android Compile Version API 34
Gradle 8.2
Kotlin 1.9.21
Recommended Java 17
Minimum Supported iOS Version 13
Minimum XCode Version 15
Swift 5.0

API 34+ Compatibility 🔗

Many of our Partners have transitioned to using newer versions of Gradle than what is currently supported by our minimum Unity Editor version of 2020.3. In the event that you encounter Gradle related problems when compiling for API 34+, we recommend one of the following solutions.

Upgrading to Unity 2022.3 🔗

Upgrading to Unity 2022.3 will get the latest set of Android tools compatible with the newest adapters and libraries.

Android Studio AGP Upgrade Tool 🔗

A workaround using Android Studio’s Android Gradle Plugin Upgrade Tool will allow you to upgrade your Gradle version from 6.1.1, to anything higher. We have documented the process in a short video where we upgrade from AGP 4.0.1 to 8.1.2.

Integrate Chartboost Mediation Unity SDK 🔗

Chartboost Mediation Unity SDK is distributed using the public npm registry as such it is compatible with the Unity Package Manager (UPM). In order to add the Chartboost Mediation Unity SDK to your project, just add the following to your Unity Project’s manifest.json file. The scoped registry section is required in order to fetch packages from the NpmJS registry.

  "dependencies": {
    "com.chartboost.mediation": "4.9.0",
    ...
  },
  "scopedRegistries": [
    {
      "name": "NpmJS",
      "url": "https://registry.npmjs.org",
      "scopes": [
        "com.chartboost"
      ]
    }
  ]

Add Your Mediation App ID and App Signature 🔗

  1. Go to Chartboost Mediation > Edit Settings
  2. Add your Mediation App ID and Mediation App Signature

Make sure that these are the Mediation AppId and AppSignature values that you obtain directly from your Mediation Dashboard for your app as opposed to credentials from Chartboost or any other Ad Network.