Hi Lista,
Please see
this guide on ad scheduling in AdWords API. As it says, you create the schedule on the campaign level and it applies to the ad groups within that campaign.
If you are using Google Ads API, you can follow the above guide but using thw Google Ads API
CampaignCriterionService and specifying the desired
ad_schedule.
Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001USwOs4:ref