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.
-
#google_my_business_link ⇒ Google::Apis::ContentV2::AccountGoogleMyBusinessLink
The GMB account which is linked or in the process of being linked with the Merchant Center accounnt.
-
#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
[DEPRECATED] This field is never returned and will be ignored if provided.
-
#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.
-
#youtube_channel_links ⇒ Array<Google::Apis::ContentV2::AccountYouTubeChannelLink>
List of linked YouTube channels that are active or pending approval.
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
96 97 98 |
# File 'generated/google/apis/content_v2/classes.rb', line 96 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 |
#google_my_business_link ⇒ Google::Apis::ContentV2::AccountGoogleMyBusinessLink
The GMB account which is linked or in the process of being linked with the
Merchant Center accounnt.
Corresponds to the JSON property googleMyBusinessLink
48 49 50 |
# File 'generated/google/apis/content_v2/classes.rb', line 48 def google_my_business_link @google_my_business_link end |
#id ⇒ Fixnum
Merchant Center account ID.
Corresponds to the JSON property id
53 54 55 |
# File 'generated/google/apis/content_v2/classes.rb', line 53 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
59 60 61 |
# File 'generated/google/apis/content_v2/classes.rb', line 59 def kind @kind end |
#name ⇒ String
Display name for the account.
Corresponds to the JSON property name
64 65 66 |
# File 'generated/google/apis/content_v2/classes.rb', line 64 def name @name end |
#reviews_url ⇒ String
[DEPRECATED] This field is never returned and will be ignored if provided.
Corresponds to the JSON property reviewsUrl
69 70 71 |
# File 'generated/google/apis/content_v2/classes.rb', line 69 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
74 75 76 |
# File 'generated/google/apis/content_v2/classes.rb', line 74 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
80 81 82 |
# File 'generated/google/apis/content_v2/classes.rb', line 80 def users @users end |
#website_url ⇒ String
The merchant's website.
Corresponds to the JSON property websiteUrl
85 86 87 |
# File 'generated/google/apis/content_v2/classes.rb', line 85 def website_url @website_url end |
#youtube_channel_links ⇒ Array<Google::Apis::ContentV2::AccountYouTubeChannelLink>
List of linked YouTube channels 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 in the YT Creator Studio
interface. To delete an active link, or to cancel a link request, remove it
from the list.
Corresponds to the JSON property youtubeChannelLinks
94 95 96 |
# File 'generated/google/apis/content_v2/classes.rb', line 94 def youtube_channel_links @youtube_channel_links end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'generated/google/apis/content_v2/classes.rb', line 101 def update!(**args) @adult_content = args[:adult_content] if args.key?(:adult_content) @adwords_links = args[:adwords_links] if args.key?(:adwords_links) @google_my_business_link = args[:google_my_business_link] if args.key?(:google_my_business_link) @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) @youtube_channel_links = args[:youtube_channel_links] if args.key?(:youtube_channel_links) end |