Get Started
Follow this guide to configure your app to work with the Playtime SDK using any of our supported wrappers.
Step 1: Get Your SDK Hash
Contact your Account Manager to get an SDK hash for your app. Or if you already have access, it can be retrieved from the Monetize Dashboard.
The SDK hash is a unique 32-character code that uniquely identifies your app within adjoe's systems. Each app receives a distinct hash. Remember to keep your hash confidential to prevent unauthorized use.
Step 2: Enable SandboxMode
To fully test the Playtime SDK integration and access all campaign types, configure your application to be in "SandboxMode". Contact your Account Manager to have this setting enabled for your environment.
Troubleshooting:
If you do not see any apps returned or if you run into any errors after this setting is enabled, please try a fresh install.
Step 3: Add the Playtime SDK Dependency
Add adjoe's repository to your root
build.gradle(project level):
allprojects {
repositories {
...
maven {
url "https://releases.adjoe.io/maven"
}
}
}Add the adjoe dependency to your app's
build.gradle(module level):
dependencies {
...
implementation 'io.adjoe:adjoe-sdk-android:3.3.2'
}If you use Kotlin DSL for adding dependencies, add the repo in the settings.gradle.kts
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://releases.adjoe.io/maven") }
}
}Add adjoe's repository to the
settings.gradlefile:
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://releases.adjoe.io/maven")
}
}
}
2. Add the adjoe dependency to your app's build.gradle (module level):
dependencies {
...
implementation 'io.adjoe:adjoe-sdk-android:3.3.2'
}https://github.com/adjoeio/adjoe-react-native-sdk
Open your project's
package.jsonfile.Add the adjoe as a dependency under the
dependenciessection. You can change the version number to the desired version of Playtime SDK.
dependencies: {
"react-native-adjoe-sdk": "https://github.com/adjoeio/adjoe-react-native-sdk#v3.3.2"
}Open your
build.gradlefile in the android folder and add the following section:
allprojects {
repositories {
maven {
url "https://releases.adjoe.io/maven"
}
}
}Run the command:
npm installhttps://github.com/adjoeio/adjoe-flutter-sdk
To integrate the adjoe Flutter SDK into your Flutter project, follow these steps:
Open your project's
pubspec.yamlfile.Add the Playtime SDK as a dependency under the
dependenciessection. You can change the version number to the desired version of Playtime SDK.
dependencies:
adjoe:
git:
url: https://github.com/adjoeio/adjoe-flutter-sdk
ref: v3.3.2Save the
pubspec.yamlIn your IDE run either of the the following two commands:
pub getflutter pub get
Adjoe 3.3.2 uses the Play Services Resolver, you can download a version of the Playtime SDK which is compatible wit the Play Services Resolver here. It contains only the source code and the AdjoeDependencies.xml file specifying the Playtime SDK: https://releases.adjoe.io/files/playtime/unity/3.3.2/adjoe_sdk_android_unity_3.3.2_psr.unitypackage
Add the adjoe SDK to your app by clicking:
Assets > Import package > Custom package....
Select adjoe's
.unitypackage, clickOpenand the selectImport. This will load the adjoe SDK intoAssets/Adjoe.
Download the 3.3.2 version of the adjoe SDK for Capacitor here: adjoe-capacitor-plugin-3.3.2.tgz.
After you have downloaded it, add the Adjoe SDK to your app by running the command:
$ npm install --save path/to/adjoe-capacitor-plugin-3.3.2.tgzin your app's root directory. This will extract the files from the tarball, add them to thenode_modulesfolder and add an entry to yourpackage.json.If you already added Android platform to your project you can skip this step and go to step 4 Install Android platfrom:
npm install @capacitor/androidAdd Android platfrom:npx cap add androidOpen your
build.gradlefile in the android folder and add the following section:Copy
allprojects { repositories { maven { url "https://releases.adjoe.io/maven" } } }Sync your project:
npx cap sync android
https://github.com/adjoeio/adjoe-cordova-sdk
Open your project's
package.jsonfile.Add the Playtime SDK as a dependency under the
dependenciessection. You can change the version number to the desired version of Playtime SDK.
dependencies: {
"cordova-plugin-adjoe": "https://github.com/adjoeio/adjoe-cordova-sdk#v3.3.2"
}Save the
package.jsonand run the following command:
npm installStep 4: Enable Logs (Native only)
Enabling logging per device within the SDK is crucial for troubleshooting. Turn on logging and include the logs with any bug reports to help us accurately replicate and address issues.
Here’s how to enable logging:
Connect the device to your computer and enable ADB.
In a terminal window, run the following command to activate logging:
adb shell setprop log.tag.Playtime INFOYou can now filter LogCat using the Playtime tag to monitor relevant log output. If you wish to disable logging, simply execute the command:
adb shell setprop log.tag.Playtime ERRORThis sets the logging level to ERROR, effectively reducing the verbosity of the logs.
Last updated
