Class: Google::Apis::PartnersV2::Lead
- Inherits:
-
Object
- Object
- Google::Apis::PartnersV2::Lead
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/partners_v2/classes.rb,
generated/google/apis/partners_v2/representations.rb,
generated/google/apis/partners_v2/representations.rb
Overview
A lead resource that represents an advertiser contact for a Company
. These
are usually generated via Google Partner Search (the advertiser portal).
Instance Attribute Summary collapse
-
#comments ⇒ String
Comments lead source gave.
-
#email ⇒ String
Email address of lead source.
-
#family_name ⇒ String
Last name of lead source.
-
#given_name ⇒ String
First name of lead source.
-
#gps_motivations ⇒ Array<String>
List of reasons for using Google Partner Search and creating a lead.
-
#id ⇒ String
ID of the lead.
-
#min_monthly_budget ⇒ Google::Apis::PartnersV2::Money
Represents an amount of money with its currency type.
-
#phone_number ⇒ String
Phone number of lead source.
-
#type ⇒ String
Type of lead.
-
#website_url ⇒ String
Website URL of lead source.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Lead
constructor
A new instance of Lead.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Lead
Returns a new instance of Lead.
259 260 261 |
# File 'generated/google/apis/partners_v2/classes.rb', line 259 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comments ⇒ String
Comments lead source gave.
Corresponds to the JSON property comments
247 248 249 |
# File 'generated/google/apis/partners_v2/classes.rb', line 247 def comments @comments end |
#email ⇒ String
Email address of lead source.
Corresponds to the JSON property email
222 223 224 |
# File 'generated/google/apis/partners_v2/classes.rb', line 222 def email @email end |
#family_name ⇒ String
Last name of lead source.
Corresponds to the JSON property familyName
232 233 234 |
# File 'generated/google/apis/partners_v2/classes.rb', line 232 def family_name @family_name end |
#given_name ⇒ String
First name of lead source.
Corresponds to the JSON property givenName
227 228 229 |
# File 'generated/google/apis/partners_v2/classes.rb', line 227 def given_name @given_name end |
#gps_motivations ⇒ Array<String>
List of reasons for using Google Partner Search and creating a lead.
Corresponds to the JSON property gpsMotivations
252 253 254 |
# File 'generated/google/apis/partners_v2/classes.rb', line 252 def gps_motivations @gps_motivations end |
#id ⇒ String
ID of the lead.
Corresponds to the JSON property id
212 213 214 |
# File 'generated/google/apis/partners_v2/classes.rb', line 212 def id @id end |
#min_monthly_budget ⇒ Google::Apis::PartnersV2::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property minMonthlyBudget
257 258 259 |
# File 'generated/google/apis/partners_v2/classes.rb', line 257 def min_monthly_budget @min_monthly_budget end |
#phone_number ⇒ String
Phone number of lead source.
Corresponds to the JSON property phoneNumber
242 243 244 |
# File 'generated/google/apis/partners_v2/classes.rb', line 242 def phone_number @phone_number end |
#type ⇒ String
Type of lead.
Corresponds to the JSON property type
217 218 219 |
# File 'generated/google/apis/partners_v2/classes.rb', line 217 def type @type end |
#website_url ⇒ String
Website URL of lead source.
Corresponds to the JSON property websiteUrl
237 238 239 |
# File 'generated/google/apis/partners_v2/classes.rb', line 237 def website_url @website_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
264 265 266 267 268 269 270 271 272 273 274 275 |
# File 'generated/google/apis/partners_v2/classes.rb', line 264 def update!(**args) @id = args[:id] if args.key?(:id) @type = args[:type] if args.key?(:type) @email = args[:email] if args.key?(:email) @given_name = args[:given_name] if args.key?(:given_name) @family_name = args[:family_name] if args.key?(:family_name) @website_url = args[:website_url] if args.key?(:website_url) @phone_number = args[:phone_number] if args.key?(:phone_number) @comments = args[:comments] if args.key?(:comments) @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations) @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget) end |