AdsApp.ExtensionSchedule
Stay organized with collections
Save and categorize content based on your preferences.
Represents one period of a Google Ads ad extension schedule. For instance, if
an ad extension were set up to only show on ads on weekdays from 09:00 to
18:00, it would have five ExtensionSchedules: one for Monday 09:00 - 18:00,
one for Tuesday 09:00 - 18:00, and so on.
var
monday
=
{
dayOfWeek
:
"MONDAY"
,
startHour
:
9
,
startMinute
:
0
,
endHour
:
18
,
endMinute
:
0
};
var
tuesday
=
{
dayOfWeek
:
"TUESDAY"
,
startHour
:
9
,
startMinute
:
0
,
endHour
:
18
,
endMinute
:
0
};
sitelink
.
setSchedules
([
monday
,
tuesday
]);
Methods:
getDayOfWeek()
Returns the day of week this schedule applies to. Possible values: "MONDAY"
, "TUESDAY"
, "WEDNESDAY"
, "THURSDAY"
, "FRIDAY"
, "SATURDAY"
, or "SUNDAY"
.
Return values:
getEndHour()
Returns the ending hour of this schedule. The time is based on a 24-hour clock. Valid ending times range from 00:15
to 24:00
. So, for instance, a schedule
which ends at 15:30 would return 15
as the value of getEndHour()
.
Return values:
getEndMinute()
Returns the ending minute of this schedule. For instance, a schedule which ends at 15:30 would return 30
as the value of getEndMinute()
. The only
possible return values are 0
, 15
, 30
, and 45
.
Return values:
getEntityType()
Returns the type of this entity as a String
, in this case, "ExtensionSchedule"
. Return values:
getStartHour()
Returns the starting hour of this schedule. The time is based on a 24-hour clock. Valid starting times range from 00:00
to 23:45
. So, for instance, a schedule
which starts at 15:30 would return 15
as the value of getStartHour()
.
Return values:
getStartMinute()
Returns the starting minute of this schedule. For instance, a schedule which starts at 15:30 would return 30
as the value of getStartMinute()
. The only
possible return values are 0
, 15
, 30
, and 45
.
Return values:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[[["\u003cp\u003e\u003ccode\u003eExtensionSchedule\u003c/code\u003e represents a single time period within a Google Ads ad extension's overall schedule.\u003c/p\u003e\n"],["\u003cp\u003eAd extensions can have multiple \u003ccode\u003eExtensionSchedule\u003c/code\u003e objects to define their active timeframes across different days and hours.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the start and end times for each \u003ccode\u003eExtensionSchedule\u003c/code\u003e using properties like \u003ccode\u003edayOfWeek\u003c/code\u003e, \u003ccode\u003estartHour\u003c/code\u003e, \u003ccode\u003estartMinute\u003c/code\u003e, \u003ccode\u003eendHour\u003c/code\u003e, and \u003ccode\u003eendMinute\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe provided code snippet demonstrates setting a sitelink extension's schedule to be active on Mondays and Tuesdays from 9:00 to 18:00.\u003c/p\u003e\n"],["\u003cp\u003eMethods like \u003ccode\u003egetDayOfWeek()\u003c/code\u003e, \u003ccode\u003egetEndHour()\u003c/code\u003e, and \u003ccode\u003egetStartMinute()\u003c/code\u003e allow you to retrieve the specific details of an \u003ccode\u003eExtensionSchedule\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# AdsApp.ExtensionSchedule\n\nRepresents one period of a Google Ads ad extension schedule. For instance, if an ad extension were set up to only show on ads on weekdays from 09:00 to 18:00, it would have five ExtensionSchedules: one for Monday 09:00 - 18:00, one for Tuesday 09:00 - 18:00, and so on.\n\n\n```gdscript\n var monday = {\n dayOfWeek: \"MONDAY\",\n startHour: 9,\n startMinute: 0,\n endHour: 18,\n endMinute: 0\n };\n var tuesday = {\n dayOfWeek: \"TUESDAY\",\n startHour: 9,\n startMinute: 0,\n endHour: 18,\n endMinute: 0\n };\n\n sitelink.setSchedules([monday, tuesday]);\n```\n\n### Methods:\n\n| Member | Type | Description |\n|-------------------------------------|----------|-------------------------------------------------------------------------------------|\n| [getDayOfWeek()](#getDayOfWeek) | `String` | Returns the day of week this schedule applies to. |\n| [getEndHour()](#getEndHour) | `int` | Returns the ending hour of this schedule. |\n| [getEndMinute()](#getEndMinute) | `int` | Returns the ending minute of this schedule. |\n| [getEntityType()](#getEntityType) | `String` | Returns the type of this entity as a `String`, in this case, `\"ExtensionSchedule\"`. |\n| [getStartHour()](#getStartHour) | `int` | Returns the starting hour of this schedule. |\n| [getStartMinute()](#getStartMinute) | `int` | Returns the starting minute of this schedule. |\n\n`getDayOfWeek()`\n----------------\n\nReturns the day of week this schedule applies to.\n\nPossible values: `\"MONDAY\"`, `\"TUESDAY\"`,\n`\"WEDNESDAY\"`, `\"THURSDAY\"`, `\"FRIDAY\"`,\n`\"SATURDAY\"`, or `\"SUNDAY\"`.\n\n### Return values:\n\n| Type | Description |\n|----------|-------------------------------------------|\n| `String` | The day of week this schedule applies to. |\n\n`getEndHour()`\n--------------\n\nReturns the ending hour of this schedule.\n\nThe time is based on a 24-hour clock. Valid ending times range from\n`00:15` to `24:00`. So, for instance, a schedule\nwhich ends at 15:30 would return `15` as the value of\n`getEndHour()`.\n\n### Return values:\n\n| Type | Description |\n|-------|-----------------------------------|\n| `int` | The ending hour of this schedule. |\n\n`getEndMinute()`\n----------------\n\nReturns the ending minute of this schedule.\n\nFor instance, a schedule which ends at 15:30 would return\n`30` as the value of `getEndMinute()`. The only\npossible return values are `0`, `15`,\n`30`, and `45`.\n\n### Return values:\n\n| Type | Description |\n|-------|-------------------------------------|\n| `int` | The ending minute of this schedule. |\n\n`getEntityType()`\n-----------------\n\nReturns the type of this entity as a `String`, in this case, `\"ExtensionSchedule\"`.\n\n### Return values:\n\n| Type | Description |\n|----------|---------------------------------------------|\n| `String` | Type of this entity: `\"ExtensionSchedule\"`. |\n\n`getStartHour()`\n----------------\n\nReturns the starting hour of this schedule.\n\nThe time is based on a 24-hour clock. Valid starting times range from\n`00:00` to `23:45`. So, for instance, a schedule\nwhich starts at 15:30 would return `15` as the value of\n`getStartHour()`.\n\n### Return values:\n\n| Type | Description |\n|-------|-------------------------------------|\n| `int` | The starting hour of this schedule. |\n\n`getStartMinute()`\n------------------\n\nReturns the starting minute of this schedule.\n\nFor instance, a schedule which starts at 15:30 would return\n`30` as the value of `getStartMinute()`. The only\npossible return values are `0`, `15`,\n`30`, and `45`.\n\n### Return values:\n\n| Type | Description |\n|-------|---------------------------------------|\n| `int` | The starting minute of this schedule. |"]]