শুরু করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আপনার প্রথম স্ক্রিপ্ট চালু করতে এই পদক্ষেপগুলি অনুসরণ করুন৷
Google বিজ্ঞাপন অ্যাকাউন্ট
- আপনার Google বিজ্ঞাপন অ্যাকাউন্টে সাইন ইন করুন ।
- বাম নেভিগেশনের টুলস মেনু থেকে, বাল্ক অ্যাকশন , তারপর স্ক্রিপ্ট নির্বাচন করুন। এছাড়াও আপনি Google বিজ্ঞাপন অনুসন্ধান বারে "স্ক্রিপ্ট" অনুসন্ধান করে এই পৃষ্ঠায় নেভিগেট করতে পারেন।
- + আইকন টিপুন
একটি স্ক্রিপ্ট যোগ করতে। আপনি ড্রপ-ডাউন মেনু থেকে স্ক্রিপ্ট টেমপ্লেট ব্রাউজ করতে পারেন, কিন্তু এই অনুশীলনের জন্য, "নতুন স্ক্রিপ্ট" নির্বাচন করুন। - আপনি ঐচ্ছিকভাবে "স্ক্রিপ্টের নাম" পাঠ্য ক্ষেত্রে আপনার স্ক্রিপ্টের জন্য একটি নাম প্রদান করতে পারেন৷ এটি আপনাকে সংগঠিত থাকতে এবং স্ক্রিপ্টটি কী করে তা মনে রাখতে সহায়তা করতে পারে।
প্রধান ফাংশন প্রতিস্থাপন, সম্পাদক এলাকায় নিম্নলিখিত কোড অনুলিপি এবং পেস্ট করুন:
function main() {
// Get the campaign names from all the campaigns
const rows = AdsApp.search('SELECT campaign.name FROM campaign');
console.log('My campaigns:');
// Iterate through the campaigns and print the campaign names
for (const row of rows) {
console.log(row.campaign.name);
}
}
অনুরোধ করা হলে, অনুমোদন ক্লিক করুন যাতে স্ক্রিপ্ট আপনার পক্ষ থেকে অ্যাকাউন্ট অ্যাক্সেস করতে পারে। প্রতিটি স্ক্রিপ্টের জন্য এটি একবার করতে হবে।
প্রিভিউ মোডে স্ক্রিপ্ট চালানোর জন্য পূর্বরূপ ক্লিক করুন। ফলাফল পরিবর্তন / লগ প্যানেলে প্রদর্শিত হবে। এই উদাহরণের জন্য, আপনি লগগুলিতে আপনার প্রচারের নামগুলি দেখতে পাবেন।
আপনি পূর্বরূপ ফলাফলের সাথে খুশি হলে, আপনার স্ক্রিপ্ট চালানোর জন্য রান ক্লিক করুন এবং স্ক্রিপ্ট ইতিহাস পৃষ্ঠা খুলুন। এই পৃষ্ঠাটি তাদের স্থিতি এবং ফলাফলের তথ্য সহ সাম্প্রতিক চালানো স্ক্রিপ্টগুলি প্রদর্শন করে।
পরিবর্তন এবং লগগুলির একটি বিশদ দৃশ্য পেতে, পরিবর্তন কলামের লিঙ্কটিতে ক্লিক করুন যা আপনি এইমাত্র যে স্ক্রিপ্টটি চালিয়েছেন তার সাথে মিল রয়েছে৷ আপনি একই লগ আউটপুট দেখতে হবে যে পূর্বরূপ পূর্বরূপ ছিল.
ম্যানেজার অ্যাকাউন্ট
বিজ্ঞাপন ম্যানেজার স্ক্রিপ্ট চালানোর জন্য প্রথমে আপনার একটি Google Ads ম্যানেজার অ্যাকাউন্ট থাকতে হবে।
- আপনার Google Ads ম্যানেজার অ্যাকাউন্টে সাইন ইন করুন ।
- বাম নেভিগেশনের টুলস মেনু থেকে, বাল্ক অ্যাকশন , তারপর স্ক্রিপ্ট নির্বাচন করুন। এছাড়াও আপনি Google বিজ্ঞাপন অনুসন্ধান বারে "স্ক্রিপ্ট" অনুসন্ধান করে এই পৃষ্ঠায় নেভিগেট করতে পারেন।
- + আইকন টিপুন
একটি স্ক্রিপ্ট যোগ করতে। আপনি ড্রপ-ডাউন মেনু থেকে স্ক্রিপ্ট টেমপ্লেট ব্রাউজ করতে পারেন, কিন্তু এই অনুশীলনের জন্য, "নতুন স্ক্রিপ্ট" নির্বাচন করুন। - আপনি ঐচ্ছিকভাবে "স্ক্রিপ্টের নাম" পাঠ্য ক্ষেত্রে আপনার স্ক্রিপ্টের জন্য একটি নাম প্রদান করতে পারেন৷ এটি আপনাকে সংগঠিত থাকতে এবং স্ক্রিপ্টটি কী করে তা মনে রাখতে সহায়তা করতে পারে।
প্রধান ফাংশন প্রতিস্থাপন, সম্পাদক এলাকায় নিম্নলিখিত কোড অনুলিপি এবং পেস্ট করুন:
function main() {
// Retrieve all children accounts.
const accountIterator = AdsManagerApp.accounts().get();
// Iterate through the account list.
for (const account of accountIterator) {
// Get stats for the child account.
const stats = account.getStatsFor("THIS_MONTH");
// And log it.
console.log(`${account.getCustomerId()},${stats.getClicks()},` +
`${stats.getImpressions()},${stats.getCost()}`);
}
}
অনুরোধ করা হলে, অনুমোদন ক্লিক করুন যাতে স্ক্রিপ্ট আপনার পক্ষ থেকে অ্যাকাউন্ট অ্যাক্সেস করতে পারে। প্রতিটি স্ক্রিপ্টের জন্য এটি একবার করতে হবে।
প্রিভিউ মোডে স্ক্রিপ্ট চালানোর জন্য পূর্বরূপ ক্লিক করুন। ফলাফল পরিবর্তন / লগ প্যানেলে প্রদর্শিত হবে। এই উদাহরণের জন্য, আপনার বাচ্চাদের অ্যাকাউন্ট এবং তাদের মেট্রিকগুলি লগগুলিতে প্রদর্শিত হওয়া উচিত।
আপনি পূর্বরূপ ফলাফলের সাথে খুশি হলে, আপনার স্ক্রিপ্ট চালানোর জন্য রান ক্লিক করুন এবং স্ক্রিপ্ট ইতিহাস পৃষ্ঠা খুলুন। এই পৃষ্ঠাটি তাদের স্থিতি এবং ফলাফলের তথ্য সহ সাম্প্রতিক চালানো স্ক্রিপ্টগুলি প্রদর্শন করে।
পরিবর্তন এবং লগগুলির একটি বিশদ দৃশ্য পেতে, পরিবর্তন কলামের লিঙ্কটিতে ক্লিক করুন যা আপনি এইমাত্র যে স্ক্রিপ্টটি চালিয়েছেন তার সাথে মিল রয়েছে৷ আপনি একই লগ আউটপুট দেখতে হবে যে পূর্বরূপ পূর্বরূপ ছিল.
আরো নমুনা স্ক্রিপ্ট স্নিপেট জন্য, আমাদের উদাহরণ পৃষ্ঠা দেখুন.
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-09-03 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-09-03 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eLaunching your first Google Ads script involves signing in, navigating to the Scripts section, and adding a new script.\u003c/p\u003e\n"],["\u003cp\u003eYou need to copy and paste provided code snippets into the script editor to define its functionality, such as analyzing keywords or account statistics.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is necessary for the script to access your account data, and preview mode allows for testing before full execution.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Ads manager accounts are required to run Ads Manager scripts, which can access and process data from multiple child accounts.\u003c/p\u003e\n"],["\u003cp\u003eMore script examples and resources are available on the Google Ads Scripts examples page for further exploration and customization.\u003c/p\u003e\n"]]],[],null,["# Get started\n\nFollow these steps to launch your first script. \n\n### Google Ads accounts\n\n1. [Sign in](//ads.google.com/) to your Google Ads account.\n2. From the Tools menu in the left navigation, select **Bulk actions** , then **Scripts**. You can also navigate to this page by searching for \"Scripts\" in the Google Ads search bar.\n3. Press the + icon to add a script. You can browse script templates from the drop-down menu, but for the sake of this exercise, select \"New script\".\n4. You can optionally provide a name for your script in the \"Script name\" text field. This can help you stay organized and remember what the script does.\n5. Copy and paste the following code into the editor area, replacing the main\n function:\n\n function main() {\n // Get the campaign names from all the campaigns\n const rows = AdsApp.search('SELECT campaign.name FROM campaign');\n\n console.log('My campaigns:');\n // Iterate through the campaigns and print the campaign names\n for (const row of rows) {\n console.log(row.campaign.name);\n }\n }\n\n6. When prompted, click **Authorize** so the script can access the account on\n your behalf. This has to be done once for each script.\n\n7. Click **Preview** to run the script in [preview mode](/google-ads/scripts/docs/concepts/preview).\n Results will appear in the **Changes** / **Logs** panel. For this example,\n you should see your campaign names displayed in the Logs.\n\n8. When you're happy with the preview results, click **Run** to run your\n script and open the **Script history** page. This page displays the\n most recently run scripts, with information on their status and results.\n\n9. To get a detailed view of changes and logs, click the link in the\n **Changes** column that corresponds to the script you just ran. You should\n see the same log output that was previewed before.\n\n### Manager accounts\n\nYou must first have a\n[Google Ads manager account](//support.google.com/google-ads/answer/6139186)\nto run Ads Manager scripts.\n\n1. [Sign in](//ads.google.com/) to your Google Ads manager account.\n2. From the Tools menu in the left navigation, select **Bulk actions** , then **Scripts**. You can also navigate to this page by searching for \"Scripts\" in the Google Ads search bar.\n3. Press the + icon to add a script. You can browse script templates from the drop-down menu, but for the sake of this exercise, select \"New script\".\n4. You can optionally provide a name for your script in the \"Script name\" text field. This can help you stay organized and remember what the script does.\n5. Copy and paste the following code into the editor area, replacing the main\n function:\n\n function main() {\n // Retrieve all children accounts.\n const accountIterator = AdsManagerApp.accounts().get();\n\n // Iterate through the account list.\n for (const account of accountIterator) {\n // Get stats for the child account.\n const stats = account.getStatsFor(\"THIS_MONTH\");\n // And log it.\n console.log(`${account.getCustomerId()},${stats.getClicks()},` +\n `${stats.getImpressions()},${stats.getCost()}`);\n }\n }\n\n6. When prompted, click **Authorize** so the script can access the account on\n your behalf. This has to be done once for each script.\n\n7. Click **Preview** to run the script in [preview mode](/google-ads/scripts/docs/concepts/preview).\n Results will appear in the **Changes** / **Logs** panel. For this example,\n you should see your children accounts and their metrics displayed in the\n Logs.\n\n8. When you're happy with the preview results, click **Run** to run your\n script and open the **Script history** page. This page displays the\n most recently run scripts, with information on their status and results.\n\n9. To get a detailed view of changes and logs, click the link in the\n **Changes** column that corresponds to the script you just ran. You should\n see the same log output that was previewed before.\n\nFor more sample script snippets, check out our\n[examples page](/google-ads/scripts/docs/examples)."]]