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
-
#adwords_customer_id ⇒ Fixnum
The AdWords Customer ID of the lead.
-
#comments ⇒ String
Comments lead source gave.
-
#create_time ⇒ String
Timestamp of when this lead was created.
-
#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.
-
#language_code ⇒ String
Language code of the lead's language preference, as defined by BCP 47 (IETF BCP 47, "Tags for Identifying Languages").
-
#marketing_opt_in ⇒ Boolean
(also: #marketing_opt_in?)
Whether or not the lead signed up for marketing emails Corresponds to the JSON property
marketingOptIn
. -
#min_monthly_budget ⇒ Google::Apis::PartnersV2::Money
Represents an amount of money with its currency type.
-
#phone_number ⇒ String
Phone number of lead source.
-
#state ⇒ String
The lead's state in relation to the company.
-
#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
1143 1144 1145 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1143 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adwords_customer_id ⇒ Fixnum
The AdWords Customer ID of the lead.
Corresponds to the JSON property adwordsCustomerId
1068 1069 1070 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1068 def adwords_customer_id @adwords_customer_id end |
#comments ⇒ String
Comments lead source gave.
Corresponds to the JSON property comments
1073 1074 1075 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1073 def comments @comments end |
#create_time ⇒ String
Timestamp of when this lead was created.
Corresponds to the JSON property createTime
1078 1079 1080 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1078 def create_time @create_time end |
#email ⇒ String
Email address of lead source.
Corresponds to the JSON property email
1083 1084 1085 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1083 def email @email end |
#family_name ⇒ String
Last name of lead source.
Corresponds to the JSON property familyName
1088 1089 1090 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1088 def family_name @family_name end |
#given_name ⇒ String
First name of lead source.
Corresponds to the JSON property givenName
1093 1094 1095 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1093 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
1098 1099 1100 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1098 def gps_motivations @gps_motivations end |
#id ⇒ String
ID of the lead.
Corresponds to the JSON property id
1103 1104 1105 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1103 def id @id end |
#language_code ⇒ String
Language code of the lead's language preference, as defined by
BCP 47
(IETF BCP 47, "Tags for Identifying Languages").
Corresponds to the JSON property languageCode
1110 1111 1112 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1110 def language_code @language_code end |
#marketing_opt_in ⇒ Boolean Also known as: marketing_opt_in?
Whether or not the lead signed up for marketing emails
Corresponds to the JSON property marketingOptIn
1115 1116 1117 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1115 def marketing_opt_in @marketing_opt_in end |
#min_monthly_budget ⇒ Google::Apis::PartnersV2::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property minMonthlyBudget
1121 1122 1123 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1121 def min_monthly_budget @min_monthly_budget end |
#phone_number ⇒ String
Phone number of lead source.
Corresponds to the JSON property phoneNumber
1126 1127 1128 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1126 def phone_number @phone_number end |
#state ⇒ String
The lead's state in relation to the company.
Corresponds to the JSON property state
1131 1132 1133 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1131 def state @state end |
#type ⇒ String
Type of lead.
Corresponds to the JSON property type
1136 1137 1138 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1136 def type @type end |
#website_url ⇒ String
Website URL of lead source.
Corresponds to the JSON property websiteUrl
1141 1142 1143 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1141 def website_url @website_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1148 def update!(**args) @adwords_customer_id = args[:adwords_customer_id] if args.key?(:adwords_customer_id) @comments = args[:comments] if args.key?(:comments) @create_time = args[:create_time] if args.key?(:create_time) @email = args[:email] if args.key?(:email) @family_name = args[:family_name] if args.key?(:family_name) @given_name = args[:given_name] if args.key?(:given_name) @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations) @id = args[:id] if args.key?(:id) @language_code = args[:language_code] if args.key?(:language_code) @marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in) @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget) @phone_number = args[:phone_number] if args.key?(:phone_number) @state = args[:state] if args.key?(:state) @type = args[:type] if args.key?(:type) @website_url = args[:website_url] if args.key?(:website_url) end |