Clears the first description line of the ad group-level sitelink description.
Clears the first description line of the ad group-level sitelink description.
Returns nothing.
Clears the second description line of the ad group-level sitelink description.
Clears the second description line of the ad group-level sitelink description.
Returns nothing.
Clears the link URL of the ad group-level sitelink.
Clears the link URL of the ad group-level sitelink. To upgrade ad group-level sitelinks to final URL, first clear the link URL, then set the final URL with SitelinkUrls.setFinalUrl .
Returns nothing.
Returns the ad group to which this ad group-level sitelink belongs.
Returns the campaign to which this ad group-level sitelink belongs.
Returns the first description line of the ad group-level sitelink description.
Returns the second description line of the ad group-level sitelink description.
Returns the end date of the ad group-level sitelink.
Returns the end date of the ad group-level sitelink. For instance, if the end date of the ad group-level sitelink 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,
"AdGroupSitelink"
.
Returns the type of this entity as a
String
, in this case,
"AdGroupSitelink"
.
Returns the ID of the ad group-level sitelink.
Returns the link text of the ad group-level sitelink.
Returns the link URL of the ad group-level sitelink.
Returns the link URL of the ad group-level sitelink. <aside class="warning"> Deprecated. This method is deprecated. Link URLs will become read-only on July 1, 2015. We recommend that you upgrade to using final URLs instead. See Using Upgraded URLs for more information. </aside>
Returns the scheduling of the ad group-level sitelink.
Returns the start date of the ad group-level sitelink.
Returns the start date of the ad group-level sitelink. For instance, if the start date of the ad group-level sitelink 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
true
if the ad group-level sitelink specifies mobile device preference.
Returns
true
if the ad group-level sitelink specifies mobile device preference.
Sets the first description line of the ad group-level sitelink description.
Sets the first description line of the ad group-level sitelink description.
Returns nothing.
Sets the second description line of the ad group-level sitelink description.
Sets the second description line of the ad group-level sitelink description.
Returns nothing.
Sets the ad group-level sitelink's end date from either an object containing year, month, and day fields, or an 8-digit string in
YYYYMMDD
format.
Sets the ad group-level sitelink's end date from either an object containing year, month, and day fields, or an 8-digit string in
YYYYMMDD
format. For instance,
adGroupSitelink.setEndDate("20130503");
is equivalent to
adGroupSitelink.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 link text of the ad group-level sitelink.
Sets the link text of the ad group-level sitelink.
Returns nothing.
Sets the link URL of the ad group-level sitelink.
Sets the link URL of the ad group-level sitelink. <aside class="warning"> Deprecated. This method will be sunset when link URLs become read-only on July 1, 2015. Please use SitelinkUrls.setFinalUrl instead. See Using Upgraded URLs for more information. </aside>
Returns nothing.
Sets the ad group-level sitelink's device preference.
Sets the ad group-level sitelink's device preference.
Returns nothing.
Sets the ad group-level sitelink scheduling.
Sets the ad group-level sitelink scheduling. Scheduling of a ad group-level sitelink allows you to control the days of week and times of day during which the ad group-level sitelink will show alongside your ads.
Passing in an empty array clears the scheduling field, causing the ad group-level sitelink to run at all times.
The following example sets the ad group-level sitelink 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 }; adGroupSitelink.setSchedules([mondayMorning, tuesdayMorning]);
Returns nothing.
Sets the ad group-level sitelink's start date from either an object containing year, month, and day fields, or an 8-digit string in
YYYYMMDD
format.
Sets the ad group-level sitelink's start date from either an object containing year, month, and day fields, or an 8-digit string in
YYYYMMDD
format. For instance,
adGroupSitelink.setStartDate("20130503");
is equivalent to
adGroupSitelink.setStartDate({year: 2013, month: 5, day: 3});
. The change will fail and report an error if:
{year: 2013, month: 5, day: 55}
),Returns nothing.
Provides access to the URL fields of this ad group-level sitelink.
Provides access to the URL fields of this ad group-level sitelink. See Using Upgraded URLs for more information.
Represents a sitelink that has been added to an ad group as an ad sitelink extension. Visit our Ad Extensions page for more information on sitelinks and other types of ad extensions.