ImageAdInfo
Stay organized with collections
Save and categorize content based on your preferences.
Fields |
mime_type
|
MimeType
The mime type of the image.
|
pixel_width
|
int64
Width in pixels of the full size image.
|
pixel_height
|
int64
Height in pixels of the full size image.
|
image_url
|
string
URL of the full size image.
|
preview_pixel_width
|
int64
Width in pixels of the preview size image.
|
preview_pixel_height
|
int64
Height in pixels of the preview size image.
|
preview_image_url
|
string
URL of the preview size image.
|
name
|
string
The name of the image. If the image was created from a MediaFile, this is the MediaFile's name. If the image was created from bytes, this is empty.
|
Union field image
image . The image to create the ImageAd from. This can be specified in one of two ways. 1. An existing MediaFile resource. 2. The raw image data as bytes. image can be only one of the following: |
image_asset
|
AdImageAsset
The image assets used for the ad.
|
data
|
bytes
Raw image data as bytes.
|
ad_id_to_copy_image_from
|
int64
An ad ID to copy the image from.
|
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 2024-11-25 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 2024-11-25 UTC."],[[["Image Ads require specification of image properties such as mime type, dimensions (width and height) for both full and preview sizes, and corresponding URLs."],["Image Ads can be created using either an existing MediaFile resource (AdImageAsset) or by directly providing the raw image data as bytes."],["When creating an ImageAd, users have the option to provide a name for the image, utilize an existing MediaFile as the source, or input the raw image data directly."],["For convenience, an ImageAd can be created by copying the image from an existing ad using the `ad_id_to_copy_image_from` field."]]],[]]