日付が入力されていません
AdSense Management API で日次レポートを実行する際には、返されるデータに関係なく、毎日 1 行ずつ表示されることが想定されます。ただし、場合によっては、リクエストされた種類のイベントがログに記録されなかったという理由で、特定の日のデータが返されないこともあります。
ディメンション: DATE
指標: CLICKS
、EARNINGS
対応:
{
"totalMatchedRows": "4",
"headers": [
{ "name": "DATE", "type": "DIMENSION" },
{ "name": "CLICKS", "type": "METRIC_TALLY" },
{ "name": "EARNINGS", "type": "METRIC_CURRENCY", "currency": "USD" }
],
"rows": [
{ "cells":
[ {"value": "2014-01-08"}, {"value": "3"}, {"value": "0.41"} ],
[ {"value": "2014-01-09"}, {"value": "5"}, {"value": "0.49"} ],
[ {"value": "2014-01-12"}, {"value": "2"}, {"value": "0.19"} ],
[ {"value": "2014-01-13"}, {"value": "1"}, {"value": "0.03"} ]
}
],
"totals": {
"cells": [
{}, {"value": "13"}, {"value": "1.12"}
]
},
"averages": {
"cells": [
{}, {"value": "2"}, {"value": "0.28"}
]
},
"startDate": {"year": 2014, "month": 1, "day": 8},
"endDate": {"year": 2021, "month": 1, "day": 13}
}
ご覧のように、2014-01-10 または 2014-01-11 についてはクリック イベントや収益イベントがないため、行が返されません。
次のステップ
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-09 UTC。
[null,null,["最終更新日 2024-09-09 UTC。"],[[["Daily AdSense reports may not contain a row for every date if there were no clicks or earnings on that specific day."],["The example response demonstrates missing rows for dates (2014-01-10 and 2014-01-11) with no click or earning events."],["If you specify a date range in your report, be aware you may get an incomplete set of dates back depending on activity."],["The report includes totals and averages for clicks and earnings over the specified date range."]]],["The AdSense Management API daily report may not return data for every day in a specified range. The `DATE` dimension, along with `CLICKS` and `EARNINGS` metrics, can result in missing rows. If no events of the requested type occur on a given day, no data is logged. For example, the provided data from January 8th to 13th, 2014, has no entries for January 10th and 11th because there were no clicks or earnings on those days. The total matched rows indicate 4 days of activity.\n"]]