Struct googapis::google::ads::googleads::v7::common::LeadFormAsset[][src]

pub struct LeadFormAsset {
Show 14 fields pub business_name: String, pub call_to_action_type: i32, pub call_to_action_description: String, pub headline: String, pub description: String, pub privacy_policy_url: String, pub post_submit_headline: Option<String>, pub post_submit_description: Option<String>, pub fields: Vec<LeadFormField>, pub delivery_methods: Vec<LeadFormDeliveryMethod>, pub post_submit_call_to_action_type: i32, pub background_image_asset: Option<String>, pub desired_intent: i32, pub custom_disclosure: Option<String>,
}
Expand description

A Lead Form asset.

Fields

business_name: String

Required. The name of the business being advertised.

call_to_action_type: i32

Required. Pre-defined display text that encourages user to expand the form.

call_to_action_description: String

Required. Text giving a clear value proposition of what users expect once they expand the form.

headline: String

Required. Headline of the expanded form to describe what the form is asking for or facilitating.

description: String

Required. Detailed description of the expanded form to describe what the form is asking for or facilitating.

privacy_policy_url: String

Required. Link to a page describing the policy on how the collected data is handled by the advertiser/business.

post_submit_headline: Option<String>

Headline of text shown after form submission that describes how the advertiser will follow up with the user.

post_submit_description: Option<String>

Detailed description shown after form submission that describes how the advertiser will follow up with the user.

fields: Vec<LeadFormField>

Ordered list of input fields.

delivery_methods: Vec<LeadFormDeliveryMethod>

Configured methods for collected lead data to be delivered to advertiser. Only one method typed as WebhookDelivery can be configured.

post_submit_call_to_action_type: i32

Pre-defined display text that encourages user action after the form is submitted.

background_image_asset: Option<String>

Asset resource name of the background image. The minimum size is 600x314 and the aspect ratio must be 1.91:1 (+-1%).

desired_intent: i32

Desired intent for the lead form, e.g. more volume or higher intent.

custom_disclosure: Option<String>

Custom disclosure shown along with Google disclaimer on the lead form. Accessible to allowed customers only.

Implementations

Returns the value of post_submit_headline, or the default value if post_submit_headline is unset.

Returns the value of post_submit_description, or the default value if post_submit_description is unset.

Returns the enum value of call_to_action_type, or the default if the field is set to an invalid enum value.

Sets call_to_action_type to the provided enum value.

Returns the enum value of post_submit_call_to_action_type, or the default if the field is set to an invalid enum value.

pub fn set_post_submit_call_to_action_type(
    &mut self,
    value: LeadFormPostSubmitCallToActionType
)

Sets post_submit_call_to_action_type to the provided enum value.

Returns the value of background_image_asset, or the default value if background_image_asset is unset.

Returns the enum value of desired_intent, or the default if the field is set to an invalid enum value.

Sets desired_intent to the provided enum value.

Returns the value of custom_disclosure, or the default value if custom_disclosure is unset.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

Encodes the message to a buffer. Read more

Encodes the message to a newly allocated buffer.

Encodes the message with a length-delimiter to a buffer. Read more

Encodes the message with a length-delimiter to a newly allocated buffer.

Decodes an instance of the message from a buffer. Read more

Decodes a length-delimited instance of the message from the buffer.

Decodes an instance of the message from a buffer, and merges it into self. Read more

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more