Class: Google::Apis::DatamanagerV1::CustomVariable
- Inherits:
-
Object
- Object
- Google::Apis::DatamanagerV1::CustomVariable
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datamanager_v1/classes.rb,
lib/google/apis/datamanager_v1/representations.rb,
lib/google/apis/datamanager_v1/representations.rb
Overview
Custom variable for ads conversions.
Instance Attribute Summary collapse
-
#destination_references ⇒ Array<String>
Optional.
-
#value ⇒ String
Optional.
-
#variable ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomVariable
constructor
A new instance of CustomVariable.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomVariable
Returns a new instance of CustomVariable.
371 372 373 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 371 def initialize(**args) update!(**args) end |
Instance Attribute Details
#destination_references ⇒ Array<String>
Optional. Reference string used to determine which of the Event.
destination_references the custom variable should be sent to. If empty, the
Event.destination_references will be used.
Corresponds to the JSON property destinationReferences
358 359 360 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 358 def destination_references @destination_references end |
#value ⇒ String
Optional. The value to store for the custom variable.
Corresponds to the JSON property value
363 364 365 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 363 def value @value end |
#variable ⇒ String
Optional. The name of the custom variable to set. If the variable is not found
for the given destination, it will be ignored.
Corresponds to the JSON property variable
369 370 371 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 369 def variable @variable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
376 377 378 379 380 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 376 def update!(**args) @destination_references = args[:destination_references] if args.key?(:destination_references) @value = args[:value] if args.key?(:value) @variable = args[:variable] if args.key?(:variable) end |