Class: Google::Apis::DfareportingV3_4::CustomEvent
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV3_4::CustomEvent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v3_4/classes.rb,
generated/google/apis/dfareporting_v3_4/representations.rb,
generated/google/apis/dfareporting_v3_4/representations.rb
Overview
Experimental feature (no support provided) A custom event represents a third party impression, a third party click, an annotation on a first party impression, or an annotation on a first party click.
Instance Attribute Summary collapse
-
#annotate_click_event ⇒ Google::Apis::DfareportingV3_4::CustomEventClickAnnotation
Annotate a click event.
-
#annotate_impression_event ⇒ Google::Apis::DfareportingV3_4::CustomEventImpressionAnnotation
Annotate an impression.
-
#custom_variables ⇒ Array<Google::Apis::DfareportingV3_4::CustomVariable>
Custom variables associated with the event.
-
#event_type ⇒ String
The type of event.
-
#floodlight_configuration_id ⇒ Fixnum
Floodlight configuration ID of the advertiser the event is linked to.
-
#insert_event ⇒ Google::Apis::DfareportingV3_4::CustomEventInsert
Custom event to be inserted.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#ordinal ⇒ String
The ordinal of this custom event.
-
#timestamp_micros ⇒ Fixnum
The timestamp of this custom event, in Unix epoch micros.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomEvent
constructor
A new instance of CustomEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomEvent
Returns a new instance of CustomEvent.
4697 4698 4699 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4697 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotate_click_event ⇒ Google::Apis::DfareportingV3_4::CustomEventClickAnnotation
Annotate a click event.
Corresponds to the JSON property annotateClickEvent
4650 4651 4652 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4650 def annotate_click_event @annotate_click_event end |
#annotate_impression_event ⇒ Google::Apis::DfareportingV3_4::CustomEventImpressionAnnotation
Annotate an impression.
Corresponds to the JSON property annotateImpressionEvent
4655 4656 4657 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4655 def annotate_impression_event @annotate_impression_event end |
#custom_variables ⇒ Array<Google::Apis::DfareportingV3_4::CustomVariable>
Custom variables associated with the event.
Corresponds to the JSON property customVariables
4660 4661 4662 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4660 def custom_variables @custom_variables end |
#event_type ⇒ String
The type of event. If INSERT, the fields in insertEvent need to be populated.
If ANNOTATE, the fields in either annotateClickEvent or
annotateImpressionEvent need to be populated.
Corresponds to the JSON property eventType
4667 4668 4669 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4667 def event_type @event_type end |
#floodlight_configuration_id ⇒ Fixnum
Floodlight configuration ID of the advertiser the event is linked to. This is
a required field.
Corresponds to the JSON property floodlightConfigurationId
4673 4674 4675 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4673 def floodlight_configuration_id @floodlight_configuration_id end |
#insert_event ⇒ Google::Apis::DfareportingV3_4::CustomEventInsert
Custom event to be inserted.
Corresponds to the JSON property insertEvent
4678 4679 4680 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4678 def insert_event @insert_event end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#customEvent".
Corresponds to the JSON property kind
4684 4685 4686 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4684 def kind @kind end |
#ordinal ⇒ String
The ordinal of this custom event. This is a required field.
Corresponds to the JSON property ordinal
4689 4690 4691 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4689 def ordinal @ordinal end |
#timestamp_micros ⇒ Fixnum
The timestamp of this custom event, in Unix epoch micros. This is a required
field.
Corresponds to the JSON property timestampMicros
4695 4696 4697 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4695 def @timestamp_micros end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 4702 def update!(**args) @annotate_click_event = args[:annotate_click_event] if args.key?(:annotate_click_event) @annotate_impression_event = args[:annotate_impression_event] if args.key?(:annotate_impression_event) @custom_variables = args[:custom_variables] if args.key?(:custom_variables) @event_type = args[:event_type] if args.key?(:event_type) @floodlight_configuration_id = args[:floodlight_configuration_id] if args.key?(:floodlight_configuration_id) @insert_event = args[:insert_event] if args.key?(:insert_event) @kind = args[:kind] if args.key?(:kind) @ordinal = args[:ordinal] if args.key?(:ordinal) @timestamp_micros = args[:timestamp_micros] if args.key?(:timestamp_micros) end |