Resource: MediaItem
A single media item.
JSON representation | |
---|---|
{ "name": string, "mediaFormat": enum ( |
Fields | ||
---|---|---|
name |
The resource name for this media item. |
|
mediaFormat |
The format of this media item. Must be set when the media item is created, and is read-only on all other requests. Cannot be updated. |
|
locationAssociation |
Required when calling This is required when adding new media to a location with |
|
googleUrl |
Output only. Google-hosted URL for this media item. This URL is not static since it may change over time. For video this will be a preview image with an overlaid play icon. |
|
thumbnailUrl |
Output only. Where provided, the URL of a thumbnail image for this media item. |
|
createTime |
Output only. Creation time of this media item. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
|
dimensions |
Output only. The dimensions (width and height) in pixels. |
|
insights |
Output only. Statistics for this media item. |
|
attribution |
Output only. Attribution information for customer media items. You must display this attribution as provided to your users and must not delete or alter the attribution. |
|
description |
Description for this media item. Descriptions cannot be modified through the Google My Business API, but can be set when creating a new media item that is not a cover photo. |
|
Union field With the exception of All uploaded photos should follow the Business Profile guidelines for photos. |
||
sourceUrl |
A publicly accessible URL where the media item can be retrieved from. When creating one of this or dataRef must be set to specify the source of the media item. If This field cannot be updated. |
|
dataRef |
Input only. A reference to media item binary data as obtained by the When creating a media item, either
or
must be set. |
Methods |
|
---|---|
|
Returns metadata for the requested customer media item. |
|
Returns a list of media items associated with a location that have been contributed by customers. |