Struct googapis::google::ads::googleads::v8::resources::Customer [−][src]
pub struct Customer {Show 17 fields
pub resource_name: String,
pub id: Option<i64>,
pub descriptive_name: Option<String>,
pub currency_code: Option<String>,
pub time_zone: Option<String>,
pub tracking_url_template: Option<String>,
pub final_url_suffix: Option<String>,
pub auto_tagging_enabled: Option<bool>,
pub has_partners_badge: Option<bool>,
pub manager: Option<bool>,
pub test_account: Option<bool>,
pub call_reporting_setting: Option<CallReportingSetting>,
pub conversion_tracking_setting: Option<ConversionTrackingSetting>,
pub remarketing_setting: Option<RemarketingSetting>,
pub pay_per_conversion_eligibility_failure_reasons: Vec<i32>,
pub optimization_score: Option<f64>,
pub optimization_score_weight: f64,
}
Expand description
A customer.
Fields
resource_name: String
Immutable. The resource name of the customer. Customer resource names have the form:
customers/{customer_id}
id: Option<i64>
Output only. The ID of the customer.
descriptive_name: Option<String>
Optional, non-unique descriptive name of the customer.
currency_code: Option<String>
Immutable. The currency in which the account operates. A subset of the currency codes from the ISO 4217 standard is supported.
time_zone: Option<String>
Immutable. The local timezone ID of the customer.
tracking_url_template: Option<String>
The URL template for constructing a tracking URL out of parameters.
final_url_suffix: Option<String>
The URL template for appending params to the final URL
auto_tagging_enabled: Option<bool>
Whether auto-tagging is enabled for the customer.
has_partners_badge: Option<bool>
Output only. Whether the Customer has a Partners program badge. If the Customer is not associated with the Partners program, this will be false. For more information, see https://support.google.com/partners/answer/3125774.
manager: Option<bool>
Output only. Whether the customer is a manager.
test_account: Option<bool>
Output only. Whether the customer is a test account.
call_reporting_setting: Option<CallReportingSetting>
Call reporting setting for a customer.
conversion_tracking_setting: Option<ConversionTrackingSetting>
Output only. Conversion tracking setting for a customer.
remarketing_setting: Option<RemarketingSetting>
Output only. Remarketing setting for a customer.
pay_per_conversion_eligibility_failure_reasons: Vec<i32>
Output only. Reasons why the customer is not eligible to use PaymentMode.CONVERSIONS. If the list is empty, the customer is eligible. This field is read-only.
optimization_score: Option<f64>
Output only. Optimization score of the customer.
Optimization score is an estimate of how well a customer’s campaigns are set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null for all manager customers, and for unscored non-manager customers.
See “About optimization score” at https://support.google.com/google-ads/answer/9061546.
This field is read-only.
optimization_score_weight: f64
Output only. Optimization score weight of the customer.
Optimization score weight can be used to compare/aggregate optimization
scores across multiple non-manager customers. The aggregate optimization
score of a manager is computed as the sum over all of their customers of
Customer.optimization_score * Customer.optimization_score_weight
. This
field is 0 for all manager customers, and for unscored non-manager
customers.
This field is read-only.
Implementations
pub fn pay_per_conversion_eligibility_failure_reasons(
&self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<CustomerPayPerConversionEligibilityFailureReason>>
pub fn pay_per_conversion_eligibility_failure_reasons(
&self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<CustomerPayPerConversionEligibilityFailureReason>>
Returns an iterator which yields the valid enum values contained in pay_per_conversion_eligibility_failure_reasons
.
pub fn push_pay_per_conversion_eligibility_failure_reasons(
&mut self,
value: CustomerPayPerConversionEligibilityFailureReason
)
pub fn push_pay_per_conversion_eligibility_failure_reasons(
&mut self,
value: CustomerPayPerConversionEligibilityFailureReason
)
Appends the provided enum value to pay_per_conversion_eligibility_failure_reasons
.
Returns the value of descriptive_name
, or the default value if descriptive_name
is unset.
Returns the value of currency_code
, or the default value if currency_code
is unset.
Returns the value of time_zone
, or the default value if time_zone
is unset.
Returns the value of tracking_url_template
, or the default value if tracking_url_template
is unset.
Returns the value of final_url_suffix
, or the default value if final_url_suffix
is unset.
Returns the value of auto_tagging_enabled
, or the default value if auto_tagging_enabled
is unset.
Returns the value of has_partners_badge
, or the default value if has_partners_badge
is unset.
Returns the value of manager
, or the default value if manager
is unset.
Returns the value of test_account
, or the default value if test_account
is unset.
Returns the value of optimization_score
, or the default value if optimization_score
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
Auto Trait Implementations
impl RefUnwindSafe for Customer
impl UnwindSafe for Customer
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