class Google::Apis::PartnersV2::CreateLeadRequest

Request message for CreateLead.

Attributes

lead[RW]

A lead resource that represents an advertiser contact for a `Company`. These are usually generated via Google Partner Search (the advertiser portal). Corresponds to the JSON property `lead` @return [Google::Apis::PartnersV2::Lead]

recaptcha_challenge[RW]

reCaptcha challenge info. Corresponds to the JSON property `recaptchaChallenge` @return [Google::Apis::PartnersV2::RecaptchaChallenge]

request_metadata[RW]

Common data that is in each API request. Corresponds to the JSON property `requestMetadata` @return [Google::Apis::PartnersV2::RequestMetadata]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/partners_v2/classes.rb, line 872
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 877
def update!(**args)
  @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
  @lead = args[:lead] if args.key?(:lead)
  @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge)
end