Unity SDK
Offer Wall Integration
Integrate Your Offer Wall
Plug in Your Offer Wall Profile
Launching an Offer Wall requires at least 3 parameters or data points: your publisher ID, the Offer Wall ID associated with an Offer Wall profile that you have created, and the unique ID of the user who is using the Offer Wall. Your Offer Wall ID, along with your publisher ID, should have been retrieved on the last step of the previous page after having set up your Offer Wall profile.
Showing the Offer Wall
Before proceeding make sure you have imported our Unity plugin into your project.
To display the offer wall, call the AdscendMedia.ShowOfferWall
method with the values you gathered above for Publisher ID and
Offer Wall ID, along with the end user's unique ID for subId1 in the following manner:
string publisherId = "32740"; string adwallId = "2074"; string subId1 = "demo_subid1"; //you cannot pass anything but the internal property 'name' as first parameter otherwise callbacks won't work AdscendMedia.ShowOfferWall (name, publisherId, adwallId, subId1);
In the downloaded SDK you will also find a sample Unity project showing how to integrate our Offer Wall.
Offer Wall with Optional Parameters
There are a few optional properties you can use as well (usage outline below):
Dictionarydictionary = new Dictionary (); dictionary.Add (AdscendMedia.SUB_ID2, "demo_subid2"); dictionary.Add (AdscendMedia.SUB_ID3, "demo_subid3"); dictionary.Add (AdscendMedia.SUB_ID4, "demo_subid4"); dictionary.Add (AdscendMedia.GENDER, AdscendMedia.GENDER_FEMALE); dictionary.Add (AdscendMedia.AGE_RANGE, AdscendMedia.AGE_18_TO_35); AdscendMedia.ShowOfferWall (name, publisherId, adwallId, subId1, dictionary);
Optional Properties
You can use the AdscendMedia.GENDER
and AdscendMedia.AGE_RANGE
properties to get access to more
offers for your users.
gender
Options | Property Value |
---|---|
male | AdscendMedia.GENDER_MALE |
female | AdscendMedia.GENDER_FEMALE |
ageRange
Options | Property Value |
---|---|
18-35 | AdscendMedia.AGE_18_TO_35 |
35-45 | AdscendMedia.AGE_35_TO_45 |
45-55 | AdscendMedia.AGE_45_TO_55 |
55-65 | AdscendMedia.AGE_55_TO_65 |
65+ | AdscendMedia.AGE_65 |
The remaing optional parameters are AdscendMedia.SUB_ID2
, AdscendMedia.SUB_ID3
, and
AdscendMedia.SUB_ID4
. You can set the value of these to whatever you like as they are for your convenience in tracking. If you had a certain group of users for example (users using a premium version of your app), for
which you wanted retrieve stats, 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 SDK into your project, shoot us an email at: