A. Show Offerwall

 * In 'Testing' state, you have to register your device as testing device in order to get ads displayed in your offerwall.

1) Set user name

You have to set user identification string using this API. Login Id is good for identification string.
If you don't have any user identification string, device Id will be fine for this. But please be sure to encrypt these strings when you are to use user's privacy data for identification string such as device Id, phone number and email.

These user identification strings are sent back to your server in parameters of callbacks and you can identify users using these strings. See 
1.6 Callback URL for detail.
(If you set 'Point Management' as 'Managed by Tnk' in the page of publishing configuration, you may skip this step.)

Method 
  - void TnkPlugin::setUserName(char *userName)

Parameters
 Name Description
 userName User identification String (less than 256 bytes)

2) Show Offerwall (full screen)

Launch a incentive offerwall in full screen.

Method
  - void TnkPlugin::showAdList()
  - void TnkPlugin::showAdList(char *title)

Parameters
 Name Description
 title Title displayed in the offerwall.
 (Default : Get Free Points!) 

Sample Code

#include "TnkAdPlugin.h"


void HelloWorld::buttonTapped() 

{

    //   ...


    TnkAdPlugin::showAdList("Get Free Points!");

}


3) Show Offerwall (popup view)

Launch a incentive offerwall in popup view.

Method
  - void TnkPlugin::popupAdList()
  - void TnkPlugin::popupAdList(char *title)

Parameters
 NameDescription
 title Title displayed in the offerwall.
 (Default : Get Free Points!) 

Sample Code

#include "TnkAdPlugin.h"


void HelloWorld::buttonTapped() 

{

    //   ...


    TnkAdPlugin::popupAdList("Get Free Points!");

}


Comments