> [!CAUTION]
> **Caution:** This documentation is for Google Ads API **v24** . The latest active version is [**v26**](https://developers.google.com/google-ads/api/reference/rpc/latest/GenerateTextRequest).

Request message for `AssetGenerationService.GenerateText`

[Proto definition ![GitHub](https://developers.google.com/site-assets/logo-github.svg)](https://github.com/googleapis/googleapis/blob/master/google/ads/googleads/v24/services/asset_generation_service.proto)

| Fields ||
|---|---|
| ## `asset_field_types[]` | `AssetFieldType` Required. Which field types text is being generated for. Supported values are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required. |
| ## `context` Union field. Additional context to guide the generation process. `context` can be only one of the following: ||
| ### `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. |
| ## `freeform_prompt` | `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. |