Adsense keeps giving 404 Account not found when calling adsense.accounts.get method

254 views
Skip to first unread message

Syne Oravivattanakul

unread,
Aug 15, 2014, 2:16:11 PM8/15/14
to adsen...@googlegroups.com, Choapet Oravivattanakul
We keep getting "404 Not Found - Account not found [location: accountId]" error when trying to pull data from one Adsense account using the API call adsense.accounts.get. Please see below for detail. The exact same API call worked fine just 3 days ago on Aug 11, 2014. Interestingly, we are able to pull data from other accounts associated with the same Adsense using the same API call and the same credential. Note that the account id we pass as a parameter does exist since we get the account id from adsense.accounts.list method.

Any insights/suggestions are very much appreciated.

Request
=====
GET https://www.googleapis.com/adsense/v1.4/accounts/abc?key={YOUR_API_KEY}

Authorization:  Bearer xyz
X-JavaScript-User-Agent:  Google APIs Explorer

Response
======
404 Not Found

- Show headers -

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

Jose Alcérreca (AdSense API Team)

unread,
Aug 29, 2014, 5:03:58 AM8/29/14
to adsen...@googlegroups.com, sy...@yahoo-inc.com
Hi Syne,

Is it possible that the account is suspended? Can you log into AdSense with it and check for messages?

Cheers,
Jose

Jose Alcérreca (AdSense API Team)

unread,
Aug 29, 2014, 5:20:28 AM8/29/14
to adsen...@googlegroups.com, sy...@yahoo-inc.com
Hi Syne,

The problem is being investigated, it has nothing to do with the account.

Cheers,
Jose
Reply all
Reply to author
Forward
0 new messages