Learn the fundamentals by creating your very first automation script. This simple example will introduce you to the basics of Google Ads automation.
This script will generate a daily report showing your campaign performance. It's completely safe because it only reads data and sends you a summary.
Start by opening AdScriptly's Script Builder tool.
Open Script Builder🔍 Look for: The "Campaign Performance Report" script template in the sidebar. This will be your first script!
Fill in the configuration form with these recommended settings for your first script:
💡 Pro Tip: Use your real email address so you can see the report in action!
Click the "Generate Script" button and watch the magic happen!
// AdScriptly - Campaign Performance Report // Generated: Wed Sep 17 2025 function main() { // Get all active campaigns const campaigns = AdsApp.campaigns() .withCondition('Status = ENABLED') .forDateRange('LAST_7_DAYS') .get(); let report = 'Campaign Performance Report\n\n'; while (campaigns.hasNext()) { const campaign = campaigns.next(); const stats = campaign.getStatsFor('LAST_7_DAYS'); report += campaign.getName() + ':\n'; report += ' Impressions: ' + stats.getImpressions() + '\n'; report += ' Clicks: ' + stats.getClicks() + '\n'; report += ' Cost: €' + stats.getCost() + '\n\n'; } // Send email report MailApp.sendEmail({ to: 'your-email@example.com', subject: 'Daily Campaign Report', body: report }); Logger.log('Report sent successfully!'); }
This script reads your campaign data and emails you a summary. It's completely safe and perfect for learning the basics!
Follow our detailed installation guide to add your script to Google Ads.
Installation GuideReady for automation scripts that make changes to your campaigns?
See Examples