Reporting API

概述

报告API(Reporting API)旨在为广告商及发布商提供一种程序方法,可供访问显示在控制板上的数据。你的报告接口参数(Reporting API Key)对于所有应用都应该是一样的。每个应用都会有一个唯一的Reporting API ID,该ID可在各个应用的页面找到。

主机协议抬头API
https://ssl.vungle.com Content-Type: application/json

将API key当作查询参数保障安全性。

你的API key可以在Vungle控制板的 Reports page 上看到。如果你还没有,请发邮件到 tech-support@vungle.com 来申请一个!

广告商

资源参数描述
GET /api/campaigns key=[API Key] active=[true/false] 返回你所拥有广告活动的列表,如果active设置为true/false,那会返回所有active/inactive的广告活动。

示例回应:

{   
    "rate" : 0.01,
    "rateType" : "complete",
    "campaignId" : "51896da23436ae313c3939b9",
    "type" : "external",
    "name" : "Feed the Rat",
    "spent" : 2131
}

资源参数描述
GET /api/campaigns/[Campaign ID] key=[API Key] date=[YYYY-MM-DD] 返回指定日期指定广告活动的统计数据

示例回应:

{
    "clicks" : 1129,
    "completedViews" : 23080,
    "date" : "2012-08-19",
    "campaignId" : "51896da23436ae313c3939b9",
    "installs" : 590,
    "impressions" : 26722,
    "name" : "Feed the Rat",
    "views" : 26546,
    "dailySpend": 566
}
资源参数描述
GET /api/campaigns/[Campaign ID]/installs key=[API Key] start=[YYYY-MM-DD] end=[YYYY-MM-DD]

返回指定日期期间归属于指定广告活动的安置列表

示例回应:

{
    "time_clicked": "2012-08-17T01:52:32.024Z",
    "time_installed": "2012-08-17T01:54:33.034Z",
    "openUDID": "e2c42c159286124f34702e770cc702240c2707e8",
    "mac": "98d6bb786fdd"
},
{
    "time_clicked": "2012-08-17T01:52:32.024Z",
    "time_installed": "2012-08-17T01:54:33.034Z",
    "openUDID": "e2c42c159286124f34702e770cc702240c2707e8",
    "mac": "98d6bb786fdd"
}

发行商

资源参数描述
GET /api/applications key=[API Key] 返回你拥有的应用列表。

示例回应:

{
    "id": "51896d9c3436ae313c3939b8",
    "appId" : "com.amazingGames.ProjectComet",
    "name" : "Project Comet", 
    "installs" : 1372,
    "platform" : "iOS",
    "connection" : "all", 
    "status" : "a"
}
资源参数描述
GET /api/applications/[REPORTING API ID] key=[API Key] date=[YYYY-MM-DD]
or
key=[API Key] start=[YYYY-MM-DD] end=[YYYY-MM-DD]
返回指定日期指定应用的统计数据列表

示例回应:

{
    "date" : "2012-08-16",
    "impressions" : 5165,
    "views" : 5156,
    "completes" : 1686,
    "revenue" : 16.86,
    "eCPM" : 3.26
}

 

还有其它问题?提交请求

评论