【问题标题】:Google Ads API: want to find the cost data through APIGoogle Ads API:想通过 API 查找成本数据
【发布时间】:2022-11-21 07:52:16
【问题描述】:

图片显示了与广告帐户相关的广告概览,我需要通过 API 找到图片中标记的费用

我试过


ad_group metrics.average_cost, metrics.cost, 
    account_budget.amount_served_micros, 
    account_budget.total_adjustments_micros, 
    account_budget.proposed_spending_limit_micros,
    account_budget_proposal.account_budget,
    account_budget_proposal.approved_spending_limit_micros,      account_budget_proposal.proposed_spending_limit_micros, 
    campaign.campaign_budget, 
    campaign_budget.amount_micros, 
    campaign_budget.total_amount_micros

我在这些中获得的大多数值都是零或与概览中的成本无关(在图片中标记)。有人可以通过 GoogleAds API 帮助我在广告概览屏幕中找到成本值(在图像中标记)吗?

【问题讨论】:

  • 你能分享你的代码和/或你得到的任何错误吗?
  • 我没有收到任何错误,我想通过 API 获取图片中显示的成本值,我可以从哪个 API 端点获取它?
  • 这是帐户的总成本值吗?

标签: google-ads-api


【解决方案1】:

您的查询不是完整的查询。我们不知道您查询的是什么资源。例如,您为什么要求预算?

如果您分享您的代码,我们也许可以为您提供更多帮助。但是您需要从活动资源中查询活动成本并自行汇总。

https://developers.google.com/google-ads/api/fields/v12/campaign?hl=en

【讨论】:

    猜你喜欢
    • 2019-01-18
    • 2022-11-04
    • 1970-01-01
    • 1970-01-01
    • 2021-05-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多