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 the Import Package step before proceeding.
Include external dependencies
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.
SDK required permissions
SDK Initialize
Before loading ads, the app must initialize ONEAdMax.
The initialization with ONEAdMaxClient.Initialize() should be done only once.
Log Settings
For development, you can enable detailed logs for ONEAdMax. (default: false)
GDPR Settings
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)
COPPA Settings
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)
Application Quit
When the application is closed, it releases the resources allocated in memory (such as views and memory).
Mediation settings
For stable Fill Rates and eCPM, it is recommended to set up a waterfall mediation.
...
using ONEAdMax;
...
public class ONEAdMaxDemo : MonoBehaviour
{
private static bool _isInitialized = false;
void Start()
{
if (!_isInitialized)
{
// Initialize the ONEAdMax SDK.
ONEAdMaxClient.Initialize(() =>
{
// This callback is called once the ONEAdMax SDK is initialized.
_isInitialized = true
});
}
}
}