Class: Google::Apis::DisplayvideoV3::GenerateDefaultLineItemRequest

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

Overview

Request message for LineItemService.GenerateDefaultLineItem.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateDefaultLineItemRequest

Returns a new instance of GenerateDefaultLineItemRequest.



6519
6520
6521
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 6519

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

Instance Attribute Details

#display_nameString

Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes. Corresponds to the JSON property displayName

Returns:

  • (String)


6502
6503
6504
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 6502

def display_name
  @display_name
end

#insertion_order_idFixnum

Required. The unique ID of the insertion order that the line item belongs to. Corresponds to the JSON property insertionOrderId

Returns:

  • (Fixnum)


6507
6508
6509
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 6507

def insertion_order_id
  @insertion_order_id
end

#line_item_typeString

Required. The type of the line item. Corresponds to the JSON property lineItemType

Returns:

  • (String)


6512
6513
6514
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 6512

def line_item_type
  @line_item_type
end

#mobile_appGoogle::Apis::DisplayvideoV3::MobileApp

A mobile app promoted by a mobile app install line item. Corresponds to the JSON property mobileApp



6517
6518
6519
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 6517

def mobile_app
  @mobile_app
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6524
6525
6526
6527
6528
6529
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 6524

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @insertion_order_id = args[:insertion_order_id] if args.key?(:insertion_order_id)
  @line_item_type = args[:line_item_type] if args.key?(:line_item_type)
  @mobile_app = args[:mobile_app] if args.key?(:mobile_app)
end