Join us
live on Discord on the Google Advertising and Measurement Community server on October 16th! We will discuss the new features added in V22 of the Google Ads API.
GenerateImagesRequest
Stay organized with collections
Save and categorize content based on your preferences.
Fields |
customer_id
|
string
Required. The ID of the customer for whom the images are being generated. Required.
|
asset_field_types[]
|
AssetFieldType
Optional. Output field types for generated images. Supported values are MARKETING_IMAGE, SQUARE_MARKETING_IMAGE, PORTRAIT_MARKETING_IMAGE, and TALL_PORTRAIT_MARKETING_IMAGE. All specified field types must be compatible with the advertising_channel_type or existing_generation_context (whichever is set). If no field types are provided, images will be generated for all compatible field types.
|
Union field context
context . Additional context to guide image generation. context can be only one of the following: |
advertising_channel_type
|
AdvertisingChannelType
Optional. The advertising channel type for which the images are being generated. This field is required if existing_generation_context is not provided. Supported channel types include SEARCH, PERFORMANCE_MAX, DISPLAY, and DEMAND_GEN.
|
Union field generation_type
generation_type . Type of image generation to apply. Required. generation_type can be only one of the following: |
final_url_generation
|
FinalUrlImageGenerationInput
Optional. Generate images from a final url.
|
|
FreeformImageGenerationInput
Optional. Generate images from a freeform prompt.
|
product_recontext_generation
|
ProductRecontextGenerationImageInput
Optional. Generate new images by recontextualizing existing product images.
|
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 2025-10-10 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 2025-10-10 UTC."],[],[]]