Join us live on
Discord on the Google Advertising and Measurement Community server and on
YouTube on April 23rd at 10:00 AM EST! We will discuss the new features added in v24 of the Google Ads API.
GenerateTextRequest
Stay organized with collections
Save and categorize content based on your preferences.
| Fields |
asset_field_types[]
|
AssetFieldType
Required. Which field types text is being generated for. Supported values are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
|
advertising_channel_type
|
AdvertisingChannelType
Optional. The advertising channel for which to generate assets. Required if existing_context is not provided. Supported channel types: SEARCH, PERFORMANCE_MAX, DISPLAY, and DEMAND_GEN
|
existing_generation_context
|
AssetGenerationExistingContext
Optional. The setting for which assets are being generated, such as an existing AssetGroup or AdGroupAd.
|
customer_id
|
string
Required. The ID of the customer to generate assets for. Required.
|
final_url
|
string
Optional. Final url to use as a source for generating assets. Required if existing_generation_context is not provided or does not have a final url associated with it.
|
|
string
Optional. A freeform description of what assets should be generated. The string length must be between 1 and 1500, inclusive.
|
keywords[]
|
string
Optional. A freeform list of keywords that are relevant, used to inform asset generation.
|
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 2026-04-17 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 2026-04-17 UTC."],[],[]]