Class: Google::Apis::ContentV2_1::Account
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Account
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb
Overview
Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, patch, and update require the admin role.
Instance Attribute Summary collapse
-
#ads_links ⇒ Array<Google::Apis::ContentV2_1::AccountAdsLink>
List of linked Ads accounts that are active or pending approval.
-
#adult_content ⇒ Boolean
(also: #adult_content?)
Indicates whether the merchant sells adult content.
-
#business_information ⇒ Google::Apis::ContentV2_1::AccountBusinessInformation
The business information of the account.
-
#google_my_business_link ⇒ Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink
The GMB account which is linked or in the process of being linked with the Merchant Center account.
-
#id ⇒ Fixnum
Merchant Center account ID.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#name ⇒ String
Display name for the account.
-
#seller_id ⇒ String
Client-specific, locally-unique, internal ID for the child account.
-
#users ⇒ Array<Google::Apis::ContentV2_1::AccountUser>
Users with access to the account.
-
#website_url ⇒ String
The merchant's website.
-
#youtube_channel_links ⇒ Array<Google::Apis::ContentV2_1::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
98 99 100 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 98 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ads_links ⇒ Array<Google::Apis::ContentV2_1::AccountAdsLink>
List of linked Ads 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 Ads
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 adsLinks
38 39 40 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 38 def ads_links @ads_links end |
#adult_content ⇒ Boolean Also known as: adult_content?
Indicates whether the merchant sells adult content.
Corresponds to the JSON property adultContent
43 44 45 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 43 def adult_content @adult_content end |
#business_information ⇒ Google::Apis::ContentV2_1::AccountBusinessInformation
The business information of the account.
Corresponds to the JSON property businessInformation
49 50 51 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 49 def business_information @business_information end |
#google_my_business_link ⇒ Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink
The GMB account which is linked or in the process of being linked with the
Merchant Center account.
Corresponds to the JSON property googleMyBusinessLink
55 56 57 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 55 def google_my_business_link @google_my_business_link end |
#id ⇒ Fixnum
Merchant Center account ID.
Corresponds to the JSON property id
60 61 62 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 60 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
66 67 68 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 66 def kind @kind end |
#name ⇒ String
Display name for the account.
Corresponds to the JSON property name
71 72 73 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 71 def name @name end |
#seller_id ⇒ String
Client-specific, locally-unique, internal ID for the child account.
Corresponds to the JSON property sellerId
76 77 78 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 76 def seller_id @seller_id end |
#users ⇒ Array<Google::Apis::ContentV2_1::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
82 83 84 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 82 def users @users end |
#website_url ⇒ String
The merchant's website.
Corresponds to the JSON property websiteUrl
87 88 89 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 87 def website_url @website_url end |
#youtube_channel_links ⇒ Array<Google::Apis::ContentV2_1::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
96 97 98 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 96 def youtube_channel_links @youtube_channel_links end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 103 def update!(**args) @ads_links = args[:ads_links] if args.key?(:ads_links) @adult_content = args[:adult_content] if args.key?(:adult_content) @business_information = args[:business_information] if args.key?(:business_information) @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) @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 |