SDK Ads TAG

From wiki.taptica.com
Revision as of 07:29, 21 August 2012 by Admin (Talk | contribs)

Jump to: navigation, search

Below you will find a base tag example, this example may be taken for integration within the publisher's application, just remember to change the appID in the "Please change me!" area

Tag Example

<script type="text/javascript" src="http://ad.taptica.com/sdk/js/TapticaWebAdSDK.v3.6.js"></script> <script type="text/javascript"> var flag = false; $(document).ready(function () { var paramsAuto = { "webSDKAdApplicationID": "Please change me!" } getAd(paramsAuto); }); </script>


Return Value
Type: AdCoreProfileResult
Return value has the following properties:

Property Type Description
Result OutcomeEnum The Result is an enumeration, possible value: Fail, Success
ErrorCode Int Specific error code. AdCore can define these.
ResultDescription string The description of the method call result in case of error


Parameters Description

Parameter Description
auth Type: Authentication
Hold the authentication tokens for AdCore.
This object has these properties:
UserName 
A string having the username for used to identify on AdCore.
Password
Password for above username.


profile Type: ApplicationProfile
An object describing the application, it has these properties:
ApplicationID 
String (36): in UUID format with ID of application as provisioned by AdCore.
This ID will also be used on update calls and by 3rd party mobile application when it contact AdCore server for mobile ads content.
Name
String (64) : Name of application
Description 
String (120): a description of the application.
DeveloperName 
String (64):  Developer Name – developer of the application.
ContentTypes  
Array of Strings: each string describing one of the content types applicable to the application. Each string in the array has a max 
length of 64 chars.
example: [‘Gambling Related’, ‘Advertising’] 
can be an empty array.
Category  
Array of Strings: each string describing one of the categories applicable to the application. Each string max length is 64 chars.
example: [‘Video’, ‘news’, ‘education’]
Tags  
Array of Strings: each string describing one of a user defined tag that the developer used to describe the application. Each tag has a  
max 64 chars. Can be empty.
Platform  
String: Describing one of the supported platforms.
Possible values: BlackBerry, J2ME, Android, Symbian, iOS
ContentFilters 
Array of Strings: each string describing one of the exclude ads from categories. Each string max length is 64 chars.
example: [‘Tools, ‘Books’, ‘Photos’]
TextFilters
Array of Strings: each string describing one of the exclude ads that contains text. Each string max length is 64 chars.
example: [‘cats, ‘dogs’, ‘bats’]
LanguageFilters
Array of Strings: each string describing one of the exclude ads in these Language Filters. Each string max length is 64 chars.
example: [‘Thai, ‘German, ‘French]
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox