Versions Compared

Key

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

Table of Contents

...

If you are requesting information for specific campaign id's, please request them no more than once every 10 minutes.

Request

...

URL

https://via.appia.com/ext/api/campaigns/manual?siteId=####

Headers

ParameterRequiredDescription
Accept HeaderYes

Defaults to JSON and the most recent API version. Allowed values:

  • application/vnd.appia+json

  • application/vnd.appia-v1+json

AuthorizationYesSee Authentication section above

...

FieldDescription
campaignIdThe unique numeric id for the campaign
urlThe a unique url for this campaign, to access this API for only this campaign
nameDigital Turbine's name for the campaign
descriptionDigital Turbine's description for the campaign
status

Current state of the campaign:

  • ACTIVE - currently running and available, although daily caps may have been spent.
  • PAUSED - campaign has temporarily paused and is inactive
  • PENDING - campaign has temporarily paused and is inactive
  • EXPIRED - campaign has ended and is inactive
startDate

Date values will use ISO-8601 compliant short notation, either YYYY-MM-DD for dates or YYYY-MM-DD“T”HH:MM:SS for date time.

Example

  • Short Notation: 2014-02-20
  • Long Notation: 2014-02-20T16:02:05
endDate

Date values will use ISO-8601 compliant short notation, either YYYY-MM-DD for dates or YYYY-MM-DD“T”HH:MM:SS for date time.

Example

  • Short Notation: 2014-02-20
  • Long Notation: 2014-02-20T16:02:05
noteImportant notes about the campaign, usually regarding restrictions about where the campaign can run
impressionUrl

The url to use to report impressions for this campaign

http://ads.appia.com/v2/impressionAd.jsp?campaignId=9998&siteId=[YOUR_SITE_ID]&androidId=[USER_ANDROID_ID]&aaid=[USER_ADVERTISING_ID]&idfa=[USER_IDFA]

[YOUR_SITE_ID] - substitute your site_id that is running the campaign ex. siteId=9999

Optional, but recommended:

[USER_ANDROID_ID] - substitute the Android ID of the user viewing the campaign, if it is known ex. androidId=B77H823942an1234

[USER_ADVERTISING_ID] - substitute the Google Advertising Id of the user viewing the campaign, if it is known ex. aaid=38400000-8cf0-11bd-b23e-10b96e40000d

[USER_IDFA] - substitute the IDFA of the user viewing the campaign, if it is known ex. idfa=236A005B-700F-4889-B9CE-999EAB2B605D

clickUrl

The url to use when a user clicks on an ad for this campaign

http://ads.appia.com/v2/clickAd.jsp?campaignId=9998&siteId=[YOUR_SITE_ID]&androidId=[USER_ANDROID_ID]&aaid=[USER_ADVERTISING_ID]&idfa=[USER_IDFA]&ts=[TIME_STAMP]

[YOUR_SITE_ID] - substitute your site_id that is running the campaign. ex. siteId=9999

[TIME_STAMP] - a unique timestamp for this click, used to break any caching. ex.ts=1395353746407

Optional, but recommended:

[USER_ANDROID_ID] - substitute the Android ID of the user viewing the campaign, if it is known ex. androidId=B77H823942an1234

[USER_ADVERTISING_ID] - substitute the Google Advertising Id of the user viewing the campaign, if it is known ex. aaid=38400000-8cf0-11bd-b23e-10b96e40000d

[USER_IDFA] - substitute the IDFA of the user viewing the campaign, if it is known ex. idfa=236A005B-700F-4889-B9CE-999EAB2B605D

unlimitedTotalBudget

If = false, then the campaign has a max budget set

remainingTotalBudget

If unlimitedTotalBudget = false, this is the amount of the budget currently remaining
remainingDailyCapThe amount of the dailyCap that remaining for today. Can be null if there is no daily limit.
dailyCapThe maximum daily budget allowed for this campaign. Can be null if there is no daily limit.  Campaigns are removed from API results when daily caps are met.
dailyCapTypeThe value returned will be either 'Network' for a daily cap that is shared across Digital Turbine's network, or 'Site' for a daily cap that is allocated to the siteId passed in the request.
bilingTypeValue returned will be either CPI or CPC. 
targetedLocationsArray of targeted countries, cities, or demographic market areas (DMAs)
excludedLocationsArray of excluded countries, cities, or demographic market areas (DMAs)
defaultPayout

The payout for the campaign, unless otherwise set with a sitePayout below.

This is the net payout. However, if "hasCustomRevShareAgreement" = true, the defaultPayout value is Gross for those publishers.

maxPayout (deprecated)Deprecated as of 6/10/2015 and will be removed from the API at a later date.  Use defaultPayout
sitePayouts (deprecated)

Deprecated as of 6/10/2015 and will be removed from the API at a later date.  Use defaultPayout

countries (deprecated)

Deprecated as of 2/29/2016 and will be removed from the API at a later date.  Replaced by targetedLocations & excludedLocations.

application

"identifier" - the unique identifier for the application being advertised in this campaign.

Either the packagename in GooglePlay or the bundleId for the Apple AppStore. ex. com.appia.sampleapp

categoryThe app store category for the app being advertised in this campaign
platformAndroid or iOS
maxOsPlatformThe most recent OS version allowed to see this ad
minOsPlatformThe oldest recent OS version allowed to see this ad
appStoreUrlThe url to the appstore page for the app being advertised
excludedDevicesSpecific device models that are not allowed to see ads for this campaign
excludedSitesA list of subsites that are not allowed to run the campaign (under the name field)
blockedSubSitesArray of excluded publisher sub sites.
creatives

An array of creative images for a campaign. Populated only when request parameter "expand=creatives" is used (this field will be null if the request parameter is not present).

For each creative image, the following information is returned:

  • width - the width of the image
  • height - the height of the image
  • url - the image URL
  • languageCode - the two-character language code
  • thumbnail - boolean value: true if this is a thumbnail image

...