0

I am new using the AdSense API, but i really need to use it :)

I am trying to use Accounts.customchannels: get

Where can i find accountId and adClientId in AdSense account?

When i access to Account information i can see:

Publisher ID: pub-xxxxxxxxxxx and Customer ID: xxxxxxxx

Is this the information that i need? Which one is the accountId and the adClientId?

I already tryed to insert this values in diffrent ways, but the result is always:

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

Thank you all.

4

1 回答 1

0

还有一些其他 AdSense API 方法可以为您提供您正在寻找的字段。

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

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

于 2018-11-12T15:19:22.293 回答