1

我已成功使用 Google 的 AdSense API 检索付款。我用来测试应用程序的 AdSense 帐户没有任何已完成的付款。

我正在使用Accounts.payments:list来检索付款,目前我只得到一行Id = "unpaid"。此条目指定可用于支付的金额。

我的问题是结果中其他可能的条目是什么?具体来说,我怎样才能找到最后完成的付款?

谢谢您的帮助。

4

1 回答 1

0

items[] description: "The list of Payments for the account. One or both of a) the account's most recent payment; and b) the account's upcoming payment".

As far I can see id can be "unpaid", or date of the last payment (probably the "payment issued" date):

{
 "kind": "adsense#payments",
 "items": [
  {
   "kind": "adsense#payment",
   "id": "unpaid",
   "paymentAmount": "***.**",
   "paymentAmountCurrencyCode": "***"
  },
  {
   "kind": "adsense#payment",
   "id": "****-**-**",
   "paymentDate": "****-**-**",
   "paymentAmount": "***.**",
   "paymentAmountCurrencyCode": "***"
  }
 ]
}

how can I find last completed payment?

In my understanding, that is exactly what Accounts.payments:list is (or will be) returning:

  • your account current balance
  • last payment (if there was any)
于 2014-07-28T08:51:43.473 回答