Class: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1AccountReport
- Inherits:
-
Object
- Object
- Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1AccountReport
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/localservices_v1/classes.rb,
generated/google/apis/localservices_v1/representations.rb,
generated/google/apis/localservices_v1/representations.rb
Overview
An Account Report of a GLS account identified by their account id containing aggregate data gathered from a particular date range.
Instance Attribute Summary collapse
-
#account_id ⇒ Fixnum
Unique identifier of the GLS account.
-
#aggregator_info ⇒ Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1AggregatorInfo
Conatiner for aggregator specific information if lead is for an aggregator GLS account.
-
#average_five_star_rating ⇒ Float
Average review rating score from 1-5 stars.
-
#average_weekly_budget ⇒ Float
Average weekly budget in the currency code of the account.
-
#business_name ⇒ String
Business name of the account.
-
#currency_code ⇒ String
Currency code of the account.
-
#current_period_charged_leads ⇒ Fixnum
Number of charged leads the account received in current specified period.
-
#current_period_connected_phone_calls ⇒ Fixnum
Number of connected phone calls (duration over 30s) in current specified period.
-
#current_period_phone_calls ⇒ Fixnum
Number of phone calls in current specified period, including both connected and unconnected calls.
-
#current_period_total_cost ⇒ Float
Total cost of the account in current specified period in the account's specified currency.
-
#phone_lead_responsiveness ⇒ Float
Phone lead responsiveness of the account for the past 90 days from current date.
-
#previous_period_charged_leads ⇒ Fixnum
Number of charged leads the account received in previous specified period.
-
#previous_period_connected_phone_calls ⇒ Fixnum
Number of connected phone calls (duration over 30s) in previous specified period.
-
#previous_period_phone_calls ⇒ Fixnum
Number of phone calls in previous specified period, including both connected and unconnected calls.
-
#previous_period_total_cost ⇒ Float
Total cost of the account in previous specified period in the account's specified currency.
-
#total_review ⇒ Fixnum
Total number of reviews the account has up to current date.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsHomeservicesLocalservicesV1AccountReport
constructor
A new instance of GoogleAdsHomeservicesLocalservicesV1AccountReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsHomeservicesLocalservicesV1AccountReport
Returns a new instance of GoogleAdsHomeservicesLocalservicesV1AccountReport.
119 120 121 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 119 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ Fixnum
Unique identifier of the GLS account.
Corresponds to the JSON property accountId
33 34 35 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 33 def account_id @account_id end |
#aggregator_info ⇒ Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1AggregatorInfo
Conatiner for aggregator specific information if lead is for an aggregator GLS
account.
Corresponds to the JSON property aggregatorInfo
39 40 41 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 39 def aggregator_info @aggregator_info end |
#average_five_star_rating ⇒ Float
Average review rating score from 1-5 stars.
Corresponds to the JSON property averageFiveStarRating
44 45 46 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 44 def @average_five_star_rating end |
#average_weekly_budget ⇒ Float
Average weekly budget in the currency code of the account.
Corresponds to the JSON property averageWeeklyBudget
49 50 51 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 49 def average_weekly_budget @average_weekly_budget end |
#business_name ⇒ String
Business name of the account.
Corresponds to the JSON property businessName
54 55 56 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 54 def business_name @business_name end |
#currency_code ⇒ String
Currency code of the account.
Corresponds to the JSON property currencyCode
59 60 61 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 59 def currency_code @currency_code end |
#current_period_charged_leads ⇒ Fixnum
Number of charged leads the account received in current specified period.
Corresponds to the JSON property currentPeriodChargedLeads
64 65 66 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 64 def current_period_charged_leads @current_period_charged_leads end |
#current_period_connected_phone_calls ⇒ Fixnum
Number of connected phone calls (duration over 30s) in current specified
period.
Corresponds to the JSON property currentPeriodConnectedPhoneCalls
70 71 72 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 70 def current_period_connected_phone_calls @current_period_connected_phone_calls end |
#current_period_phone_calls ⇒ Fixnum
Number of phone calls in current specified period, including both connected
and unconnected calls.
Corresponds to the JSON property currentPeriodPhoneCalls
76 77 78 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 76 def current_period_phone_calls @current_period_phone_calls end |
#current_period_total_cost ⇒ Float
Total cost of the account in current specified period in the account's
specified currency.
Corresponds to the JSON property currentPeriodTotalCost
82 83 84 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 82 def current_period_total_cost @current_period_total_cost end |
#phone_lead_responsiveness ⇒ Float
Phone lead responsiveness of the account for the past 90 days from current
date. This is computed by taking the total number of connected calls from
charged phone leads and dividing by the total number of calls received.
Corresponds to the JSON property phoneLeadResponsiveness
89 90 91 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 89 def phone_lead_responsiveness @phone_lead_responsiveness end |
#previous_period_charged_leads ⇒ Fixnum
Number of charged leads the account received in previous specified period.
Corresponds to the JSON property previousPeriodChargedLeads
94 95 96 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 94 def previous_period_charged_leads @previous_period_charged_leads end |
#previous_period_connected_phone_calls ⇒ Fixnum
Number of connected phone calls (duration over 30s) in previous specified
period.
Corresponds to the JSON property previousPeriodConnectedPhoneCalls
100 101 102 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 100 def previous_period_connected_phone_calls @previous_period_connected_phone_calls end |
#previous_period_phone_calls ⇒ Fixnum
Number of phone calls in previous specified period, including both connected
and unconnected calls.
Corresponds to the JSON property previousPeriodPhoneCalls
106 107 108 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 106 def previous_period_phone_calls @previous_period_phone_calls end |
#previous_period_total_cost ⇒ Float
Total cost of the account in previous specified period in the account's
specified currency.
Corresponds to the JSON property previousPeriodTotalCost
112 113 114 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 112 def previous_period_total_cost @previous_period_total_cost end |
#total_review ⇒ Fixnum
Total number of reviews the account has up to current date.
Corresponds to the JSON property totalReview
117 118 119 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 117 def total_review @total_review end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'generated/google/apis/localservices_v1/classes.rb', line 124 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @aggregator_info = args[:aggregator_info] if args.key?(:aggregator_info) @average_five_star_rating = args[:average_five_star_rating] if args.key?(:average_five_star_rating) @average_weekly_budget = args[:average_weekly_budget] if args.key?(:average_weekly_budget) @business_name = args[:business_name] if args.key?(:business_name) @currency_code = args[:currency_code] if args.key?(:currency_code) @current_period_charged_leads = args[:current_period_charged_leads] if args.key?(:current_period_charged_leads) @current_period_connected_phone_calls = args[:current_period_connected_phone_calls] if args.key?(:current_period_connected_phone_calls) @current_period_phone_calls = args[:current_period_phone_calls] if args.key?(:current_period_phone_calls) @current_period_total_cost = args[:current_period_total_cost] if args.key?(:current_period_total_cost) @phone_lead_responsiveness = args[:phone_lead_responsiveness] if args.key?(:phone_lead_responsiveness) @previous_period_charged_leads = args[:previous_period_charged_leads] if args.key?(:previous_period_charged_leads) @previous_period_connected_phone_calls = args[:previous_period_connected_phone_calls] if args.key?(:previous_period_connected_phone_calls) @previous_period_phone_calls = args[:previous_period_phone_calls] if args.key?(:previous_period_phone_calls) @previous_period_total_cost = args[:previous_period_total_cost] if args.key?(:previous_period_total_cost) @total_review = args[:total_review] if args.key?(:total_review) end |