Get your first Google Ads script running in under 10 minutes. This step-by-step guide will have you automating campaigns like a pro in no time.
Start by using our Script Builder to generate your first automation script.
7
100
Once generated, copy the complete script code to your clipboard.
// AdScriptly – Pause Low Performing Campaigns // Generated: 2025-01-24 function main() { // Configuration const DAYS_WITHOUT_CONVERSIONS = 7; const MINIMUM_SPEND = 100; const campaigns = AdsApp.campaigns() .withCondition('Status = ENABLED') .withCondition(`Cost > ${MINIMUM_SPEND}`) .get(); let pausedCount = 0; while (campaigns.hasNext()) { const campaign = campaigns.next(); const stats = campaign.getStatsFor(`LAST_${DAYS_WITHOUT_CONVERSIONS}_DAYS`); if (stats.getConversions() === 0) { campaign.pause(); pausedCount++; Logger.log(`Paused: ${campaign.getName()}`); } } Logger.log(`Total campaigns paused: ${pausedCount}`); } function AdScriptly_PauseLowPerforming() { main(); }
💡 Tip: The script includes a discoverable function name (AdScriptly_PauseLowPerforming
) so you can easily find it later.
Now install your script in your Google Ads account.
Always test your script with preview mode before running live.
Never run a script live without testing first. Always use preview mode to see what changes will be made.
✅ Success! Your script is now running and will automatically pause campaigns that haven't generated conversions in 7 days with at least €100 spend.
Set up scheduling and monitoring for your automation.