Class: Google::Apis::PartnersV2::Lead

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Lead

Returns a new instance of Lead



1154
1155
1156
# File 'generated/google/apis/partners_v2/classes.rb', line 1154

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#adwords_customer_idFixnum

The AdWords Customer ID of the lead. Corresponds to the JSON property adwordsCustomerId

Returns:

  • (Fixnum)


1079
1080
1081
# File 'generated/google/apis/partners_v2/classes.rb', line 1079

def adwords_customer_id
  @adwords_customer_id
end

#commentsString

Comments lead source gave. Corresponds to the JSON property comments

Returns:

  • (String)


1084
1085
1086
# File 'generated/google/apis/partners_v2/classes.rb', line 1084

def comments
  @comments
end

#create_timeString

Timestamp of when this lead was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1089
1090
1091
# File 'generated/google/apis/partners_v2/classes.rb', line 1089

def create_time
  @create_time
end

#emailString

Email address of lead source. Corresponds to the JSON property email

Returns:

  • (String)


1094
1095
1096
# File 'generated/google/apis/partners_v2/classes.rb', line 1094

def email
  @email
end

#family_nameString

Last name of lead source. Corresponds to the JSON property familyName

Returns:

  • (String)


1099
1100
1101
# File 'generated/google/apis/partners_v2/classes.rb', line 1099

def family_name
  @family_name
end

#given_nameString

First name of lead source. Corresponds to the JSON property givenName

Returns:

  • (String)


1104
1105
1106
# File 'generated/google/apis/partners_v2/classes.rb', line 1104

def given_name
  @given_name
end

#gps_motivationsArray<String>

List of reasons for using Google Partner Search and creating a lead. Corresponds to the JSON property gpsMotivations

Returns:

  • (Array<String>)


1109
1110
1111
# File 'generated/google/apis/partners_v2/classes.rb', line 1109

def gps_motivations
  @gps_motivations
end

#idString

ID of the lead. Corresponds to the JSON property id

Returns:

  • (String)


1114
1115
1116
# File 'generated/google/apis/partners_v2/classes.rb', line 1114

def id
  @id
end

#language_codeString

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

Returns:

  • (String)


1121
1122
1123
# File 'generated/google/apis/partners_v2/classes.rb', line 1121

def language_code
  @language_code
end

#marketing_opt_inBoolean Also known as: marketing_opt_in?

Whether or not the lead signed up for marketing emails Corresponds to the JSON property marketingOptIn

Returns:

  • (Boolean)


1126
1127
1128
# File 'generated/google/apis/partners_v2/classes.rb', line 1126

def marketing_opt_in
  @marketing_opt_in
end

#min_monthly_budgetGoogle::Apis::PartnersV2::Money

Represents an amount of money with its currency type. Corresponds to the JSON property minMonthlyBudget



1132
1133
1134
# File 'generated/google/apis/partners_v2/classes.rb', line 1132

def min_monthly_budget
  @min_monthly_budget
end

#phone_numberString

Phone number of lead source. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


1137
1138
1139
# File 'generated/google/apis/partners_v2/classes.rb', line 1137

def phone_number
  @phone_number
end

#stateString

The lead's state in relation to the company. Corresponds to the JSON property state

Returns:

  • (String)


1142
1143
1144
# File 'generated/google/apis/partners_v2/classes.rb', line 1142

def state
  @state
end

#typeString

Type of lead. Corresponds to the JSON property type

Returns:

  • (String)


1147
1148
1149
# File 'generated/google/apis/partners_v2/classes.rb', line 1147

def type
  @type
end

#website_urlString

Website URL of lead source. Corresponds to the JSON property websiteUrl

Returns:

  • (String)


1152
1153
1154
# File 'generated/google/apis/partners_v2/classes.rb', line 1152

def website_url
  @website_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
# File 'generated/google/apis/partners_v2/classes.rb', line 1159

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