สคริปต์ Google Ads จะทํางานอย่างเต็มความสามารถ โดยพยายามทําการเปลี่ยนแปลงข้อมูล Google Ads แต่หากการเปลี่ยนแปลงบางอย่างไม่สําเร็จ สคริปต์จะบันทึกไว้ในบันทึกการเปลี่ยนแปลงและดําเนินการต่อ
// Attempt an invalid change.letamount=999999999999;campaign.getBudget().setAmount(amount);// Error is logged into Changes log, but the script keeps running.// Suppose we must know whether the change actually happened.if(campaign.getBudget()!=amount){// The current value of budget is not the one we expected.// The change must have failed.}
[[["เข้าใจง่าย","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-03-29 UTC"],[[["Google Ads scripts will log errors when changes fail but continue running, allowing you to check if a change was successful and handle it accordingly."],["Certain errors, such as missing required parameters, will halt script execution and require fixing before the script can run."],["While scripts proceed even when exceeding quotas, warnings are logged and should be reviewed."],["Script execution logs provide valuable information through errors (red), warnings (orange), and custom messages for debugging and monitoring."],["Successfully returned objects from Google Ads scripts are safe to use, indicating the operation was successful."]]],[]]