Class: Google::Apis::DisplayvideoV1::Channel

Inherits:
Object
  • Object
show all
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 channel. Channels are custom groups of related websites and apps.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Channel

Returns a new instance of Channel.



2548
2549
2550
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2548

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

Instance Attribute Details

#advertiser_idFixnum

The ID of the advertiser that owns the channel. Corresponds to the JSON property advertiserId

Returns:

  • (Fixnum)


2513
2514
2515
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2513

def advertiser_id
  @advertiser_id
end

#channel_idFixnum

Output only. The unique ID of the channel. Assigned by the system. Corresponds to the JSON property channelId

Returns:

  • (Fixnum)


2518
2519
2520
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2518

def channel_id
  @channel_id
end

#display_nameString

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

Returns:

  • (String)


2524
2525
2526
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2524

def display_name
  @display_name
end

#nameString

Output only. The resource name of the channel. Corresponds to the JSON property name

Returns:

  • (String)


2529
2530
2531
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2529

def name
  @name
end

#negatively_targeted_line_item_countFixnum

Output only. Number of line items that are directly targeting this channel negatively. Corresponds to the JSON property negativelyTargetedLineItemCount

Returns:

  • (Fixnum)


2535
2536
2537
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2535

def negatively_targeted_line_item_count
  @negatively_targeted_line_item_count
end

#partner_idFixnum

The ID of the partner that owns the channel. Corresponds to the JSON property partnerId

Returns:

  • (Fixnum)


2540
2541
2542
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2540

def partner_id
  @partner_id
end

#positively_targeted_line_item_countFixnum

Output only. Number of line items that are directly targeting this channel positively. Corresponds to the JSON property positivelyTargetedLineItemCount

Returns:

  • (Fixnum)


2546
2547
2548
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2546

def positively_targeted_line_item_count
  @positively_targeted_line_item_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2553
2554
2555
2556
2557
2558
2559
2560
2561
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2553

def update!(**args)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @negatively_targeted_line_item_count = args[:negatively_targeted_line_item_count] if args.key?(:negatively_targeted_line_item_count)
  @partner_id = args[:partner_id] if args.key?(:partner_id)
  @positively_targeted_line_item_count = args[:positively_targeted_line_item_count] if args.key?(:positively_targeted_line_item_count)
end