Update or Insert location
Request Body
Section titled “Request Body”Location represents a retail store with its full operational profile.
object
The metadata of the location.
object
The unique identifier for the resource.
The fully qualified name of the resource.
The name of the resource.
The timestamp when the resource was first created.
The timestamp when the resource was last updated.
The revision of the resource. Must be empty if the resource is not under version control.
object
The unique identifier for a particular revision of the resource.
The timestamp when this particular revision was created.
The unique identifier for the latest revision of the resource. Must be empty if this is already the latest revision.
The labels of the resource.
object
The fields to update or to return in the location.
ISO 4217 currency codes, e.g. “EUR”.
BCP-47 language tags, e.g. [“de”, “en”].
The operational status of the location.
IANA timezone, e.g. “Europe/Berlin”.
object
GPS coordinates of the location.
object
The latitude in degrees. It must be in the range [-90.0, +90.0].
The longitude in degrees. It must be in the range [-180.0, +180.0].
Recurring weekly operating rules (open/closed windows per day).
WeeklyHours is a recurring weekly operating rule for a single day. An unset start/end means the rule applies to the whole day.
object
Represents a day of the week.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Availability indicates whether a time rule opens or closes the location.
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and
google.protobuf.Timestamp.
object
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value “24:00:00” for scenarios like business closing time.
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and
google.protobuf.Timestamp.
object
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value “24:00:00” for scenarios like business closing time.
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Date-specific operating overrides (annual if year=0, otherwise one-off).
DateOverride is a date-specific operating rule. year=0 means it recurs annually; otherwise it is a one-off date. An unset start/end means the rule applies to the whole day.
object
- A full date, with non-zero year, month, and day values.
- A month and day, with a zero year (for example, an anniversary).
- A year on its own, with a zero month and a zero day.
- A year and month, with a zero day (for example, a credit card expiration date).
Related types:
- [google.type.TimeOfDay][google.type.TimeOfDay]
- [google.type.DateTime][google.type.DateTime]
- [google.protobuf.Timestamp][google.protobuf.Timestamp]
object
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn’t significant.
Availability indicates whether a time rule opens or closes the location.
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and
google.protobuf.Timestamp.
object
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value “24:00:00” for scenarios like business closing time.
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and
google.protobuf.Timestamp.
object
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value “24:00:00” for scenarios like business closing time.
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Client defined unique id.
Global Location Number (GLN / ILN), e.g. “4314318377126”.
TDLinx store identifier.
Nielsen geographic marketing area.
Sales floor size in square metres.
Retail chain brand, e.g. “EDEKA”.
object
Read-only unique id.
Client defined unique id.
Distribution line / sub-chain, e.g. “EDEKA Nordbayern”.
object
Read-only unique id.
Client defined unique id.
Store owner / contract holder name.
object
Read-only unique id.
Client defined unique id.
object
Advertising-industry taxonomy categories that must not be served for every Device at this location.
Responses
Section titled “Responses”A successful response.
object
Location represents a retail store with its full operational profile.
object
The metadata of the location.
object
The unique identifier for the resource.
The fully qualified name of the resource.
The name of the resource.
The timestamp when the resource was first created.
The timestamp when the resource was last updated.
The revision of the resource. Must be empty if the resource is not under version control.
object
The unique identifier for a particular revision of the resource.
The timestamp when this particular revision was created.
The unique identifier for the latest revision of the resource. Must be empty if this is already the latest revision.
The labels of the resource.
object
The fields to update or to return in the location.
ISO 4217 currency codes, e.g. “EUR”.
BCP-47 language tags, e.g. [“de”, “en”].
The operational status of the location.
IANA timezone, e.g. “Europe/Berlin”.
object
GPS coordinates of the location.
object
The latitude in degrees. It must be in the range [-90.0, +90.0].
The longitude in degrees. It must be in the range [-180.0, +180.0].
Recurring weekly operating rules (open/closed windows per day).
WeeklyHours is a recurring weekly operating rule for a single day. An unset start/end means the rule applies to the whole day.
object
Represents a day of the week.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Availability indicates whether a time rule opens or closes the location.
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and
google.protobuf.Timestamp.
object
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value “24:00:00” for scenarios like business closing time.
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and
google.protobuf.Timestamp.
object
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value “24:00:00” for scenarios like business closing time.
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Date-specific operating overrides (annual if year=0, otherwise one-off).
DateOverride is a date-specific operating rule. year=0 means it recurs annually; otherwise it is a one-off date. An unset start/end means the rule applies to the whole day.
object
- A full date, with non-zero year, month, and day values.
- A month and day, with a zero year (for example, an anniversary).
- A year on its own, with a zero month and a zero day.
- A year and month, with a zero day (for example, a credit card expiration date).
Related types:
- [google.type.TimeOfDay][google.type.TimeOfDay]
- [google.type.DateTime][google.type.DateTime]
- [google.protobuf.Timestamp][google.protobuf.Timestamp]
object
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn’t significant.
Availability indicates whether a time rule opens or closes the location.
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and
google.protobuf.Timestamp.
object
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value “24:00:00” for scenarios like business closing time.
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and
google.protobuf.Timestamp.
object
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value “24:00:00” for scenarios like business closing time.
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Client defined unique id.
Global Location Number (GLN / ILN), e.g. “4314318377126”.
TDLinx store identifier.
Nielsen geographic marketing area.
Sales floor size in square metres.
Retail chain brand, e.g. “EDEKA”.
object
Read-only unique id.
Client defined unique id.
Distribution line / sub-chain, e.g. “EDEKA Nordbayern”.
object
Read-only unique id.
Client defined unique id.
Store owner / contract holder name.
object
Read-only unique id.
Client defined unique id.
object
Advertising-industry taxonomy categories that must not be served for every Device at this location.
Example
{ "location": { "status": "STATUS_UNSPECIFIED", "weeklyHours": [ { "day": "DAY_OF_WEEK_UNSPECIFIED", "availability": "AVAILABILITY_UNSPECIFIED" } ], "dateOverrides": [ { "availability": "AVAILABILITY_UNSPECIFIED" } ], "nielsenArea": "NIELSEN_AREA_UNSPECIFIED", "excludedAdProducts": [ "AD_PRODUCT_UNSPECIFIED" ] }}