Dayparting Bid Adjuster
Analyses 30 days of hourly performance data across campaigns and calculates recommended ad schedule bid adjustments. Shows the full breakdown per hour before you choose to apply.
by Dmytro Tonkikh·chiliad.io
Overview
Dayparting Bid Adjuster analyses 30 days of hourly campaign data to calculate the CPA variance across each hour of the day. It maps that variance to suggested bid-adjustment percentages capped at your MAX_ADJUSTMENT limit and logs the full hour-by-hour breakdown so you can apply the modifiers to your campaign ad schedules — in the Google Ads UI or via a follow-up script.
Setup
- 1Create a new script and paste the code.
- 2Run in preview mode — the logs show hourly CPA and the suggested adjustment for each hour.
- 3Set MIN_CLICKS to a value that ensures statistical relevance (default 10 clicks per hour).
- 4Tune MAX_ADJUSTMENT to cap how aggressively bids should move (default 0.50 = plus/minus 50%).
- 5Apply the suggested bid modifiers to your campaign ad schedules in the Google Ads UI.
- 6Schedule monthly, or after major account changes, to keep the recommendations current.
Configuration Variables
| Variable | Default |
|---|---|
MIN_CLICKS | 10 |
MAX_ADJUSTMENT | 0.50 |
DATE_RANGE | LAST_30_DAYS |
Expected Output
=== Dayparting Bid Adjuster === Best CPA: $12.40 Worst: $58.20 Hour Conv Clicks CPA Suggested bid adj. 00:00 2 14 $58.20 -50% 08:00 18 210 $14.10 +42% 12:00 25 310 $12.40 +50% 18:00 12 180 $22.80 +15% 22:00 3 28 $44.60 -30% Review these suggestions, then set ad-schedule bid modifiers (UI or a follow-up script).
Notes
This script aggregates data across all enabled campaigns. For accounts with very different conversion patterns per campaign, consider running a modified version scoped to individual campaigns.