def _create_ad_schedule_info(client, day_of_week, start_hour, start_minute,
                             end_hour, end_minute):
    """Create a new ad schedule info with the specified parameters."""
    ad_schedule_info = client.get_type('AdScheduleInfo', version='v2')
    ad_schedule_info.day_of_week = day_of_week
    ad_schedule_info.start_hour.value = start_hour
    ad_schedule_info.start_minute = start_minute
    ad_schedule_info.end_hour.value = end_hour
    ad_schedule_info.end_minute = end_minute
    return ad_schedule_info