Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Downloadable document


lref-gdriveview-file
urlhttps://drive.google.com/file/d/17u3BEtpxJvkM1YQ1JgkgdvfIXqDHAPLb/view?usp=sharing
Lref gdrive file
https://drive.google.com/file/d/1J3my2vqk4Zvk9QqGCXNJul0w8EGJrxNT/view?usp=sharing
urlnameNative Ads API_V2_Updated_29thDec.pdf
height250

Table of Contents

...

Table of Contents
maxLevel2
outlinetrue

...

Field

Required

Description

id

Yes

Authentication attribute provided by Digital Turbine

password

Yes

Authentication attribute provided by Digital Turbine

siteIdYesValue provided by Digital Turbine to identify the publisher

userAgentHeader

Yes

The user agent of the device for which the ad is requested.  Required to ensure device-application compatibility

sessionId

Yes

sessionId of the end user device the request is generating Ads for.  This parameter is required so ads provided in the XML response will be rotated, end users will not see duplicates on subsequent requests. However, you don’t need to maintain any session and this can be any randomly generated number, for example, timestamp.

placementIdNoPlacement of site id in VIA

ipAddress

No

Required for end user geo-targeting

ipAddressListNoRequired for end user geo-targeting
countryCodeNoCountry code to filter ads by. Example: US
countrySourceNoInteger. Example: 1
imageHeightNo Allows partners to request various icon sizes.  Digital Turbine will return the best match from the sizes we have available.  The default value is 72 and the max 200.
iconHeightNoUsed along with adTypeId, this allows partners to request various icon sizes in addition to a Banner or Interstitial.  The default value is 72 and the max 200.
acceptLanguageHeaderNoTwo letter ISO language code.  Allows partners to request a specific language.  Digital Turbine will return ads in the request language if available.

totalCampaignsRequested

No

Allows publishers to request multiple ads simultaneously 

adTypeId

No

The size of creative returned in the ad response.  1 is the default.

1 –   72x72 Icon

4 300x50 Banner

5 320x50 Banner

6 300x250 Interstitial

7   320x480 Interstitial

8 –   480x320 Interstitial

9 –   768x1024 Interstitial

10   1024x768 Interstitial

11 - 390x200 interstitial

12 - 240x350 Interstitial

13 - 750x560 Interstitial

14 - 560x750 Interstitial

15  728x90 Banner

16 - 1200x627 Interstitial

28 - 600x600 Interstitial

42 - 1280x720 Interstitial 

categoryId

No

The predefined category/subcategory available to filter the results on.  Category IDs can be comma separated to filter for multiple categories.  See the table at the end of the document for a list of IDs and their category names.

androidId

No

Raw Android ID for optimization and conversion tracking.

aIdSHA1

No

Android ID SHA-1 hashed for optimization and conversion tracking when available.

aIdMD5NoAndroid ID MD5 hashed for optimization and conversion tracking when available.

idfa

No

Raw iOS IDFA for optimization and conversion tracking when available.

macAddress

No

Raw MAC Address not case sensitive, including : separator for optimization and conversion tracking when available.

aaidNoAndroid Advertising ID for optimization and conversion tracking.
campaignIdNoThe Digital Turbine campaign ID.  Passing this param will return details for the passed campaign ID only.  If the campaign is not available the result will be empty.

carrierName

No

Carrier Name: Verizon, ATT, Tmobile, etc.

lat

No

Latitude

long

No

Longitude

gender

No

male/female

minAge

No

Age or minimum age if an age range is known

maxAgeNoMaximum age if an age range is known
childAgeNoComma separated list of a child age ranges (0-3,4-7)

minIncome

No

Income or minimum income of an income range is known

maxIncomeNoMaximum income of an income range is known
vendorNoVendor
subPartnerNoSub partner
deviceSpecNoReturns campaigns with apps that has apks uploaded
screenshotSizeNoExample: 100x100


Other request parameters:

...

ParameterDescription
languageUsed in impression tracking url
adUnitIdUsed in impression tracking url
creativeIdUsed in click proxy url + impression tracking url
templateIdUsed in click proxy url + impression tracking url
bidRequestIdUsed in click proxy url + impression tracking url
bidResponseIdUsed in click proxy url + impression tracking url
exchangeUsed in click proxy url + impression tracking url
bidClearPriceUsed in click proxy url + impression tracking url
retargetedUsed in click proxy url + impression tracking url
homeScreen Used in click proxy url + impression tracking url
aaidSHA1Used in click proxy url + impression tracking url
aaidMD5Used in click proxy url + impression tracking url
handsetIdUsed in click proxy url + impression tracking url
udidUsed in click proxy url + impression tracking url
odinUsed in click proxy url + impression tracking url
limitAdTrackingUsed in click proxy url + impression tracking url. Values: true/false.
flowsUsed in click proxy url
clicklessSupportedUsed in click proxy url
rdnsCarrierSafeUsed in click proxy url
dvURLUsed in click proxy url
stiFlowUsed in click proxy url
deviceIdUsed in click proxy url
algorithmIdUsed in click proxy url
providerUsed in click proxy url
mccmncUsed in click proxy url
deviceManufacturerUsed in click proxy url
deviceModelUsed in click proxy url
densityValues: ldpi/mdpi/tvdpi/hdpi/xhdpi/xxhdpi/xxxhdpi
deviceStateConfigured in Via Site Optimization/Priority. Values: outOfBox/inLife
randomizationDetermine if the ads for a specific request should be randomized. Values: true/false
clickProxyif deeplink is sent then clickProxyUrl will have delivers URL


Sample Request

Generic:

http://ads.appia.com/v2/getAds?id=[ID]&password=[PASSWORD]&sessionId=[SESSIONID]&siteId=[SITEID]&userAgentHeader=[USERAGENTHEADER]&ipAddress=[IPADDRESS]&placementId=[PLACEMENTID]&androidId=[ANDROIDID]&aIdSHA1=[AIDSHA1]&aIdMD5=[AIDMD5]&macAddress=[MACADDRESS]&idfa=[IDFA]&aaid=[ANDROIDADVERTISINGID]&subSite=[SubSiteId]

...

Field
Description
Value
adListIdUnique uuid for each request. Part of clickProxyUrl and impressionUrl.String
apksList of apk configuration from the Via App/Manage Apk page.List of Objects

appId

The app's unique identifier in the app store, Google Play or iTunes

String

averageRatingImageURL

An image representing the star rating of the application.

String

bidIdUnique id for each campaign. Part of metadata object, clickProxyUrl and impressionUrl. Example: BID214330009156094520454149095213969486968String

bidRate

Amount paid to a publisher for an install

Float

billingTypeIdBilling type of campaign. Can be: CPI (1), CPP (2), CPC (3), CPM (4)Integer
callToActionStatic localized parameter that returns "Install now" text. Supports following languages codes: en, zh, sv, da, no, fi, de, es, fr, nl, it, tr, ro, pt, pt-brString

campaignDisplayOrder

Recommended display order for the ad based on Digital Turbine’s campaign performance algorithm

Integer

campaignId

The campaign's ID within the Digital Turbine system.  

Integer

campaignTypeId

A tracking parameter used by Digital Turbine.  Typically unused by publishers.

Integer

categoryName

The category of the application from Google Play or iTunes

String

clickProxyURL

A link that will record a click in Digital Turbine's system and redirect the end user to the appropriate app store, Google Play or iTunes. 

String

creativeId

The ID of the creative returned. Typically unused by publishers.

Integer

enableAutoLaunchIf false, user will be presented with the app details modal containing the call to action: "tap here to open".Boolean
homeScreenShows if campaign may appear on the home screen. Configured in Via site optimization page.Boolean

impressionTrackingURL

pixel tracker that must be placed when an ad is shown to the end-user

String

impressionIdUnique id for each campaign. Part of metadata object and impressionUrl. Example: IMP181121631983274148732716928498071899713String
installDelayDelay in seconds between download complete and install for an app deliveryInteger

isRandomPick

All ads are returned in order of their performance, with a few randomly returned out of order. This indicates if the specific ad was returned in performance order or was a random placement.

String

metadataContains such metadata as bidId and impressionId.Object

maxOSVersion

The maximum OS version supported.  Must be used to filter out unsupported devices.

String

minOSVersion

The minimum OS version supported.  Must be used to filter out unsupported devices.

String

numberOfDownloadsHow much downloads have happened for a specific app.String

numberOfRatings

The number of ratings.

String

productDescription

The ad copy for the ad. Typically a short description of the product.

String

productId

Digital Turbine system ID for the application linked to a campaign.  Typically unused by publishers.

Integer

postInstallActionsDiscovery notifications post install actions.Object

productName

The headline for the ad. Typically the title of the product

String

productThumbnail

URL for the image icon

String

responseTime

Digital Turbine AdServer response time for the current ad request. Typically unused by publishers.

String

reclickAttributionDetermines whether or not to re-click the attribution click upon auto-launch if an app is already installed.Boolean

rating

The application rating

Float

s2sServer to server parameter.Boolean
segmentsSpecific for applist site. Configured under Site Optimization/Applist in Via. Each segment has list of campaigns.List of Objects

totalCampaignsRequested

Indicates the number of campaigns requested. The results may be less than the number requested if the targeting criteria filters out available ads.

Integer

useInstallerBroadcastBroadcast message to the installed app.Boolean

version

Current version of the ad server.  Typically unused by publishers.

String

...