【问题标题】:Where to find accountId and adClientId in AdSense account?在 AdSense 帐户中哪里可以找到 accountId 和 adClientId?
【发布时间】:2019-04-08 04:07:32
【问题描述】:

我是使用 AdSense API 的新手,但我真的需要使用它:)

我正在尝试使用Accounts.customchannels: get

我在 AdSense 帐户中的哪里可以找到 accountId 和 adClientId?

当我访问帐户信息时,我可以看到:

发布者 ID:pub-xxxxxxxxxxx 和客户 ID:xxxxxxxx

这是我需要的信息吗? accountId 和 adClientId 是哪一个?

我已经尝试以不同的方式插入这些值,但结果总是:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "notFound",
    "message": "Ad client not found.",
    "locationType": "parameter",
    "location": "adClientId"
   }
  ],
  "code": 404,
  "message": "Ad client not found."
 }
}

谢谢大家。

【问题讨论】:

    标签: adsense adsense-api


    【解决方案1】:

    还有一些其他 AdSense API 方法可以为您提供所需的字段。

    Accounts: list 将返回您有权访问的Accounts 列表。 id 字段将对应于您要查找的 accountId 字段。

    Accounts.adclients: list 将返回给定帐户的AdClients 列表(使用上一步中的 accountId)。 id 字段将对应于 adClientId 字段。

    【讨论】:

      猜你喜欢
      • 2011-10-22
      • 2014-03-10
      • 2017-03-03
      • 1970-01-01
      • 2011-04-16
      • 1970-01-01
      • 1970-01-01
      • 2012-11-30
      • 2011-08-22
      相关资源
      最近更新 更多