Yahoo gemini 获取工作状态

Yahoo gemini Get job status

我在关注这个 link

我已经成功得到这个结果:

{
"errors": null,
"response": {
"jobId": "628cf1c0cd1c5d8a6c1765f618b7a0be34c50bc1564618",
"status": "submitted",
"jobResponse": null
}
}

ant 尝试使用 GET 调用来检查作业的状态,正如他们所要求的那样

https://api.admanager.yahoo.com/v1/rest/reports/custom/628cf1c0cd1c5d8a6c1765f618b7a0be34c50bc1564618?access_token=&advertiserId=21

但我收到一条错误信息:

<?xml version="1.0" encoding="UTF-8"?>
-
Please provide valid credentials. OAuth oauth_problem="unable_to_determine_oauth_type", realm="yahooapis.com"

我做错了什么? 我什至尝试添加访问令牌

Yahoo API 除了他们有一些系统维护之外并不是那么精确

这是 url 测试作业是否完成的方式:

String urlToCheckIfDownloadReady = "https://api.admanager.yahoo.com/v1/rest/reports/custom/" + jobId + "?access_token=" + refreshToken + "&advertiserId=" + config.mccCustomerId;

if status = completed

从 Json 响应中获取 jobResponse 然后下载它