Install SDK
1. Introduction
This guide provides a comprehensive walkthrough for integrating the MyChips SDK into your Android application, enabling the display of an engaging offerwall.
2. Prerequisites
3. SDK Integration
https://www.npmjs.com/package/mychips-react-sdk
3.1 Adding the SDK
3.2 Adding the SDK Dependency to App-Level
Be sure to add this dependencies via yarn or npm
3.3 Configuring the Android Manifest
In your AndroidManifest.xml
, add the following:
Add Permission for Internet Access:
4. Initializing the SDK
In your main activity’s onCreate
method, import and initialize the SDK:
Obtain your API key and User ID from Universal Developer Portal
4.1 (Optional) Set userId if you have your own unique id
Replace "
HERE YOUR USER ID"
with your actual user ID variable or value.
If you do not provide a specific user ID, one will be automatically generated.
4.2 (Optional) Set Google AdvertisingId
Improve the reward tracking by passing the advertinsing id. Official documentation
Replace "
Google Advertising ID"
with your actual Google Advertising ID variable or value.
5. Display the Offerwall
Replace ‘AD_UNIT_ID’ with your actual Ad unit ID.
Create a new page and navigate to it
Style
Your Ad unit ID can be found at link
Last updated