Hesaplar
Koleksiyonlar ile düzeninizi koruyun İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Geçerli hesabın ayrıntılarını alma
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; }
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-08-21 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-08-21 UTC."],[[["\u003cp\u003eThis script retrieves essential details of your Google Ads account, such as customer ID, currency code, and timezone.\u003c/p\u003e\n"],["\u003cp\u003eIt also fetches and displays performance statistics, specifically the total clicks and impressions for the previous month.\u003c/p\u003e\n"]]],[],null,["Get details on the current account \n\n```gdscript\nfunction getCurrentAccountDetails() {\n const currentAccount = AdsApp.currentAccount();\n console.log(`Customer ID: ${currentAccount.getCustomerId()}`);\n console.log(`Currency Code: ${currentAccount.getCurrencyCode()}`);\n console.log(`Timezone: ${currentAccount.getTimeZone()}`);\n const stats = currentAccount.getStatsFor('LAST_MONTH');\n console.log(`${stats.getClicks()} clicks last month`);\n console.log(`${stats.getImpressions()} impressions last month`);\n return stats;\n}\n```"]]