계정
현재 계정에 대한 세부정보 가져오기
function getCurrentAccountDetails() {
const currentAccount = AdsApp.currentAccount();
console.log(`Customer ID: ${currentAccount.getCustomerId()}`);
console.log(`Currency Code: ${currentAccount.getCurrencyCode()}`);
console.log(`Timezone: ${currentAccount.getTimeZone()}`);
const stats = currentAccount.getStatsFor('LAST_MONTH');
console.log(`${stats.getClicks()} clicks last month`);
console.log(`${stats.getImpressions()} impressions last month`);
return stats;
}
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-09-12(UTC)
[null,null,["최종 업데이트: 2024-09-12(UTC)"],[[["This script retrieves essential details of your Google Ads account, such as customer ID, currency code, and timezone."],["It also fetches and displays performance statistics, specifically the total clicks and impressions for the previous month."]]],[]]