Page Summary
-
Ambient devices are represented with a unique ID, user-defined display name, settings URI, creation timestamp, polling configuration, and a flag indicating if media sources have been set.
-
The
PollingConfigresource suggests the recommended time interval, defined in seconds, between requests to the API for polling purposes. -
There are methods available to
create,delete,get, andpatchambient devices, corresponding to adding, removing, retrieving info about and updating devices, respectively. -
The
settingsUriis an output only field which corresponds to the link that is used to redirect a user to the settings of a device within the Google Photos app.
Resource: AmbientDevice
Representation of an ambient device.
| JSON representation |
|---|
{ "id" : string , "displayName" : string , "mediaSources" : [ { object ( |
| Fields | |
|---|---|
id
|
Output only. The unique identifier for this device. |
displayName
|
Required. A user-defined display name for this device. This will be visible to users from the Google Photos app settings but only editable through this API. Valid display names must have between 1 and 100 characters (inclusive). |
mediaSources[]
|
Output only. The media sources set for this device. Media sources are albums or photo collections the user selects to display on a device. Note that this will be empty if the user has not selected any media sources for this device (i.e |
settingsUri
|
Output only. The URI used to redirect the user to the device's settings within the Google Photos app. |
createTime
|
Output only. The time this device was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
pollingConfig
|
Output only. The recommended configuration that applications should use while polling |
mediaSourcesSet
|
Output only. If set, media sources have been configured for this device and clients should be able to request a list of media items for this device. |
AmbientMediaSource
Represents a media source a user has selected for an ambient device.
| JSON representation |
|---|
{ "id" : string , "displayName" : string } |
| Fields | |
|---|---|
id
|
Output only. Identifier of the ambient media source. |
displayName
|
Output only. Display name for this media source. |
PollingConfig
Configuration for polling the API.
| JSON representation |
|---|
{ "pollInterval" : string } |
| Fields | |
|---|---|
pollInterval
|
Output only. Recommended time between poll requests. A duration in seconds with up to nine fractional digits, ending with ' |
Methods |
|
|---|---|
|
Creates an ambient device in the user's Google Photos account. |
|
Removes the specified device from to the user's Google Photos account. |
|
Retrieves information about the specified device. |
|
Updates information about the specified device. |


