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
)
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
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
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
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
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
impl RefUnwindSafe for LeadFormAsset
impl Send for LeadFormAsset
impl Sync for LeadFormAsset
impl Unpin for LeadFormAsset
impl UnwindSafe for LeadFormAsset
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
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