Page Summary
-
The
GenerateTextrequest requires acustomer_idandasset_field_typesto specify which text asset types to generate. -
Optional fields like
final_url,freeform_prompt, andkeywordscan be provided to guide the text generation process. -
The generation context can be set using either an
existing_generation_contextor by specifying anadvertising_channel_type. -
A
final_urlis required unless anexisting_generation_contextwith an associated final URL is provided. -
The advertising channel type is required if no
existing_contextis provided, supporting SEARCH, PERFORMANCE_MAX, DISPLAY, and DEMAND_GEN.
Request message for AssetGenerationService.GenerateText
| Fields | |
|---|---|
|
Required. Which field types text is being generated for. Supported values are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required. |
|
|
|
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 |
|
Optional. The setting for which assets are being generated, such as an existing AssetGroup or AdGroupAd. |
|
Required. The ID of the customer to generate assets for. Required. |
|
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. |
|
Optional. A freeform description of what assets should be generated. The string length must be between 1 and 1500, inclusive. |
|
Optional. A freeform list of keywords that are relevant, used to inform asset generation. |