Configuration

Build Dependencies

circle-exclamation

If you already configured the project by using Unity Configuration guide, you can skip these steps and go straight to "Configurations" section below.

  • In your root-level (project-level) Gradle file in<project>/build.gradle, add the Google services plugin as a dependency:

buildscript {
    dependencies {
        classpath 'com.google.gms:google-services:4.2.0'
    }
}
  • In your module (app-level) Gradle file usually in <project>/<app-module>/build.gradle, add the dependencies as below:

apply plugin: 'com.google.gms.google-services'
dependencies {
    //adjust
    implementation 'com.adjust.sdk:adjust-android:4.31.1'
    implementation 'com.android.installreferrer:installreferrer:2.2'
    implementation 'com.google.android.gms:play-services-ads-identifier:17.0.1'
    // facebook
    implementation 'com.facebook.android:facebook-android-sdk:14.1.0'
    // firebase
    implementation 'com.google.firebase:firebase-analytics:20.1.0'
}

Update Your Manifest

  • Configure by copying these to your AndroidManifest.xml

  • Add the following configuration to the /app/res/values/strings.xml file in your app project.

  • Application Module configuration copy google-services.json to the app module directory, the json file must be placed in the main Module and package names must be consistent

Firebase's google-services.json

SDK Checker for Debugging

Set debug mode to active event checker Please add this to Androidmanifest.xml

Event Mapping

circle-info

Optional if you only use Scale (User Acquisition) feature from Labs.

This Event Mapping only used for the Game Analytics feature.

The event names are mapped using an automatically loaded events.csv file. This approach avoids hardcoding the event names, making it more convenient for use across multiple services and platforms.

To map event names, ensure that an events.csv file is included in your project. This file should contain the mapping of event identifiers to their respective names.

events.csv

Last updated