Setting up the SDK
Last updated
Last updated
Check our "known issues" section if you encounter any integration issue.
Adjoe Sdk 2.0.7 fully support Androidx and targetSdkVersion 33. If you still use pre-androidx then please refer to .
Make sure you set targetSdkVersion 33
Before you can integrate and test the SDK, you must request an SDK hash and set up your devices for testing.
The SDK hash is a 32 character hexadecimal string (e.g. 1234567890abcdefgh1234567890abcd
). It uniquely identifies your app to the adjoe SDK and must therefore be kept secret. You can obtain it by requesting it from your adjoe contact person.
IMPORTANT: This step must be executed before the SDK is initialized for the first time on the affected device! Note that you can always add more devices as test devices in the future, but only if you haven't initialized the SDK on the device before.
To easily test your integration of the adjoe SDK on a certain device, you can set it up as a test device. This device will then receive more apps to install and the rewards are reached faster, making it less cumbersome for you to test the integration.
To set up a device as a test device for adjoe, simply send the device's Google Advertising ID to your adjoe contact person and wait for the confirmation. You can obtain the Google Advertising ID (GAID) of your device by going to Settings > Google > Ads > My Ad-ID
.
Note: When you reset the GAID, you must again register the device as a test device with the new GAID.
Download the latest version of the adjoe SDK for React Native here: react-native-adjoe-sdk-2.0.7-drm.tgz.
After you have downloaded it, add the adjoe SDK to your app by running the command $ npm install --save path/to/react-native-adjoe-sdk-2.0.7.tgz
in your app's root directory. This will extract the files from the tarball, add them to the node_modules
folder and add an entry to your package.json
.
In your project's android
directory, add Adjoe's repository to your root build.gradle
(project level):
You need to link the native components of the adjoe SDK with the native parts of your app. To do so, run the command $ react-native link react-native-adjoe-sdk
in your app's root directory.
You can import the SDK's functions by adding
to the import section of the files where you need to access adjoe's functionality.