대규모 보고서 실행
애드센스 관리 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 계열사의 등록 상표입니다.
최종 업데이트: 2024-09-09(UTC)
[null,null,["최종 업데이트: 2024-09-09(UTC)"],[[["AdSense Management API reports have a default maximum length of 100,000 rows, and exceeding this limit may cause performance issues."],["Minimizing the number of dimensions used in a report can significantly reduce its size and improve performance."],["For reports requiring varying levels of granularity, consider splitting them into multiple reports with different dimension sets to optimize data retrieval."],["Switching from JSON to CSV format for report retrieval can avoid JSON parsing overhead and improve efficiency."]]],["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"]]