대규모 보고서 실행
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
애드센스 관리 API에서 보고서는 최대 100,000개까지 행이 표시되도록 기본 설정되어 있습니다. 만약
한도에 근접하거나 데이터를 처리하는 동안 성능 문제가 발생하는 경우
몇 가지 도움말이 도움이 될 것입니다.
보고서의 크기 줄이기
보고서를 더 작게 만들 때 가장 먼저 살펴봐야 할 것은 측정기준의 목록입니다.
사용: 추가하는 각 측정기준은 반환되는 행 수에 배수 효과를 줍니다.
필요한 크기만 추가하면 됩니다.
보고서 분할하기
보고서의 일부분에 대해서만 매우 정확한 데이터가 필요한 경우가 있습니다.
덜 자세하게 볼 수 있습니다 예를 들어 이전 예측의 매우 정확한 세부정보가 필요할 수 있습니다.
국가별, 채널별 통계로 확인할 수 있지만 정말로 필요한 것은
국가 수준의 데이터를 얻을 수 있습니다. 따라서 특정 타겟에 대해 복잡한 보고서를 실행할 수
그 이전에는 더 간단한 것이었습니다.
CSV로 전환하여 JSON 파싱 방지
애드센스 관리 API를 이용하면 일반적인 JSON 형식이 아닌 CSV 형식으로 보고서를 받을 수 있습니다.
이렇게 하려면 다른 generateCsv 메서드를 호출하기만 하면 됩니다.
예
DATE,CLICKS
2014-01-01,2
2014-01-02,1
2014-01-03,4
2014-01-04,1
2014-01-05,1
다음 단계
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eAdSense Management API reports have a default maximum length of 100,000 rows, and exceeding this limit may cause performance issues.\u003c/p\u003e\n"],["\u003cp\u003eMinimizing the number of dimensions used in a report can significantly reduce its size and improve performance.\u003c/p\u003e\n"],["\u003cp\u003eFor reports requiring varying levels of granularity, consider splitting them into multiple reports with different dimension sets to optimize data retrieval.\u003c/p\u003e\n"],["\u003cp\u003eSwitching from JSON to CSV format for report retrieval can avoid JSON parsing overhead and improve efficiency.\u003c/p\u003e\n"]]],["To manage large AdSense reports, reduce the scale by minimizing the number of dimensions used, as each dimension increases rows. Split reports into detailed and less detailed sections based on data accuracy needs. For improved performance, switch from JSON to CSV format by using the `generateCsv` method. Consider batching and optimizing dimension usage for further improvements.\n"],null,["# Run Large Reports\n\nReports have a maximum length of 100,000 rows in the AdSense Management API, by default. If you're\nrunning close to these limits, or running into performance issues while processing the data, here\nare some tips that may help.\n\nReducing the scale of your report\n---------------------------------\n\nThe first thing to look for when trying to make a report smaller is the list of dimensions you're\nusing; each dimension you add has a multiplicative effect on the number of returned rows. Make sure\nyou only add the dimensions you need!\n\nSplitting your reports\n----------------------\n\nSometimes, you only need extremely accurate data for a portion of the report, with the rest\nallowing for less detail. For example, you could need extremely accurate details for the previous\nmonth's earnings, with stats per country and channel across every day, but only really need the\ncountry-level data when looking before that. You could therefore run a complex report for the\nprevious month, but a simpler one for the time before that.\n\nAvoid JSON parsing by switching to CSV\n--------------------------------------\n\nThe AdSense Management API allows you to receive your reports in CSV format, rather than the usual JSON.\n\nTo do that, simply call the alternate [generateCsv](/adsense/management/reference/rest/v2/accounts.reports/generateCsv) method.\n\n#### Example\n\n```\nDATE,CLICKS\n2014-01-01,2\n2014-01-02,1\n2014-01-03,4\n2014-01-04,1\n2014-01-05,1\n```\n\nNext steps\n----------\n\n- [Batching](/adsense/management/reporting/batching)\n- [Using Multiple Dimensions Wisely](/adsense/management/reporting/dimensions_metrics#usingmultiple)"]]