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 utilize various fields to define the image's properties, including its type, dimensions, URLs for full-size and preview versions, and name."],["Images for image ads can be sourced from existing media files, raw image data, or copied from another ad using its ID."],["`image_asset` field allows using existing AdImageAssets while `data` field allows directly using image bytes."],["AdImageAsset, MediaFile resources, and copying existing ads provide flexible ways to incorporate images into image ads."]]],[]]