Class: Google::Apis::DfareportingV2_5::PlacementStrategy

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

Overview

Contains properties of a placement strategy.

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) ⇒ PlacementStrategy

Returns a new instance of PlacementStrategy.


8231
8232
8233
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8231

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

Instance Attribute Details

#account_idString

Account ID of this placement strategy.This is a read-only field that can be left blank. Corresponds to the JSON property accountId

Returns:

  • (String)

8211
8212
8213
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8211

def 
  @account_id
end

#idString

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

Returns:

  • (String)

8216
8217
8218
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8216

def id
  @id
end

#kindString

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

Returns:

  • (String)

8222
8223
8224
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8222

def kind
  @kind
end

#nameString

Name of this placement strategy. This is a required field. It must be less than 256 characters long and unique among placement strategies of the same account. Corresponds to the JSON property name

Returns:

  • (String)

8229
8230
8231
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8229

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


8236
8237
8238
8239
8240
8241
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8236

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