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

Returns an iterator which yields the valid enum values contained in pay_per_conversion_eligibility_failure_reasons.

Appends the provided enum value to pay_per_conversion_eligibility_failure_reasons.

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

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

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