- createAsset
- createAudienceList
- createCreative
- deleteAudienceList
- deleteBids
- getAdvertiserStatistics
- getAssets
- getAudienceLists
- getBidsForCampaign
- getCreatives
- getSkanReporting
- getTitles
- getUniversalSkanReport
- updateAudienceList
- updateBids
▸ createAsset(titleId, type, filePath, fileName?): Promise<string>
| Name | Type |
|---|---|
titleId |
number |
type |
string |
filePath |
string |
fileName? |
string |
Promise<string>
▸ createAudienceList(audienceListMeta): Promise<string>
| Name | Type | Description |
|---|---|---|
audienceListMeta |
AudienceListMeta |
AudienceListMeta meta data of the audience list to create |
Promise<string>
▸ createCreative(titleId, creatives): Promise<string>
| Name | Type |
|---|---|
titleId |
number |
creatives |
Creative[] |
Promise<string>
▸ deleteAudienceList(audienceListId): Promise<string>
| Name | Type | Description |
|---|---|---|
audienceListId |
string |
Audience List ID to delete |
Promise<string>
▸ deleteBids(campaignBids): Promise<string>
| Name | Type | Description |
|---|---|---|
campaignBids |
CampaignBidList[] |
list of CampaignBids to delete. |
Promise<string>
- Arry with API results.
▸ getAdvertiserStatistics(startDate, endDate, metrics, reportingOptions?): Stream
| Name | Type | Description |
|---|---|---|
startDate |
string |
report start date in the following format YYYY-MM-DD |
endDate |
string |
report end date in the following format YYYY-MM-DD |
metrics |
Metrics[] |
list of report metrics. |
reportingOptions? |
Object |
Optional additional parameters. |
reportingOptions.adUnit? |
AdUnits |
Ad Unit from AdUnits |
reportingOptions.breakdowns? |
Breakdowns[] |
list of breakdowns. |
reportingOptions.bundleId? |
string[] |
list of bundle ids |
reportingOptions.campaignId? |
number[] |
list of campaign ids |
reportingOptions.count? |
number |
maximum number of records in the report |
reportingOptions.country? |
string[] |
list of country code in 2 letter country code, as per ISO 3166-1 Alpha-2 |
reportingOptions.creativeId? |
number[] |
list of creative ids. |
reportingOptions.deviceType? |
"phone" | "tablet" |
- |
reportingOptions.direction |
"desc" | "asc" |
either 'asc' or 'desc' |
reportingOptions.format? |
"json" | "csv" |
report format type 'csv' or 'json' only |
reportingOptions.order? |
Metrics | Breakdowns |
order report according to a specific Breakdown or Metric |
reportingOptions.os? |
"android" | "ios" |
either 'ios' or 'android'. |
Stream
- Readable Stream with results - in case of when format is json each chunk will be a json list.
▸ getAssets(options?): Promise<string>
Example
{
"assets": [
{
"id": 200303,
"type": "html_iec",
"titleId": 501567,
"orientation": "all",
"source": "playworks",
"duration": null
},
{
"id": 200302,
"type": "video",
"titleId": 501567,
"orientation": "all",
"source": "none",
"duration": 17
}
],
"totalResultsCount": 6,
"requestId": "MjA1MzUzLjIwMDMwMy40LjM1OTY="
} | Name | Type | Description |
|---|---|---|
options? |
Object |
Optional parameters |
options.ids? |
number[] |
List of assets ids. |
options.pageNumber? |
number |
For paginated requests pass the next page of the request. |
options.requestId? |
string |
For paginated requests pass the requestId from the response. |
options.resultsBulkSize? |
number |
For paginated requests pass the amount of titles to return, default 100. |
options.titleId? |
number |
ID of the title of which the assets belongs to. |
options.type? |
string |
Asset type ('video', 'html', 'html_iec') |
Promise<string>
in json format of the audience list
▸ getAudienceLists(): Promise<string>
Example
{
"count": 1,
"audiences": [
{
"id": 1,
"type": "targeting",
"name": "batz",
"description": "batz",
"bundleId": "com.adsd.sdf",
"platform": "android",
"lastModified": "2017-01-31T20:00:00.000Z",
"hasActiveCampaigns": true
}
]
}Promise<string>
in json format of the audience list
▸ getBidsForCampaign(campaignId, maxRecords?): Stream
| Name | Type | Description |
|---|---|---|
campaignId |
number |
campaign id to get bids for |
maxRecords? |
number |
(optional) max number of records - default 10000 |
Stream
- ReadableStream that will contain the result
▸ getCreatives(options?): Promise<string>
| Name | Type |
|---|---|
options? |
Object |
options.pageNumber? |
string |
options.requestId? |
string |
options.resultsBulkSize? |
number |
options.titleId? |
number |
options.type? |
CreativeType |
Promise<string>
▸ getSkanReporting(startDate, endDate, metrics, reportingOptions?): Stream
| Name | Type | Description |
|---|---|---|
startDate |
string |
report start date in the following format YYYY-MM-DD |
endDate |
string |
report end date in the following format YYYY-MM-DD |
metrics |
Metrics[] |
list of report metrics. |
reportingOptions? |
Object |
Optional additional parameters. |
reportingOptions.adUnit? |
AdUnits |
- |
reportingOptions.breakdowns? |
Breakdowns[] |
list of breakdowns. |
reportingOptions.bundleId? |
string[] |
list of bundle ids |
reportingOptions.campaignId? |
number[] |
list of campaign ids |
reportingOptions.count? |
number |
maximum number of records in the report |
reportingOptions.country? |
string[] |
- |
reportingOptions.creativeId? |
number[] |
- |
reportingOptions.deviceType? |
"phone" | "tablet" |
- |
reportingOptions.direction? |
"desc" | "asc" |
either 'asc' or 'desc' |
reportingOptions.format? |
"json" | "csv" |
report format type 'csv' or 'json' only |
reportingOptions.order? |
Metrics | Breakdowns |
order report according to a specific Breakdown or Metric |
reportingOptions.os? |
"android" | "ios" |
- |
Stream
- Readable Stream with results - in case of when format is json each chunk will be a json list.
▸ getTitles(options?): Promise<string>
Example
{
"titles": [
{
"id": 113366,
"bundleId": "com.yourcompany.MiniGame",
"os": "android",
"name": "Gaming mania"
},
{
"id": 225566,
"bundleId": "com.yourcompany.BestGame",
"os": "ios",
"name": "The Best Game"
}
],
"totalResultsCount": 5,
"requestId": "MzUzMjIuODI5OTk5OS41LjI5"
}| Name | Type | Description |
|---|---|---|
options? |
Object |
Optional Params |
options.os? |
string |
'android' or 'ios' |
options.pageNumber? |
number |
For paginated requests pass the next page of the request. |
options.requestId? |
string |
For paginated requests pass the requestId from the response. |
options.resultsBulkSize? |
number |
For paginated requests pass the amount of titles to return, default 100. |
options.searchTerm? |
string |
Filter by the name or partial name of the title. |
Promise<string>
in json format of the audience list
▸ getUniversalSkanReport(date): Promise<undefined | string>
returns a copy of the raw winning postbacks data from every network, directly from Apple.
| Name | Type | Description |
|---|---|---|
date |
string |
report date |
Promise<undefined | string>
json with list of urls of the report
Example
{
"urls": [
"https://postback-hub.s3.amazonaws.com/athena/raw_data_rtm_postback_hub_csv_file/outputs/athena/cf23fe03-cf05-4189-adda-d1cc009a9b59/3/output/companyid%123456/partition_date%3D2021-10-10/compaction_id%3D1/2021_10_11_00_00_output.csv?AWSAccessKeyId=ASIAQO6NX2IJOKSSQ34R&Expires=1633937977&Signature=um69g30FsSp%2BWENsxABotPnk0q8%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEG4a"
],
"expiration": "2021-10-11 07:39:37"
}▸ updateAudienceList(audienceListData): Promise<string>
| Name | Type | Description |
|---|---|---|
audienceListData |
AudienceListData |
AudienceListData Audience List data to update |
Promise<string>
▸ updateBids(campaignBids): Promise<string>
| Name | Type | Description |
|---|---|---|
campaignBids |
CampaignBidList[] |
List of CampaignBids to update |
Promise<string>
- Array with API results.
• new AudienceListData()
▸ addAudienceListToRemove(audienceListId): void
| Name | Type |
|---|---|
audienceListId |
string |
void
▸ addAudienceListToUpdate(audienceListId): void
| Name | Type |
|---|---|
audienceListId |
string |
void
▸ addDevices(devices): void
| Name | Type |
|---|---|
devices |
string[] |
void
▸ addDevices(device): void
| Name | Type |
|---|---|
device |
string |
void
▸ toObject(): any
any
• new AudienceListMeta(name, type, description, options?)
| Name | Type |
|---|---|
name |
string |
type |
AudienceListType |
description |
string |
options? |
Object |
options.bundleId? |
string |
options.platform? |
PLATFORM |
▸ toObject(): any
any
• new CampaignBid(bid, country, applicationId?)
| Name | Type |
|---|---|
bid |
number |
country |
string |
applicationId? |
number |
• new CampaignBidList(campaignId)
| Name | Type |
|---|---|
campaignId |
number |
▸ addBid(bid): void
| Name | Type |
|---|---|
bid |
CampaignBid |
void
▸ getObjectForDelete(): any
any
▸ getObjectForUpdate(): any
any
• new Creative(name, type, language, assets?)
| Name | Type |
|---|---|
name |
string |
type |
CreativeType |
language |
string |
assets? |
CreativeAsset[] |
• get assets(): CreativeAsset[]
• get language(): string
string
• get name(): string
string
• get type(): CreativeType
▸ addAsset(asset): void
| Name | Type |
|---|---|
asset |
CreativeAsset |
void
▸ isValidated(): boolean
boolean
- id
- usageType
• new CreativeAsset(id, usageType)
| Name | Type | Description |
|---|---|---|
id |
number |
Asset ID from the asset API |
usageType |
UsageType |
Usage Type of the asset: For videoAndCarousel creative- video (mp4), left (image), middle (image), right (image). For videoAndInteractiveEndCard creative- video (mp4), interactiveEndCard (html). For videoAndFullScreen creative- video (mp4), phonePortrait (image), phoneLandscape (image), tabletPortrait (image) [optional], tabletLandscape (image) [optional]. |
• get id(): number
number
• get usageType(): UsageType
AppPromotionEnums.AdUnits
• Banner = "banner"
• Interstitial = "interstitial"
• Offerwall = "offerWall"
• RewardedVideo = "rewardedVideo"
AppPromotionEnums.Breakdowns
• AdUnit = "adUnit"
• Application = "application"
• Campaign = "campaign"
• Country = "country"
• Creatives = "creative"
• Day = "day"
• DeviceType = "deviceType"
• OS = "os"
• Title = "title"
AppPromotionEnums.CreativeType
• INTERACTIVE_VIDEO = "interactiveVideo"
• PLAYABLE = "playable"
• VIDEO_CAROUSEL = "videoAndCarousel"
• VIDEO_FULLSCREEN = "videoAndFullScreen"
• VIDEO_INTERACTIVE_ENDCARD = "videoAndInteractiveEndCard"
AppPromotionEnums.Metrics
• Clicks = "clicks"
• Completions = "completions"
• Impressions = "impressions"
• Installs = "installs"
• Spend = "spend"
• StoreOpens = "storeOpens"
AppPromotionEnums.PLATFORM
• Android = "android"
• iOS = "ios"
AppPromotionEnums.UsageType
• INTERACTIVE_ENDCARD = "interactiveEndCard"
• LEFT = "left"
• MIDDLE = "middle"
• PHONE_LANDSCAPE = "phoneLandscape"
• PHONE_PORTRAIT = "phonePortrait"
• RIGHT = "right"
• TABLET_LANDSCAPE = "tabletLandscape"
• TABLET_PORTRAIT = "tabletPortrait"
• VIDEO = "video"
• Suppression = "suppression_static"
• Targeting = "targeting"