|
平均排名下载服务 | 平均排名下载服务(Restful)
getCpcRankStatus
查询任务是否生成。
请求方式:
POST(HTTPS)
请求地址:
SERVER_HOST/api/v2/cpcrank/getCpcRankStatus
请求参数体:
{
"body": {//
"rankId": ""//
},
"header": {
"adType": 1,
"agentpassword": "",
"agentusername": "",
"apiusertype": "",
"password": "xxxxxx",
"token": "xxxxxx",
"username": "xxxxxx"
}
}
|
响应结果:
{
"data": {//
"isGenerated": 0//
},
"desc": "success",
"failures": [],
"oprs": 1,
"oprtime": 1,
"quota": 1,
"rquota": 100,
"status": 0
}
|
getCpcRankPath
获取排名下载地址
请求方式:
POST(HTTPS)
请求地址:
SERVER_HOST/api/v2/cpcrank/getCpcRankPath
请求参数体:
{
"body": {//
"rankId": ""//
},
"header": {
"adType": 1,
"agentpassword": "",
"agentusername": "",
"apiusertype": "",
"password": "xxxxxx",
"token": "xxxxxx",
"username": "xxxxxx"
}
}
|
响应结果:
{
"data": {//
"rankPath": ""//
},
"desc": "success",
"failures": [],
"oprs": 1,
"oprtime": 1,
"quota": 1,
"rquota": 100,
"status": 0
}
|
getCpcRankId
获取下载平均排名的任务ID。
通过 CpcRankService ,您可以下载帐户所有有消耗的关键词平均排名信息。您首先需要通过 getCpcRankId() 方法获得一个字符串类型的 rankId ,然后通过调用 getCpcRankStatus() 方法检查数据是否产生。待产生后,则可调用 getCpcRankPath() 方法获取文件的下载地址。根据该地址即可下载您所需要的整帐户文件。 同报告 id 一样,下载任务 id 采用 <32 位 16 进制数 > 的取值形式。 当天7点后可获取昨天的数据。
请求方式:
POST(HTTPS)
请求地址:
SERVER_HOST/api/v2/cpcrank/getCpcRankId
请求参数体:
{
"body": {//
"queryDate": "",//
"deviceType": 0//
},
"header": {
"adType": 1,
"agentpassword": "",
"agentusername": "",
"apiusertype": "",
"password": "xxxxxx",
"token": "xxxxxx",
"username": "xxxxxx"
}
}
|
响应结果:
{
"data": {//
"rankId": ""//
},
"desc": "success",
"failures": [],
"oprs": 1,
"oprtime": 1,
"quota": 1,
"rquota": 100,
"status": 0
}
|
|