class Google::Apis::PartnersV2::Lead

A lead resource that represents an advertiser contact for a `Company`. These are usually generated via Google Partner Search (the advertiser portal).

Attributes

comments[RW]

Comments lead source gave. Corresponds to the JSON property `comments` @return [String]

email[RW]

Email address of lead source. Corresponds to the JSON property `email` @return [String]

family_name[RW]

Last name of lead source. Corresponds to the JSON property `familyName` @return [String]

given_name[RW]

First name of lead source. Corresponds to the JSON property `givenName` @return [String]

gps_motivations[RW]

List of reasons for using Google Partner Search and creating a lead. Corresponds to the JSON property `gpsMotivations` @return [Array<String>]

id[RW]

ID of the lead. Corresponds to the JSON property `id` @return [String]

min_monthly_budget[RW]

Represents an amount of money with its currency type. Corresponds to the JSON property `minMonthlyBudget` @return [Google::Apis::PartnersV2::Money]

phone_number[RW]

Phone number of lead source. Corresponds to the JSON property `phoneNumber` @return [String]

type[RW]

Type of lead. Corresponds to the JSON property `type` @return [String]

website_url[RW]

Website URL of lead source. Corresponds to the JSON property `websiteUrl` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/partners_v2/classes.rb, line 259
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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