스크립트가 미리보기 모드에서 실행되면 실제 캠페인 데이터는 변경되지 않습니다. 대신 스크립트 실행 시 발생해야 하는 변경사항이
일어납니다. 출력에 만족하면 스크립트의 실시간 실행을 시작하거나 예약할 수 있습니다.
미리보기 모드를 사용하면
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());
[null,null,["최종 업데이트: 2025-03-04(UTC)"],[[["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."]]],[]]