এক্সিকিউশন লগ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Google বিজ্ঞাপন স্ক্রিপ্ট দুটি ধরনের এক্সিকিউশন লগ প্রদর্শন করে, প্রিভিউ মোডে এবং রিয়েল এক্সিকিউশনে: পরিবর্তন লগ এবং লগ আউটপুট।
- পরিবর্তন লগ
পরিবর্তন লগগুলি স্ক্রিপ্ট দ্বারা সম্পাদিত Google বিজ্ঞাপন সংস্থাগুলির সমস্ত পরিবর্তনগুলি প্রদর্শন করে: সত্তার বিবরণ, পরিবর্তনের ধরন, আগে এবং পরে মান এবং ত্রুটি (যদি থাকে):

পরিবর্তন লগগুলি শুধুমাত্র ত্রুটি প্রদর্শনের জন্য আরও ফিল্টার করা যেতে পারে।
- লগ আউটপুট
যদি আপনি console.log("Hello world!");
একটি স্ক্রিপ্টে, "হ্যালো ওয়ার্ল্ড!" লগগুলিতে প্রদর্শিত হয়। পাঠ্যের লগিং বিটগুলি ডিবাগিংয়ের সময় বিশেষভাবে কার্যকর, তবে লাইভ এক্সিকিউশনের সময়ও প্রায়শই সহায়ক। ধরুন নিম্নলিখিত স্ক্রিপ্টটি প্রতিদিন চালানোর জন্য নির্ধারিত হয়েছে:
let spreadsheet = SpreadsheetApp.create("Daily Report");
// Populate the spreadsheet.
// ...
console.log("Daily report ready!");
console.log(spreadsheet.getUrl());
প্রতিটি এক্সিকিউশনে, স্ক্রিপ্টটি নতুন তৈরি স্প্রেডশীটের URL লগ করে, যা পরবর্তীতে খুঁজে পাওয়া সহজ করে। লগে কমলা বা লাল লেখা লগ করার জন্য আপনি console.warn()
বা console.error()
ব্যবহার করতে পারেন।
প্রোগ্রামার-নির্দিষ্ট লগ বার্তাগুলি ছাড়াও, Google বিজ্ঞাপন স্ক্রিপ্টগুলি সম্পাদন করার সময় যে কোনও ত্রুটি এবং সতর্কতা টেক্সট লগগুলিতে উপস্থিত হবে৷
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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\u003eGoogle Ads scripts provide two types of execution logs: Changes logs (tracking entity modifications) and Logs output (displaying script messages).\u003c/p\u003e\n"],["\u003cp\u003eChanges logs detail all alterations made by the script to Google Ads entities, including before and after values, and can be filtered to show only errors.\u003c/p\u003e\n"],["\u003cp\u003eLogs output displays messages generated by the script using \u003ccode\u003econsole.log\u003c/code\u003e, \u003ccode\u003econsole.warn\u003c/code\u003e, and \u003ccode\u003econsole.error\u003c/code\u003e, useful for debugging and providing context during live executions.\u003c/p\u003e\n"],["\u003cp\u003eErrors and warnings encountered by scripts during execution are automatically included in the text logs for troubleshooting.\u003c/p\u003e\n"]]],[],null,["# Execution Logs\n\nGoogle Ads scripts display two types of execution logs, both in preview mode and in\nreal executions: Changes logs and Logs output.\n\nChanges log\n\n: Changes logs display all changes to Google Ads entities performed by the\n script: entity description, type of change, value before and after, and errors\n (if any):\n\n:\n\n: Changes logs can be further filtered to only display errors.\n\nLogs output\n\n: If you execute `console.log(\"Hello world!\");` in a script, \"Hello\n world!\" appears in the logs. Logging bits of text is particularly useful\n during debugging, but is often helpful during live executions too.\n Suppose the following script is scheduled to run daily:\n\n let spreadsheet = SpreadsheetApp.create(\"Daily Report\");\n // Populate the spreadsheet.\n // ...\n console.log(\"Daily report ready!\");\n console.log(spreadsheet.getUrl());\n\n: In every execution, the script logs the URL of the newly created spreadsheet,\n making it easier to find later. You can also use `console.warn()` or\n `console.error()` for logging orange or red text in the logs.\n\nIn addition to programmer-specified log messages, any\n[errors and warnings](/google-ads/scripts/docs/concepts/errors) the Google Ads scripts\nencounters during execution will also appear in the text logs."]]