Class: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1AccountReport

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idFixnum

Unique identifier of the GLS account. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


33
34
35
# File 'generated/google/apis/localservices_v1/classes.rb', line 33

def 
  @account_id
end

#aggregator_infoGoogle::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_ratingFloat

Average review rating score from 1-5 stars. Corresponds to the JSON property averageFiveStarRating

Returns:

  • (Float)


44
45
46
# File 'generated/google/apis/localservices_v1/classes.rb', line 44

def average_five_star_rating
  @average_five_star_rating
end

#average_weekly_budgetFloat

Average weekly budget in the currency code of the account. Corresponds to the JSON property averageWeeklyBudget

Returns:

  • (Float)


49
50
51
# File 'generated/google/apis/localservices_v1/classes.rb', line 49

def average_weekly_budget
  @average_weekly_budget
end

#business_nameString

Business name of the account. Corresponds to the JSON property businessName

Returns:

  • (String)


54
55
56
# File 'generated/google/apis/localservices_v1/classes.rb', line 54

def business_name
  @business_name
end

#currency_codeString

Currency code of the account. Corresponds to the JSON property currencyCode

Returns:

  • (String)


59
60
61
# File 'generated/google/apis/localservices_v1/classes.rb', line 59

def currency_code
  @currency_code
end

#current_period_charged_leadsFixnum

Number of charged leads the account received in current specified period. Corresponds to the JSON property currentPeriodChargedLeads

Returns:

  • (Fixnum)


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_callsFixnum

Number of connected phone calls (duration over 30s) in current specified period. Corresponds to the JSON property currentPeriodConnectedPhoneCalls

Returns:

  • (Fixnum)


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_callsFixnum

Number of phone calls in current specified period, including both connected and unconnected calls. Corresponds to the JSON property currentPeriodPhoneCalls

Returns:

  • (Fixnum)


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_costFloat

Total cost of the account in current specified period in the account's specified currency. Corresponds to the JSON property currentPeriodTotalCost

Returns:

  • (Float)


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_responsivenessFloat

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

Returns:

  • (Float)


89
90
91
# File 'generated/google/apis/localservices_v1/classes.rb', line 89

def phone_lead_responsiveness
  @phone_lead_responsiveness
end

#previous_period_charged_leadsFixnum

Number of charged leads the account received in previous specified period. Corresponds to the JSON property previousPeriodChargedLeads

Returns:

  • (Fixnum)


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_callsFixnum

Number of connected phone calls (duration over 30s) in previous specified period. Corresponds to the JSON property previousPeriodConnectedPhoneCalls

Returns:

  • (Fixnum)


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_callsFixnum

Number of phone calls in previous specified period, including both connected and unconnected calls. Corresponds to the JSON property previousPeriodPhoneCalls

Returns:

  • (Fixnum)


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_costFloat

Total cost of the account in previous specified period in the account's specified currency. Corresponds to the JSON property previousPeriodTotalCost

Returns:

  • (Float)


112
113
114
# File 'generated/google/apis/localservices_v1/classes.rb', line 112

def previous_period_total_cost
  @previous_period_total_cost
end

#total_reviewFixnum

Total number of reviews the account has up to current date. Corresponds to the JSON property totalReview

Returns:

  • (Fixnum)


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