Hi Anthony,
thank you for the response.
But unfortunately i don't get it - you said i should add 'campaign' =>
$campaignResourceName to the campaignCriterion, but that's exactly what i
do in my code..?
Even the var_dump() prints the campaign resource name which has been set
before.
And what do you mean by passing the the variable int the function that
creates the ad schedule?
I can't find any possibility to set a campaign for an ad schedule.
That's how my code looks like to create the ad schedules ($adScheduleData
is a simple array with predefined start and end hours/minutes):
foreach ($adScheduleData as $weekDayName => $scheduleDataset) {
$adScheduleInfos[] = new AdScheduleInfo([
'day_of_week' => DayOfWeek::value($weekDayName),
'start_hour' => $scheduleDataset['startHour'],
'start_minute' => $scheduleDataset['startMinute'] ?? MinuteOfHour::ZERO,
'end_hour' => $scheduleDataset['endHour'],
'end_minute' => $scheduleDataset['endMinute'] ?? MinuteOfHour::ZERO,
]);
}
I appreciate any help!
Regards
Frank
adsapiforumadvisor schrieb am Freitag, 2. Oktober 2020 um 18:29:33 UTC+2:
> Hi Frank,
>
> You will need to set the campaign just like how the example you provided
> did.
>
> In the campaignCriterion object, you will need to add
> 'campaign' => $campaignResourceName
>
> You'll also need to provide pass the variable in the function that creates
> the ad schedule.
>
> Regards,
> Anthony
> Google Ads API Team
>
> [image: Google Logo]
> Anthony
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q25Yela:ref
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/7b759ef5-afee-4838-8463-b20234f8ac02n%40googlegroups.com.