Solutions for the most common Google Ads script issues. Find quick fixes for errors and optimization problems.
Syntax errors, permissions, or setup issues
Logic issues or data filtering problems
Timeouts, slowness, or resource limits
Cause: Usually caused by invalid JavaScript syntax or special characters
Solution: Copy script again from AdScriptly. Ensure no characters were modified during paste.
Cause: No campaigns/keywords match the script criteria
Solution: Check your filter conditions and thresholds. Use preview mode to verify logic.
Cause: Processing too much data in single execution
Solution: Add filters to reduce scope or break into smaller batches.
Cause: Insufficient account access or API limits
Solution: Ensure you have Standard/Admin access. Check with account manager.
Cause: Email settings not configured or spam filters
Solution: Verify email addresses and check spam folder. Test with simple alert first.
// Add logging to understand what's happening Logger.log('Script started at: ' + new Date()); // Log data being processed Logger.log('Found ' + campaigns.totalNumEntities() + ' campaigns'); // Check conditions step by step while (campaigns.hasNext()) { const campaign = campaigns.next(); Logger.log('Processing: ' + campaign.getName()); const stats = campaign.getStatsFor('LAST_7_DAYS'); Logger.log('Cost: €' + stats.getCost().toFixed(2)); Logger.log('Conversions: ' + stats.getConversions()); // Your logic here... }