Class: Google::Apis::ContentV2::Account

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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. After the creation of a new account it may take a few minutes before it is fully operational.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Account

Returns a new instance of Account



102
103
104
# File 'generated/google/apis/content_v2/classes.rb', line 102

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#adult_contentBoolean Also known as: adult_content?

Indicates whether the merchant sells adult content. Corresponds to the JSON property adultContent

Returns:

  • (Boolean)


33
34
35
# File 'generated/google/apis/content_v2/classes.rb', line 33

def adult_content
  @adult_content
end

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



43
44
45
# File 'generated/google/apis/content_v2/classes.rb', line 43

def adwords_links
  @adwords_links
end

#business_informationGoogle::Apis::ContentV2::AccountBusinessInformation

The business information of the account. Corresponds to the JSON property businessInformation



48
49
50
# File 'generated/google/apis/content_v2/classes.rb', line 48

def business_information
  @business_information
end

The GMB account which is linked or in the process of being linked with the Merchant Center account. Corresponds to the JSON property googleMyBusinessLink



54
55
56
# File 'generated/google/apis/content_v2/classes.rb', line 54

def google_my_business_link
  @google_my_business_link
end

#idFixnum

Merchant Center account ID. Corresponds to the JSON property id

Returns:

  • (Fixnum)


59
60
61
# File 'generated/google/apis/content_v2/classes.rb', line 59

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# account". Corresponds to the JSON property kind

Returns:

  • (String)


65
66
67
# File 'generated/google/apis/content_v2/classes.rb', line 65

def kind
  @kind
end

#nameString

Display name for the account. Corresponds to the JSON property name

Returns:

  • (String)


70
71
72
# File 'generated/google/apis/content_v2/classes.rb', line 70

def name
  @name
end

#reviews_urlString

[DEPRECATED] This field is never returned and will be ignored if provided. Corresponds to the JSON property reviewsUrl

Returns:

  • (String)


75
76
77
# File 'generated/google/apis/content_v2/classes.rb', line 75

def reviews_url
  @reviews_url
end

#seller_idString

Client-specific, locally-unique, internal ID for the child account. Corresponds to the JSON property sellerId

Returns:

  • (String)


80
81
82
# File 'generated/google/apis/content_v2/classes.rb', line 80

def seller_id
  @seller_id
end

#usersArray<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



86
87
88
# File 'generated/google/apis/content_v2/classes.rb', line 86

def users
  @users
end

#website_urlString

The merchant's website. Corresponds to the JSON property websiteUrl

Returns:

  • (String)


91
92
93
# File 'generated/google/apis/content_v2/classes.rb', line 91

def website_url
  @website_url
end

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



100
101
102
# File 'generated/google/apis/content_v2/classes.rb', line 100

def youtube_channel_links
  @youtube_channel_links
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



107
108
109
110
111
112
113
114
115
116
117
118
119
120
# File 'generated/google/apis/content_v2/classes.rb', line 107

def update!(**args)
  @adult_content = args[:adult_content] if args.key?(:adult_content)
  @adwords_links = args[:adwords_links] if args.key?(:adwords_links)
  @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)
  @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