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 lead source gave. Corresponds to the JSON property `comments` @return [String]
Email address of lead source. Corresponds to the JSON property `email` @return [String]
Last name of lead source. Corresponds to the JSON property `familyName` @return [String]
First name of lead source. Corresponds to the JSON property `givenName` @return [String]
List of reasons for using Google Partner Search and creating a lead. Corresponds to the JSON property `gpsMotivations` @return [Array<String>]
ID of the lead. Corresponds to the JSON property `id` @return [String]
Represents an amount of money with its currency type. Corresponds to the JSON property `minMonthlyBudget` @return [Google::Apis::PartnersV2::Money]
Phone number of lead source. Corresponds to the JSON property `phoneNumber` @return [String]
Type of lead. Corresponds to the JSON property `type` @return [String]
Website URL of lead source. Corresponds to the JSON property `websiteUrl` @return [String]
Public Class Methods
# File generated/google/apis/partners_v2/classes.rb, line 259 def initialize(**args) update!(**args) end
Public Instance Methods
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