Professional Documents
Culture Documents
Introduction
This document guides you through the integration of the StartApp JavaScript tag.
Once integrated, the tag enables publishers to present ads in their mobile websites and applications.
Resource Details
In order to start displaying StartApps ads in your mobile website or application, simply add the code snippet below.
Update the content of the parameters according to the table below.
<div id="startappContainer"></div>
<script type="text/javascript">
/* Required parameters. */
var publisherId = '';
var productId ='';
var width =;
var height =;
/* Optional parameters. */
var userId = "";
var packageName = "";
var isp = "";
var contentRating = "";
var gender = "";
var age = "";
var category = "";
var networkType = "";
var geoLongitude = "";
var geoLatitude = "";
var subPublisherId = "";
var subProductId = "";
var domain = "";
var deviceManufacturer = "";
var deviceModel = "";
var userAdvertisingId="";
var noAdUrl= "";
</script>
<script type="text/javascript" src="http://www.startappexchange.com/js/startapp-tag.js"></script>
NOTICE: Please do not change the id of the div element in the tag ("startappContainer").
<div id="startappContainer-2"></div>
<script type="text/javascript">
/* Required parameters. */
var publisherId = '';
var productId ='';
var width =;
var height =;
var startappContainerId = "startappContainer-2";
</script>
<script type="text/javascript" src="http://www.startappexchange.com/js/startapp-tag.js"></script>
NOTICE: You can use optional parameters as well when adding two ads or more to one page by adding them below the required
parameters of each ad.
Request Parameters
Field
Required
Type
Description
publisherId
Yes
String
productId
Yes
String
width
Yes
Int
The available width in pixels for the ad. Please choose from the
table in Appendix A.
height
Yes
Int
The available height in pixels for the ad. Please choose from the
table in Appendix A.
userId
No
String
Android ID
packageName
No
String
isp
No
String
contentRating
No
int
gender
No
int
Values: {0,1}
0 - male
1- female
age
No
int
Values: {1-99}
category
No
string
networkType
No
int
geoLongitude
No
string
geoLatitude
No
string
subPublisherId
No
string
subProductId
No
string
domain
No
string
deviceManufacturer
No
string
deviceModel
No
string
userAdvertisingId
No
string
noAdUrl
No
string
Example
<div id="startappContainer"></div>
<script type="text/javascript">
/*Required parameters.*/
var publisherId = '156974125';
var productId ='25437653';
var width =320;
var height =480;
/*Optional parameters.*/
var userId = "";
var packageName = "";
var isp = "";
var contentRating = "";
var gender = "";
var age = "";
var category = "";
var networkType = "";
var geoLongitude = "";
var geoLatitude = "";
var subPublisherId = "";
var subProductId = "";
var domain = "";
var deviceManufacturer = "";
var deviceModel = "";
var userAdvertisingId="";
var noAdUrl= "";
</script>
<script type="text/javascript" src="http://www.startappexchange.com/js/startapp-tag.js"></script>
Appendix A
Creative Types and Dimensions
Ad Type
Dimensions
Comments
320x480
Portrait
480x320
Landscape
Banner
320x50
Banner
300x50
Banner
300x250
768x1024
Tablet Portrait
1024x768
Tablet Landscape
Banner
728X90
Tablet
Banner
1024X90
Tablet
Appendix B
Content Rating Values
Content rating maturity level of the product. When used, the response ad must be in the same level or lower. For more information on
the android content rating, check http://goo.gl/IPKKqw. As for iOS, the ratings are age based. From 4+ for everyone, 9+, 12+ and 17+ for
high maturity.
0 - Everyone
1 - Low maturity
2 - Medium maturity
3 - High maturity
Appendix C
Application Category Values
A1 - Books&Reference
A2 - Business
A3 - Comics
A4 - Communication
A5 - Education
A6 - Entertainment
A7 - Finance
A8 - Health&Fitness
A9 - Libraries&Demo
A10 - Lifestyle
A11 - LiveWallpaper
A12 - Media&Video
A13 - Medical
A14 - Music&Audio
A15 - News&Magazines
A16 - Personalization
A17 - Photography
A18 - Productivity
A19 - Shopping
A20 - Social
A21 - Sports
A22 - Tools
A23 - Transportation
A24 - Travel&Local
A25 - Weather
A26 - Widgets
A27 - Game Action
A28 - Game adventure
A29 - Game arcade
A30 - Game board
A31 - Game card
A32 - Game casino
A33 - Game casual
A34 - Game educational
Appendix D
Network Type Values
0 - Unknown
1 - GPRS
2 - EDGE
3 - UMTS
4 - CDMA
5 - EVDO revision 0
6 - EVDO revision A
7 - 1xRTT
8 - HSDPA
9 - HSUPA
10 - HSPA
11 - iDen
12 - EVDO revision B
13 - LTE
14 - eHRPD
15 - HSPA+
16 - WIFI
17 - NOT_WIFI