1. TnkAd SDK‎ > ‎

3) Android Settings

[Add Library]
  • Put tnkad-sdk.jar file into libs folder of your project. (If you don't have libs folder, create new one first.)
[AndroidMenifest File]
  • You can get App ID(Application Id) after adding your app in Tnk site. 
  • Put the App ID in <meta-data/> inside of <application/> tag at AndroidMenifest.xml file.
  • In the sample below, replace your-application-id-from-tnk-site with your App ID value.

Put Application Id



    <meta-data android:name="tnkad_app_id" android:value="your-application-id-from-tnk-site" />


  • Add 2 Activities. (Publisher only)

Add Activities

<activity android:name="com.tnkfactory.ad.AdWallActivity" />
<activity android:name="com.tnkfactory.ad.AdMediaActivity android:screenOrientation="landscape"/>
  • Put 2 permissions.

Add permissions

<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

  • Set minSdkVersion to 9 or greater.

Set minSdkVersion.

<uses-sdk android:minSdkVersion="9" />

[Using Proguard]

 If you are to use Proguard, make sure below line is in your Proguard configuration file.

    -keep class com.tnkfactory.** { *;}