Returns the end date of the callout.
Returns the end date of the callout. For instance, if the end date of the callout is May 3, 2013, this would return the following object:
{year: 2013, month: 5, day: 3}
.
Returns the type of this entity as a
String
, in this case,
"Callout"
.
Returns the type of this entity as a
String
, in this case,
"Callout"
.
Returns the ID of the callout.
Returns the scheduling of the callout.
Returns the start date of the callout.
Returns the start date of the callout. For instance, if the start date of the callout is May 3, 2013, this would return the following object:
{year: 2013, month: 5, day: 3}
.
Returns stats for the specified custom date range.
Returns stats for the specified custom date range. Both parameters can be either an object containing year, month, and day fields, or an 8-digit string in
YYYYMMDD
form. For instance,
March 24th, 2013
is represented as either
{year: 2013, month: 3, day: 24}
or
"20130324"
. The date range is inclusive on both ends, so
forDateRange("20130324", "20130324")
defines a range of a single day.
Returns the text of the callout.
Returns
true
if the callout specifies mobile device preference.
Returns
true
if the callout specifies mobile device preference.
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. For instance,
callout.setEndDate("20130503");
is equivalent to
callout.setEndDate({year: 2013, month: 5, day: 3});
. The change will fail and report an error if:
{year: 2013, month: 5, day: 55}
),Returns nothing.
Sets the callout's device preference.
Sets the callout's device preference.
Returns nothing.
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 }; callout.setSchedules([mondayMorning, tuesdayMorning]);
Returns nothing.
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. For instance,
callout.setStartDate("20130503");
is equivalent to
callout.setStartDate({year: 2013, month: 5, day: 3});
. The change will fail and report an error if:
{year: 2013, month: 5, day: 55}
),Returns nothing.
Sets the text of the callout.
Sets the text of the callout.
Returns nothing.
Represents a callout that can be part of an ad callout extension. Visit our Ad Extensions page for more information on callouts and other types of ad extensions.