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.

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.



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

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)


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

def adult_content
  @adult_content
end

List of linked AdWords accounts, active or pending approval. To create a new link request, add a new link with status active to the list. It will remain is state pending until approved or rejected in the AdWords interface. To delete an active link or to cancel a link request, remove it from the list. Corresponds to the JSON property adwordsLinks



41
42
43
# File 'generated/google/apis/content_v2/classes.rb', line 41

def adwords_links
  @adwords_links
end

#idString

Merchant Center account ID. Corresponds to the JSON property id

Returns:

  • (String)


46
47
48
# File 'generated/google/apis/content_v2/classes.rb', line 46

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)


52
53
54
# File 'generated/google/apis/content_v2/classes.rb', line 52

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


57
58
59
# File 'generated/google/apis/content_v2/classes.rb', line 57

def name
  @name
end

#reviews_urlString

URL for individual seller reviews, i.e., reviews for each child account. Corresponds to the JSON property reviewsUrl

Returns:

  • (String)


62
63
64
# File 'generated/google/apis/content_v2/classes.rb', line 62

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)


67
68
69
# File 'generated/google/apis/content_v2/classes.rb', line 67

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



73
74
75
# File 'generated/google/apis/content_v2/classes.rb', line 73

def users
  @users
end

#website_urlString

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

Returns:

  • (String)


78
79
80
# File 'generated/google/apis/content_v2/classes.rb', line 78

def website_url
  @website_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



85
86
87
88
89
90
91
92
93
94
95
# File 'generated/google/apis/content_v2/classes.rb', line 85

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