04. Unity-Plugin Guide
Last updated
Last updated
Unity 2022.3.11f1 or higher
Android SDK version
Minimum API Level 16 or higher
Target API Level 33 or higher
The Android API level can be configured in Project Settings > Player > Other Settings.
In the Unity menu bar, click Assets > Import Package > Custom Package.
The Assets/OneStoreCorpPlugins/com.oneadmax.global
folder will be created.
EDM4U(External Dependency Manager for Unity) is distributed as a required component. If you are already using it, uncheck
ExternalDependencyManager
during theImport Package
step before proceeding.
To include repositories and dependencies in your project, follow these steps:
Project Settings > Player > Publishing Settings > Build
Custom Main Manifest
Custom Main Gradle Template
Custom Gradle Settings Template
Go to Assets > External Dependency Manager > Android Resolver > Force Resolve
and select it.
The Maven Repository URL will be applied to the settingsTemplate.gradle
file.
The Maven Module will be applied to the mainTemplate.gradle
file.
The dependencies for the ONEAdMax for Unity plugin are listed in the following file: Assets/OneStoreCorpPlugins/com.oneadmax.global/Editor/ONEAdMaxDependencies.xml
If you have received the media key, you need to configure the <meta-data />
in the AndroidManifest.xml file.
Please confirm that the media key is added to the AndroidManifest.xml.
Since the media key is read by the Java SDK, regardless of the Unity plugin, the <meta-data />
should be located inside the <application>
element.
Before loading ads, the app must initialize ONEAdMax.
The initialization with ONEAdMaxClient.Initialize()
should be done only once.
For development, you can enable detailed logs for ONEAdMax. (default: false)
To comply with the EU's GDPR (General Data Protection Regulation), the following API is added. Please call the API only for users who require GDPR consent. (default: true)
To comply with the COPPA (Children's Online Privacy Protection Act), the following API is added. On such devices, all ad requests will result in "No ad" being served. (default: false)
When the application is closed, it releases the resources allocated in memory (such as views and memory).
For stable Fill Rates and eCPM, it is recommended to set up a waterfall mediation.
This is a reward-based video ad. When the video ad finishes, the completion information is sent via the Complete event callback.
This is an ad that covers the entire screen of the app. Once completed or interrupted by the user, the app's screen will be displayed.
This displays a rectangular ad that occupies part of the app's screen. You can set the position and time to automatically refresh the ad.
This is an ad type similar to video ads, but without offering rewards.
Unity
2022.3.11f1
Java SDK (Java 11)
ONE AdMax SDK v1.2.1