Hi all, I'm trying to add an Ad Schedule to a campaign in this way, but for some reason it's not working (Python). Any idea why? I can't find any documentation of how to do this in the API docs:
def build_campaign_criterion_op_ad_schedule(client, campaign_operation, day: DayOfWeekEnum.DayOfWeek, start_hour: int, start_minute: MinuteOfHourEnum. MinuteOfHour, end_hour: int, end_minute: MinuteOfHourEnum.MinuteOfHour): # Create the campaign criterion. campaign_criterion_operation = client.get_type("CampaignCriterionOperation") campaign_criterion = campaign_criterion_operation.create campaign_criterion.campaign = campaign_operation.create.resource_name campaign_criterion.type_ = CriterionTypeEnum.CriterionType.AD_SCHEDULE campaign_criterion.ad_schedule.day_of_week = day campaign_criterion.ad_schedule.start_hour: start_hour campaign_criterion.ad_schedule.start_minute = start_minute campaign_criterion.ad_schedule.end_hour = end_hour campaign_criterion.ad_schedule.end_minute = end_minute return campaign_criterion_operation -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/09161e79-9834-4eca-a52c-257d0c4fa645n%40googlegroups.com.