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.}
[null,null,["最后更新时间 (UTC):2025-03-04。"],[[["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."]]],[]]