Google Ads: add ad schedule
set_ad_scheduleADDS ad schedule windows to a campaign; its existing windows stay.
This never replaces a schedule: the windows the campaign already has are
left as they are. A campaign with no schedule serves at all hours, and
its first windows narrow it to them; on a campaign that already has
windows, an added one widens when ads show rather than narrowing it.
Narrowing an existing schedule needs windows removed in Google Ads
(Campaign → Ad schedule), which this server never does, so tell the user
the old windows stay until they remove them there.
Controls which days and hours ads are shown.
Args:
customer_id: The Google Ads customer ID.
campaign_id: The ID of the campaign.
schedules: List of schedule objects, each with:
- day_of_week: One of MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY, SATURDAY, SUNDAY.
- start_hour: Start hour (0-23).
- start_minute: One of ZERO, FIFTEEN, THIRTY,
FORTY_FIVE. Default: ZERO.
- end_hour: End hour (0-23). Use 24 for midnight.
- end_minute: One of ZERO, FIFTEEN, THIRTY,
FORTY_FIVE. Default: ZERO.
Returns:
Dictionary with created schedule criteria.Tools revision: 5c9bea8f.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schedules | Yes | ||
| campaign_id | Yes | ||
| customer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |