请求每日活动,使用Python消费信息 [英] Requesting daily campaign, spend information using Python

查看:76
本文介绍了请求每日活动,使用Python消费信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于使用bing ads api进行举报,我有几个问题:

I have couple of questions regarding using the bing ads api for reporting purpose:

1。有没有办法使用BingAds API下载帐户的每日广告系列支出数据?

1. Is there a way of downloading daily campaign spend data for an account using the BingAds API?

以前用户对问题的回答表明此设施在2018年不可用。现在是否有解决方案?

Answers to questions by previous users suggest that this facility was not available in 2018. Is there a solution now?

2. 你能帮我解决这个问题吗?我有一个刷新令牌,开发人员令牌,app id(客户端ID)&对象ID。

2.  Can you also help me with the request? I have a refresh token, developer token, app id (client id) & object id.

     我没有很多Oauth身份验证的经验。但是,根据研究,我了解如果我使用grant type ='refresh token',我可以使用CLIENT ID和CLIENT SECRET来访问报告。  bingads python库中是否有
函数,可以让我验证和下载数据广告系列,轻松消费数据?

     I haven't got a lot of experience with Oauth authentication. However, based on research I understand that if I use grant type = ' refresh token', I can use the CLIENT ID and CLIENT SECRET to get access to the reports.  Is there a function within the bingads python library that will allow me to authenticate and download the data campaign, spend data easily?

谢谢

推荐答案

你好。

我知道以前的一些帖子已经提到过每天通过任何轻量级服务操作都无法支出,例如

GetAccountMonthlySpend
。那是你指的是什么?在任何情况下,您都可以通过报告服务获得每日支出,如

这个例子
。请务必添加
支出列
并设置
汇总
至每日。此外,如果您使用GitHub中的示例,请务必下载整个v13目录并使用帮助文件,例如,

auth_helper.py
。您需要在auth_helper.py中设置客户端ID(应用程序ID)。请参阅auth_helper.py和此

快速入门
有关刷新令牌的详细信息。 

I am aware that some previous threads have mentioned that daily spend is not available via any lightweight service operation such as GetAccountMonthlySpend. Is that what you are referring to? In any case you can get daily spend via the Reporting service as shown in this example. Be sure to include the Spend column and set Aggregation to Daily. Also if you use the samples from GitHub be sure to download the entire v13 directory and use the helper files e.g., auth_helper.py. You'll need to set your client ID (Application ID) in auth_helper.py. See auth_helper.py and this Quick Start for more details about refresh token. 

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

Please reach out if you have any follow up questions. 

祝您好运,

Eric


这篇关于请求每日活动,使用Python消费信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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