Class: Google::Apis::PartnersV2::CreateLeadResponse

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

Response message for CreateLead.

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) ⇒ CreateLeadResponse

Returns a new instance of CreateLeadResponse



1357
1358
1359
# File 'generated/google/apis/partners_v2/classes.rb', line 1357

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

Instance Attribute Details

#leadGoogle::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). Corresponds to the JSON property lead



1349
1350
1351
# File 'generated/google/apis/partners_v2/classes.rb', line 1349

def lead
  @lead
end

#recaptcha_statusString

The outcome of reCaptcha validation. Corresponds to the JSON property recaptchaStatus

Returns:

  • (String)


1355
1356
1357
# File 'generated/google/apis/partners_v2/classes.rb', line 1355

def recaptcha_status
  @recaptcha_status
end

#response_metadataGoogle::Apis::PartnersV2::ResponseMetadata

Common data that is in each API response. Corresponds to the JSON property responseMetadata



1343
1344
1345
# File 'generated/google/apis/partners_v2/classes.rb', line 1343

def 
  @response_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1362
1363
1364
1365
1366
# File 'generated/google/apis/partners_v2/classes.rb', line 1362

def update!(**args)
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
  @lead = args[:lead] if args.key?(:lead)
  @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status)
end