AI-generated Key Takeaways
-
The
image ad
object contains details about the image used in an ad, including its mime type, dimensions, and URLs for both full-size and preview versions. -
You can create an
image ad
by using an existing MediaFile, providing raw image data, or copying an image from another ad ID. -
Image assets can be used for the ad, and raw image data can be provided as bytes.
-
The name of the image is included, which can be the MediaFile's name or empty if created from bytes.
An image ad.
Fields | |
---|---|
|
The mime type of the image. |
|
Width in pixels of the full size image. |
|
Height in pixels of the full size image. |
|
URL of the full size image. |
|
Width in pixels of the preview size image. |
|
Height in pixels of the preview size image. |
|
URL of the preview size image. |
|
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
|
|
|
The image assets used for the ad. |
|
Raw image data as bytes. |
|
An ad ID to copy the image from. |