Class: Google::Apis::ContentV2::Account
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::Account
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Overview
Account data.
Instance Attribute Summary collapse
-
#adult_content ⇒ Boolean
(also: #adult_content?)
Indicates whether the merchant sells adult content.
-
#adwords_links ⇒ Array<Google::Apis::ContentV2::AccountAdwordsLink>
List of linked AdWords accounts, active or pending approval.
-
#id ⇒ String
Merchant Center account ID.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#name ⇒ String
Display name for the account.
-
#reviews_url ⇒ String
URL for individual seller reviews, i.e., reviews for each child account.
-
#seller_id ⇒ String
Client-specific, locally-unique, internal ID for the child account.
-
#users ⇒ Array<Google::Apis::ContentV2::AccountUser>
Users with access to the account.
-
#website_url ⇒ String
The merchant's website.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Account
constructor
A new instance of Account.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Account
Returns a new instance of Account.
80 81 82 |
# File 'generated/google/apis/content_v2/classes.rb', line 80 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adult_content ⇒ Boolean Also known as: adult_content?
Indicates whether the merchant sells adult content.
Corresponds to the JSON property adultContent
32 33 34 |
# File 'generated/google/apis/content_v2/classes.rb', line 32 def adult_content @adult_content end |
#adwords_links ⇒ Array<Google::Apis::ContentV2::AccountAdwordsLink>
List of linked AdWords accounts, active or pending approval. To create a new
link request, add a new link with status active to the list. It will remain is
state pending until approved or rejected in the AdWords interface. To delete
an active link or to cancel a link request, remove it from the list.
Corresponds to the JSON property adwordsLinks
41 42 43 |
# File 'generated/google/apis/content_v2/classes.rb', line 41 def adwords_links @adwords_links end |
#id ⇒ String
Merchant Center account ID.
Corresponds to the JSON property id
46 47 48 |
# File 'generated/google/apis/content_v2/classes.rb', line 46 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
account".
Corresponds to the JSON property kind
52 53 54 |
# File 'generated/google/apis/content_v2/classes.rb', line 52 def kind @kind end |
#name ⇒ String
Display name for the account.
Corresponds to the JSON property name
57 58 59 |
# File 'generated/google/apis/content_v2/classes.rb', line 57 def name @name end |
#reviews_url ⇒ String
URL for individual seller reviews, i.e., reviews for each child account.
Corresponds to the JSON property reviewsUrl
62 63 64 |
# File 'generated/google/apis/content_v2/classes.rb', line 62 def reviews_url @reviews_url end |
#seller_id ⇒ String
Client-specific, locally-unique, internal ID for the child account.
Corresponds to the JSON property sellerId
67 68 69 |
# File 'generated/google/apis/content_v2/classes.rb', line 67 def seller_id @seller_id end |
#users ⇒ Array<Google::Apis::ContentV2::AccountUser>
Users with access to the account. Every account (except for subaccounts) must
have at least one admin user.
Corresponds to the JSON property users
73 74 75 |
# File 'generated/google/apis/content_v2/classes.rb', line 73 def users @users end |
#website_url ⇒ String
The merchant's website.
Corresponds to the JSON property websiteUrl
78 79 80 |
# File 'generated/google/apis/content_v2/classes.rb', line 78 def website_url @website_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
85 86 87 88 89 90 91 92 93 94 95 |
# File 'generated/google/apis/content_v2/classes.rb', line 85 def update!(**args) @adult_content = args[:adult_content] if args.key?(:adult_content) @adwords_links = args[:adwords_links] if args.key?(:adwords_links) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @reviews_url = args[:reviews_url] if args.key?(:reviews_url) @seller_id = args[:seller_id] if args.key?(:seller_id) @users = args[:users] if args.key?(:users) @website_url = args[:website_url] if args.key?(:website_url) end |