Market Research Integration

Integrate Your Market Research

Launching the Market Research SDK requires at least 3 parameters or data points: your publisher ID, the Profile ID associated with an 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

Before proceeding make sure you have integrated the SDK in your project.

To display the Market Research UI, initialize a new market research with the values you gathered above for Publisher ID and Profile ID, along with the end user's unique ID for subId1.

static NSString* const publisher_Id = @"32740";
static NSString* const mr_profile_Id = @"3";
static NSString* const mr_subId_1 = @"ios_demo_subid1";    

ADMarketResearchViewController* marketResearchVC = marketResearchVC = [ADMarketResearchViewController newMarketResearchForPublisherId:publisher_Id profileId:mr_profile_Id subId1:mr_subId_1 delegate:self];
[self presentViewController:marketResearchVC animated:YES completion:nil];

The presenting view controller must conform to ADMarketResearchVCDelegate to receive the close button callback.

- (void)onCloseMarketResearchVCPressed
{
    [marketResearchVC dismissViewControllerAnimated:YES completion:nil];
}

Optional Properties

Like subid1 you can set the value of subid2, subid3 and subid4 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.

Example Usage

marketResearchVC.subid2 = @"ios_demo_subid2";
marketResearchVC.subid3 = @"ios_demo_subid3";
marketResearchVC.subid4 = @"ios_demo_subid4";
Need Help with Integration?

If you have any questions about integrating our Market Research Surveys into your project, shoot us an email at:
SDKsupport@adscendmedia.com