Class: Google::Apis::DisplayvideoV1::ManualTrigger
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV1::ManualTrigger
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v1/classes.rb,
lib/google/apis/displayvideo_v1/representations.rb,
lib/google/apis/displayvideo_v1/representations.rb
Overview
A single manual trigger in Display & Video 360. Warning: Line Items using manual triggers no longer serve in Display & Video 360. This resource will sunset on August 1, 2023. Read our feature deprecation announcement for more information.
Instance Attribute Summary collapse
-
#activation_duration_minutes ⇒ Fixnum
Required.
-
#advertiser_id ⇒ Fixnum
Required.
-
#display_name ⇒ String
Required.
-
#latest_activation_time ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#trigger_id ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ManualTrigger
constructor
A new instance of ManualTrigger.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ManualTrigger
Returns a new instance of ManualTrigger.
8087 8088 8089 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8087 def initialize(**args) update!(**args) end |
Instance Attribute Details
#activation_duration_minutes ⇒ Fixnum
Required. The maximum duration of each activation in minutes. Must be between
1 and 360 inclusive. After this duration, the trigger will be automatically
deactivated.
Corresponds to the JSON property activationDurationMinutes
8052 8053 8054 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8052 def activation_duration_minutes @activation_duration_minutes end |
#advertiser_id ⇒ Fixnum
Required. Immutable. The unique ID of the advertiser that the manual trigger
belongs to.
Corresponds to the JSON property advertiserId
8058 8059 8060 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8058 def advertiser_id @advertiser_id end |
#display_name ⇒ String
Required. The display name of the manual trigger. Must be UTF-8 encoded with a
maximum size of 240 bytes.
Corresponds to the JSON property displayName
8064 8065 8066 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8064 def display_name @display_name end |
#latest_activation_time ⇒ String
Output only. The timestamp of the trigger's latest activation.
Corresponds to the JSON property latestActivationTime
8069 8070 8071 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8069 def latest_activation_time @latest_activation_time end |
#name ⇒ String
Output only. The resource name of the manual trigger.
Corresponds to the JSON property name
8074 8075 8076 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8074 def name @name end |
#state ⇒ String
Output only. The state of the manual trigger. Will be set to the INACTIVE
state upon creation.
Corresponds to the JSON property state
8080 8081 8082 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8080 def state @state end |
#trigger_id ⇒ Fixnum
Output only. The unique ID of the manual trigger.
Corresponds to the JSON property triggerId
8085 8086 8087 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8085 def trigger_id @trigger_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8092 8093 8094 8095 8096 8097 8098 8099 8100 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8092 def update!(**args) @activation_duration_minutes = args[:activation_duration_minutes] if args.key?(:activation_duration_minutes) @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) @display_name = args[:display_name] if args.key?(:display_name) @latest_activation_time = args[:latest_activation_time] if args.key?(:latest_activation_time) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @trigger_id = args[:trigger_id] if args.key?(:trigger_id) end |