Class: Google::Apis::ContentV2_1::Account
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Account
- 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
Overview
Account data. After the creation of a new account it may take a few minutes before it's fully operational. The methods delete, insert, and update require the admin role.
Instance Attribute Summary collapse
-
#account_management ⇒ String
Output only.
-
#ads_links ⇒ Array<Google::Apis::ContentV2_1::AccountAdsLink>
Linked Ads accounts that are active or pending approval.
-
#adult_content ⇒ Boolean
(also: #adult_content?)
Indicates whether the merchant sells adult content.
-
#automatic_improvements ⇒ Google::Apis::ContentV2_1::AccountAutomaticImprovements
The automatic improvements of the account can be used to automatically update items, improve images and shipping.
-
#automatic_label_ids ⇒ Array<Fixnum>
Automatically created label IDs that are assigned to the account by CSS Center.
-
#business_identity ⇒ Google::Apis::ContentV2_1::AccountBusinessIdentity
The business identity attributes can be used to self-declare attributes that let customers know more about your business.
-
#business_information ⇒ Google::Apis::ContentV2_1::AccountBusinessInformation
The business information of the account.
-
#conversion_settings ⇒ Google::Apis::ContentV2_1::AccountConversionSettings
Settings for conversion tracking.
-
#css_id ⇒ Fixnum
ID of CSS the account belongs to.
-
#google_my_business_link ⇒ Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink
The Business Profile which is linked or in the process of being linked with the Merchant Center account.
-
#id ⇒ Fixnum
Required.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#label_ids ⇒ Array<Fixnum>
Manually created label IDs that are assigned to the account by CSS.
-
#name ⇒ String
Required.
-
#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>
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.
Constructor Details
#initialize(**args) ⇒ Account
Returns a new instance of Account.
137 138 139 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 137 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_management ⇒ String
Output only. How the account is managed. Acceptable values are: - "manual
" -
"automatic
"
Corresponds to the JSON property accountManagement
35 36 37 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 35 def account_management @account_management end |
#ads_links ⇒ Array<Google::Apis::ContentV2_1::AccountAdsLink>
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 Google Ads API. To delete an active link, or to cancel a link
request, remove it from the list.
Corresponds to the JSON property adsLinks
44 45 46 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 44 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
49 50 51 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 49 def adult_content @adult_content end |
#automatic_improvements ⇒ Google::Apis::ContentV2_1::AccountAutomaticImprovements
The automatic improvements of the account can be used to automatically update
items, improve images and shipping.
Corresponds to the JSON property automaticImprovements
56 57 58 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 56 def automatic_improvements @automatic_improvements end |
#automatic_label_ids ⇒ Array<Fixnum>
Automatically created label IDs that are assigned to the account by CSS Center.
Corresponds to the JSON property automaticLabelIds
61 62 63 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 61 def automatic_label_ids @automatic_label_ids end |
#business_identity ⇒ Google::Apis::ContentV2_1::AccountBusinessIdentity
The business identity attributes can be used to self-declare attributes that let customers know more
about your business.
Corresponds to the JSON property businessIdentity
68 69 70 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 68 def business_identity @business_identity end |
#business_information ⇒ Google::Apis::ContentV2_1::AccountBusinessInformation
The business information of the account.
Corresponds to the JSON property businessInformation
73 74 75 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 73 def business_information @business_information end |
#conversion_settings ⇒ Google::Apis::ContentV2_1::AccountConversionSettings
Settings for conversion tracking.
Corresponds to the JSON property conversionSettings
78 79 80 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 78 def conversion_settings @conversion_settings end |
#css_id ⇒ Fixnum
ID of CSS the account belongs to.
Corresponds to the JSON property cssId
83 84 85 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 83 def css_id @css_id end |
#google_my_business_link ⇒ Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink
The Business Profile which is linked or in the process of being linked with
the Merchant Center account.
Corresponds to the JSON property googleMyBusinessLink
89 90 91 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 89 def google_my_business_link @google_my_business_link end |
#id ⇒ Fixnum
Required. 64-bit Merchant Center account ID.
Corresponds to the JSON property id
94 95 96 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 94 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
100 101 102 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 100 def kind @kind end |
#label_ids ⇒ Array<Fixnum>
Manually created label IDs that are assigned to the account by CSS.
Corresponds to the JSON property labelIds
105 106 107 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 105 def label_ids @label_ids end |
#name ⇒ String
Required. Display name for the account.
Corresponds to the JSON property name
110 111 112 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 110 def name @name end |
#seller_id ⇒ String
Client-specific, locally-unique, internal ID for the child account.
Corresponds to the JSON property sellerId
115 116 117 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 115 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
121 122 123 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 121 def users @users end |
#website_url ⇒ String
The merchant's website.
Corresponds to the JSON property websiteUrl
126 127 128 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 126 def website_url @website_url end |
#youtube_channel_links ⇒ Array<Google::Apis::ContentV2_1::AccountYouTubeChannelLink>
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
135 136 137 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 135 def youtube_channel_links @youtube_channel_links end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 142 def update!(**args) @account_management = args[:account_management] if args.key?(:account_management) @ads_links = args[:ads_links] if args.key?(:ads_links) @adult_content = args[:adult_content] if args.key?(:adult_content) @automatic_improvements = args[:automatic_improvements] if args.key?(:automatic_improvements) @automatic_label_ids = args[:automatic_label_ids] if args.key?(:automatic_label_ids) @business_identity = args[:business_identity] if args.key?(:business_identity) @business_information = args[:business_information] if args.key?(:business_information) @conversion_settings = args[:conversion_settings] if args.key?(:conversion_settings) @css_id = args[:css_id] if args.key?(:css_id) @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) @label_ids = args[:label_ids] if args.key?(:label_ids) @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 |