Class: Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountGoogleMyBusinessLink

Returns a new instance of AccountGoogleMyBusinessLink.



360
361
362
# File 'lib/google/apis/content_v2_1/classes.rb', line 360

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

Instance Attribute Details

#gmb_account_idString

The ID of the Business Profile. If this is provided, then gmbEmail is ignored. The value of this field should match the accountId used by the Business Profile API. Corresponds to the JSON property gmbAccountId

Returns:

  • (String)


345
346
347
# File 'lib/google/apis/content_v2_1/classes.rb', line 345

def 
  @gmb_account_id
end

#gmb_emailString

The Business Profile email address of a specific account within a Business Profile. A sample account within a Business Profile could be a business account with set of locations, managed under the Business Profile. Corresponds to the JSON property gmbEmail

Returns:

  • (String)


352
353
354
# File 'lib/google/apis/content_v2_1/classes.rb', line 352

def gmb_email
  @gmb_email
end

#statusString

Status of the link between this Merchant Center account and the Business Profile. Acceptable values are: - "active" - "pending" Corresponds to the JSON property status

Returns:

  • (String)


358
359
360
# File 'lib/google/apis/content_v2_1/classes.rb', line 358

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



365
366
367
368
369
# File 'lib/google/apis/content_v2_1/classes.rb', line 365

def update!(**args)
  @gmb_account_id = args[:gmb_account_id] if args.key?(:gmb_account_id)
  @gmb_email = args[:gmb_email] if args.key?(:gmb_email)
  @status = args[:status] if args.key?(:status)
end