Class: Google::Apis::DfareportingV3_1::Subaccount

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v3_1/classes.rb,
generated/google/apis/dfareporting_v3_1/representations.rb,
generated/google/apis/dfareporting_v3_1/representations.rb

Overview

Contains properties of a Campaign Manager subaccount.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Subaccount

Returns a new instance of Subaccount



11137
11138
11139
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11137

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

Instance Attribute Details

#account_idFixnum

ID of the account that contains this subaccount. This is a read-only field that can be left blank. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


11113
11114
11115
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11113

def 
  @account_id
end

#available_permission_idsArray<Fixnum>

IDs of the available user role permissions for this subaccount. Corresponds to the JSON property availablePermissionIds

Returns:

  • (Array<Fixnum>)


11118
11119
11120
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11118

def available_permission_ids
  @available_permission_ids
end

#idFixnum

ID of this subaccount. This is a read-only, auto-generated field. Corresponds to the JSON property id

Returns:

  • (Fixnum)


11123
11124
11125
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11123

def id
  @id
end

#kindString

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

Returns:

  • (String)


11129
11130
11131
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11129

def kind
  @kind
end

#nameString

Name of this subaccount. This is a required field. Must be less than 128 characters long and be unique among subaccounts of the same account. Corresponds to the JSON property name

Returns:

  • (String)


11135
11136
11137
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11135

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11142
11143
11144
11145
11146
11147
11148
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11142

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @available_permission_ids = args[:available_permission_ids] if args.key?(:available_permission_ids)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
end