SDK Ads TAG
From wiki.taptica.com
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>
Tag Parameters
The tag may be filled with these parameters to set up a static field sent by the tag.
Parameter | Content | Relevance | Importance |
"webSDKAdApplicationID" | " F88AEC6E-CF1A-4D50-8761-76345D1A4968_64" | Sets the application ID as provided by Taptica (Mandatory) | Identifies the app. to allow TapticaAd to select relevant ads and display them correctly |
"webSDKExtClickUrl" | "${CLICKURL}" | Sends a request to an additional URL provided by the publisher | In case you wish to track clicks via your own link in addition to what is provided by Taptica's services |
"webSDKAdDeviceId" | "xxxxxxxxxxxxxxx" | Identifies a machine via its unique ID | In case the agreed tracking solution is UDID/Android ID. |
"webSDKAdPosition" | "right" | Sets the position of the ad | Default is set to right |
"webSDKAdIp" | "xx.xx.xxx.xxx" | Sets the client IP | Relevant for test
purposes and Geo targeting. |
"webSDKAdType" | "x" | Sets the ad type | 1=Text, 2=Banner, 3=HTML, 4=After Wall (default is 2) |
"webSDKAdUserAgent" | "Mozilla/5.0 (Linux; U;Android 2.1-update1; enus; Milestone Build/SHOLS_U2_02.27.C) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17" | User's agent. | User Agent supplies targeting information such as browser, OS, etc.
|
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] |