Class: Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink
- 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
-
#gmb_account_id ⇒ String
The ID of the GMB account.
-
#gmb_email ⇒ String
The GMB email address of which a specific account within a GMB account.
-
#status ⇒ String
Status of the link between this Merchant Center account and the GMB account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountGoogleMyBusinessLink
constructor
A new instance of AccountGoogleMyBusinessLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccountGoogleMyBusinessLink
Returns a new instance of AccountGoogleMyBusinessLink.
340 341 342 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 340 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gmb_account_id ⇒ String
The ID of the GMB account. If this is provided, then gmbEmail is ignored.
The value of this field should match the accountId used by the GMB API.
Corresponds to the JSON property gmbAccountId
325 326 327 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 325 def gmb_account_id @gmb_account_id end |
#gmb_email ⇒ String
The GMB email address of which a specific account within a GMB account. A
sample account within a GMB account could be a business account with set of
locations, managed under the GMB account.
Corresponds to the JSON property gmbEmail
332 333 334 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 332 def gmb_email @gmb_email end |
#status ⇒ String
Status of the link between this Merchant Center account and the GMB account.
Acceptable values are: - "active" - "pending"
Corresponds to the JSON property status
338 339 340 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 338 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
345 346 347 348 349 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 345 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 |