Technical explanation for advanced users who want to understand the internals.
Google Apps Script has a hard 30-minute execution limit. This is the fundamental constraint that shapes how the script works.
The script uses a simple decision tree for each account:
At 11pm (MCC timezone), the script enters maintenance mode instead of processing individual accounts:
Limits initialization to 3 accounts per run. Keeps execution under 30 minutes even for large accounts.
Fetches top 50,000 placements by impressions. Prevents timeout on accounts with millions of placements.
Distributes 15 accounts per hour across 03-23. Spreads load and ensures all accounts update within 24 hours.
The script runs under your Google account. Data is never sent to external servers. Sheet sharing is controlled by you.