Class: Google::Apis::MerchantapiAccountsV1beta::GbpAccount

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

Overview

Collection of information related to a Google Business Profile (GBP) account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GbpAccount

Returns a new instance of GbpAccount.



1666
1667
1668
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1666

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

Instance Attribute Details

#gbp_account_idString

The id of the GBP account. Corresponds to the JSON property gbpAccountId

Returns:

  • (String)


1642
1643
1644
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1642

def 
  @gbp_account_id
end

#gbp_account_nameString

The name of the Business Profile. For personal accounts: Email id of the owner. For Business accounts: Name of the Business Account. Corresponds to the JSON property gbpAccountName

Returns:

  • (String)


1648
1649
1650
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1648

def 
  @gbp_account_name
end

#listing_countFixnum

Number of listings under this account. Corresponds to the JSON property listingCount

Returns:

  • (Fixnum)


1653
1654
1655
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1653

def listing_count
  @listing_count
end

#nameString

Identifier. The resource name of the GBP account. Format: accounts/account/ gbpAccount/gbp_account` Corresponds to the JSON propertyname`

Returns:

  • (String)


1659
1660
1661
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1659

def name
  @name
end

#typeString

The type of the Business Profile. Corresponds to the JSON property type

Returns:

  • (String)


1664
1665
1666
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1664

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1671
1672
1673
1674
1675
1676
1677
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1671

def update!(**args)
  @gbp_account_id = args[:gbp_account_id] if args.key?(:gbp_account_id)
  @gbp_account_name = args[:gbp_account_name] if args.key?(:gbp_account_name)
  @listing_count = args[:listing_count] if args.key?(:listing_count)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end