Market Research Integration
Plug in Your Market Research Profile
Launching the Market Research SDK requires three parameters or data points: your publisher ID, the Profile ID associated with a Market Research profile that you have created, and the unique ID of the user who is using the Market Research. The Profile ID you use, along with your publisher ID, you should have retrieved on the last step of the previous page after having setup your Market Research profile.
Showing the Market Research UI
Regarding .jarIf you are using the .jar file (only recommended if you are unable to build with Gradle) then Market Research offers will be integrated into the Offer Wall. The steps below are only for our native Android SDK accessed through the Gradle build system.
Before proceeding make sure you have
integrated the SDK
in your project.
To display the Market Research UI, initialize a new Intent with the values you gathered above for Publisher ID and Profile ID, along with the end user's unique ID for subId1.
String publisherId = "32740"; String profileId = "3"; String subId1 = "android_demo_subid1"; Intent intent = MarketResearchActivity.getIntentForMarketResearch(this, publisherId, profileId, subid1); startActivity(intent);
You can also download a sample Android Studio project showing how to integrate Market Research surveys.
Intent with Optional Parameters
There are a few optional properties you can use as well (usage outline below):
Hashtable<String, String> options = new Hashtable<String, String>(); options.put(MarketResearchActivity.SUB_ID2, "android_demo_subid2"); options.put(MarketResearchActivity.SUB_ID3, "android_demo_subid3"); options.put(MarketResearchActivity.SUB_ID4, "android_demo_subid4"); Intent intent = MarketResearchActivity.getIntentForMarketResearch(this, publisherId, profileId, subid1, options); startActivity(intent);
The above Intent examples are the only ways the market research should be initialized.
subid1 parameter in the Intent, you can set the value of
MarketResearchActivity.SUB_ID4 to whatever you like, as they are used only for your own tracking purposes. If you have a certain group of users you want track collectively, such as users using a premium version of your app, you could set one of these optional subids to the same value for each of these users. You will then be able to retrieve statistics for this group in the publisher dashboard.
If you have any questions about integrating our Market Research Surveys into your project, shoot us an email at