如何调用Ads API下载报告? [英] How do I call the Ads API to download a report?

查看:82
本文介绍了如何调用Ads API下载报告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序设置有客户端ID和秘密,我有我的开发人员令牌,我在eclipse中设置了我的Maven项目,现在如何调用Ads API来下载报告?我在广告api网站上看到的任何内容都没有多少有用的信息,
这一切都指向github这是一堆乱七八糟的文件。我想要做的就是下载一些关于我的广告帐户的数据(费用,转化次数等),但我不知道要下载什么文件或做什么来提出报告请求。我觉得如果有人能指出我正确的方向,那么
应该是一件非常简单的事情。

I have my application setup with a client ID and secret, I have my developer token, I have my Maven project set up in eclipse, now how do I call the Ads API to download a report? Nothing I've seen on the ads api website has had much useful information, it all points you to the github which is a mess of hundreds of files. All I want to do is download some data about my ads account (Cost, conversions, etc), but I have no idea what files to download or what to do to make a report request. I feel like this should be a pretty simple thing to do if someone could point me in the right direction.

推荐答案

GitHub托管整个包含示例的SDK,因此您可以选择是克隆整个存储库还是单独创建所需的文件。我建议你克隆回购然后再使用

例子 这里
。例如,编辑
ExampleBase.java
,包含您的客户端ID和DeveloperToken,然后运行
ReportRequests.java
。 

GitHub hosts the entire SDK with samples, so you can choose whether to clone the entire repo or create the needed files individually. I suggest that you clone the repo and then just use the examples here. For example edit ExampleBase.java with your client ID and DeveloperToken and then run ReportRequests.java

注意, SDK使用
ReportingServiceManager
来调用底层的
SubmitGenerateReport

PollGenerateReport
服务运营。我们会为您处理轮询和重试,但您可以根据需要修改频率。 

Note, the SDK uses ReportingServiceManager to call the underlying SubmitGenerateReport and PollGenerateReport service operations. The polling and retries are handled for you, although you can modify the frequency as needed. 

如果您有任何后续问题,请与我们联系。

Please let me know if you have any follow up questions.

致以最诚挚的问候,

Eric


这篇关于如何调用Ads API下载报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆