সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
যখন স্ক্রিপ্টগুলি পূর্বরূপ মোডে কার্যকর করা হয়, তখন তারা প্রকৃত প্রচারাভিযানের ডেটাতে কোন পরিবর্তন করে না। পরিবর্তে, স্ক্রিপ্ট এক্সিকিউশন দেখায় যে স্ক্রিপ্টটি কার্যকর করা হলে যে পরিবর্তনগুলি করা হত । একবার আউটপুট নিয়ে সন্তুষ্ট হলে, আপনি একটি স্ক্রিপ্টের লাইভ এক্সিকিউশন শুরু করতে পারেন বা এটির সময়সূচী করতে পারেন।
প্রিভিউ মোড একটি শক্তিশালী বৈশিষ্ট্য, কারণ এটি আপনাকে আপনার Google বিজ্ঞাপন ডেটাতে ভুল পরিবর্তনের বিষয়ে চিন্তা না করে একটি স্ক্রিপ্ট বিকাশ এবং ডিবাগ করতে দেয়।
প্রিভিউ মোড শুধুমাত্র সেই কলগুলিকে প্রভাবিত করে যেগুলি এন্ট্রি পয়েন্ট হিসাবে AdsApp ব্যবহার করে। অন্যান্য পরিষেবাগুলিতে কলগুলি স্বাভাবিক হিসাবে চলবে৷ উদাহরণস্বরূপ, যদি একটি স্ক্রিপ্ট একটি ইমেল পাঠানোর জন্য MailApp ব্যবহার করে, তাহলে স্ক্রিপ্টটির পূর্বরূপ বা নির্বাহ করা হয়েছে কিনা তা পাঠানো হবে। স্প্রেডশীট উভয় পরিস্থিতিতে আপডেট করা হবে। একটি স্ক্রিপ্ট তার এক্সিকিউশন তথ্যের মাধ্যমে প্রিভিউ মোডে চলছে কিনা তা খুঁজে বের করতে পারে।
// Suppose the ad group has no keywords.letadGroup=findAnEmptyAdGroup();// Create a keyword.adGroup.createKeyword("test");// Fetch all keywords in the ad group.letkeywords=adGroup.keywords().get();// In preview mode, will log "false": keyword was not actually created.// In real execution, will log "true".console.log("Are there keywords in the ad group? "+keywords.hasNext());
[null,null,["2025-08-26 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003ePreview mode executes scripts without making actual changes to campaign data, allowing for risk-free testing and debugging.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a safe environment to develop and refine Google Ads scripts before applying them to live campaigns.\u003c/p\u003e\n"],["\u003cp\u003eScripts in preview mode can still interact with external services like sending emails or updating spreadsheets.\u003c/p\u003e\n"],["\u003cp\u003eCertain actions, like creating or modifying objects, will not produce the same results in preview mode as in live execution.\u003c/p\u003e\n"],["\u003cp\u003eScripts can determine whether they are running in preview or live mode using execution information.\u003c/p\u003e\n"]]],[],null,["# Preview Mode\n\nWhen scripts are executed in preview mode, they make no changes to the actual\ncampaign data. Instead, script execution shows the changes that **would have**\nbeen made had the script been executing. Once satisfied with the output, you\ncan start the live execution of a script or schedule it.\n\nPreview mode is a powerful feature, as it lets you develop and debug a script\nwithout worrying about erroneous changes being made to your Google Ads data.\n\nPreview mode only affects calls that use `AdsApp` as an entry point. Calls to\nother services will proceed as normal. For example, if a script is using\n`MailApp` to send an email, it will get sent whether or not the script had been\npreviewed or executed. Spreadsheets will get updated in both scenarios as\nwell. A script can find out whether or not it is running in preview mode through\nits [execution info](/google-ads/scripts/docs/concepts/execution-info).\n| **Important:** No objects are created, deleted, or modified during preview. As a consequence, certain code won't execute the same way in preview mode.\n\nThe following snippet won't behave as expected in preview mode: \n\n // Suppose the ad group has no keywords.\n let adGroup = findAnEmptyAdGroup();\n\n // Create a keyword.\n adGroup.createKeyword(\"test\");\n\n // Fetch all keywords in the ad group.\n let keywords = adGroup.keywords().get();\n\n // In preview mode, will log \"false\": keyword was not actually created.\n // In real execution, will log \"true\".\n console.log(\"Are there keywords in the ad group? \" + keywords.hasNext());"]]