با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
وقتی اسکریپت ها در حالت پیش نمایش اجرا می شوند، هیچ تغییری در داده های کمپین واقعی ایجاد نمی کنند. در عوض، اجرای اسکریپت تغییراتی را نشان میدهد که اگر اسکریپت در حال اجرا بود، ایجاد میشد . پس از رضایت از خروجی، می توانید اجرای زنده یک اسکریپت را شروع کنید یا آن را زمان بندی کنید.
حالت پیشنمایش یک ویژگی قدرتمند است، زیرا به شما امکان میدهد یک اسکریپت را بدون نگرانی در مورد تغییرات نادرست ایجاد شده در دادههای Google Ads خود توسعه و اشکال زدایی کنید.
حالت پیشنمایش فقط بر تماسهایی تأثیر میگذارد که از 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());
تاریخ آخرین بهروزرسانی 2025-07-13 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-13 بهوقت ساعت هماهنگ جهانی."],[[["Preview mode executes scripts without making actual changes to campaign data, allowing for risk-free testing and debugging."],["It provides a safe environment to develop and refine Google Ads scripts before applying them to live campaigns."],["Scripts in preview mode can still interact with external services like sending emails or updating spreadsheets."],["Certain actions, like creating or modifying objects, will not produce the same results in preview mode as in live execution."],["Scripts can determine whether they are running in preview or live mode using execution information."]]],[]]