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 that are active or pending approval.
-
#id ⇒ Fixnum
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
81 82 83 |
# File 'generated/google/apis/content_v2/classes.rb', line 81 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 that are active or pending approval. To create
a new link request, add a new link with status active to the list. It will
remain in a pending state until approved or rejected either in the AdWords
interface or through the AdWords API. To delete an active link, or to cancel
a link request, remove it from the list.
Corresponds to the JSON property adwordsLinks
42 43 44 |
# File 'generated/google/apis/content_v2/classes.rb', line 42 def adwords_links @adwords_links end |
#id ⇒ Fixnum
Merchant Center account ID.
Corresponds to the JSON property id
47 48 49 |
# File 'generated/google/apis/content_v2/classes.rb', line 47 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
53 54 55 |
# File 'generated/google/apis/content_v2/classes.rb', line 53 def kind @kind end |
#name ⇒ String
Display name for the account.
Corresponds to the JSON property name
58 59 60 |
# File 'generated/google/apis/content_v2/classes.rb', line 58 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
63 64 65 |
# File 'generated/google/apis/content_v2/classes.rb', line 63 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
68 69 70 |
# File 'generated/google/apis/content_v2/classes.rb', line 68 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
74 75 76 |
# File 'generated/google/apis/content_v2/classes.rb', line 74 def users @users end |
#website_url ⇒ String
The merchant's website.
Corresponds to the JSON property websiteUrl
79 80 81 |
# File 'generated/google/apis/content_v2/classes.rb', line 79 def website_url @website_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
86 87 88 89 90 91 92 93 94 95 96 |
# File 'generated/google/apis/content_v2/classes.rb', line 86 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 |