Sets the callout's end date from either an object containing year, month, and day fields, or an 8-digit string in
YYYYMMDD
format.
Sets the callout's end date from either an object containing year, month, and day fields, or an 8-digit string in
YYYYMMDD
format. This field is optional. For instance,
calloutBuilder.withEndDate("20130503");
is equivalent to
calloutBuilder.withEndDate({year: 2013, month: 5, day: 3});
. The change will fail and report an error if:
{year: 2013, month: 5, day: 55}
),Sets the callout's device preference to mobile or clears it.
Sets the callout's device preference to mobile or clears it. This field is optional and defaults to
false
.
Sets the callout scheduling.
Sets the callout scheduling. Scheduling of a callout allows you to control the days of week and times of day during which the callout will show alongside your ads.
Passing in an empty array clears the scheduling field, causing the callout to run at all times.
The following example sets the callout to run on Mondays and Tuesday from 8:00 to 11:00.
var mondayMorning = { dayOfWeek: "MONDAY", startHour: 8, startMinute: 0, endHour: 11, endMinute: 0 }; var tuesdayMorning = { dayOfWeek: "TUESDAY", startHour: 8, startMinute: 0, endHour: 11, endMinute: 0 }; calloutBuilder.withSchedules([mondayMorning, tuesdayMorning]);
Sets the callout's start date from either an object containing year, month, and day fields, or an 8-digit string in
YYYYMMDD
format.
Sets the callout's start date from either an object containing year, month, and day fields, or an 8-digit string in
YYYYMMDD
format. This field is optional. For instance,
calloutBuilder.withStartDate("20130503");
is equivalent to
calloutBuilder.withStartDate({year: 2013, month: 5, day: 3});
. The change will fail and report an error if:
{year: 2013, month: 5, day: 55}
),Sets the text of the new callout to the specified value.
Sets the text of the new callout to the specified value. This field is required.
Builder for Callout objects.
Example usage: