Class: Google::Apis::DisplayvideoV2::InventorySource

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

Overview

An inventory source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InventorySource

Returns a new instance of InventorySource.



6879
6880
6881
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6879

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

Instance Attribute Details

#commitmentString

Whether the inventory source has a guaranteed or non-guaranteed delivery. Corresponds to the JSON property commitment

Returns:

  • (String)


6772
6773
6774
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6772

def commitment
  @commitment
end

#creative_configsArray<Google::Apis::DisplayvideoV2::CreativeConfig>

The creative requirements of the inventory source. Not applicable for auction packages. Corresponds to the JSON property creativeConfigs



6778
6779
6780
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6778

def creative_configs
  @creative_configs
end

#deal_idString

The ID in the exchange space that uniquely identifies the inventory source. Must be unique across buyers within each exchange but not necessarily unique across exchanges. Corresponds to the JSON property dealId

Returns:

  • (String)


6785
6786
6787
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6785

def deal_id
  @deal_id
end

#delivery_methodString

The delivery method of the inventory source. * For non-guaranteed inventory sources, the only acceptable value is INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC. * For guaranteed inventory sources, acceptable values are INVENTORY_SOURCE_DELIVERY_METHOD_TAG and INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC. Corresponds to the JSON property deliveryMethod

Returns:

  • (String)


6794
6795
6796
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6794

def delivery_method
  @delivery_method
end

#display_nameString

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

Returns:

  • (String)


6800
6801
6802
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6800

def display_name
  @display_name
end

#exchangeString

The exchange to which the inventory source belongs. Corresponds to the JSON property exchange

Returns:

  • (String)


6805
6806
6807
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6805

def exchange
  @exchange
end

#guaranteed_order_idString

Immutable. The ID of the guaranteed order that this inventory source belongs to. Only applicable when commitment is INVENTORY_SOURCE_COMMITMENT_GUARANTEED . Corresponds to the JSON property guaranteedOrderId

Returns:

  • (String)


6812
6813
6814
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6812

def guaranteed_order_id
  @guaranteed_order_id
end

#inventory_source_idFixnum

Output only. The unique ID of the inventory source. Assigned by the system. Corresponds to the JSON property inventorySourceId

Returns:

  • (Fixnum)


6817
6818
6819
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6817

def inventory_source_id
  @inventory_source_id
end

#inventory_source_product_typeString

Output only. The product type of the inventory source, denoting the way through which it sells inventory. Corresponds to the JSON property inventorySourceProductType

Returns:

  • (String)


6823
6824
6825
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6823

def inventory_source_product_type
  @inventory_source_product_type
end

#inventory_source_typeString

Denotes the type of the inventory source. Corresponds to the JSON property inventorySourceType

Returns:

  • (String)


6828
6829
6830
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6828

def inventory_source_type
  @inventory_source_type
end

#nameString

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

Returns:

  • (String)


6833
6834
6835
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6833

def name
  @name
end

#publisher_nameString

The publisher/seller name of the inventory source. Corresponds to the JSON property publisherName

Returns:

  • (String)


6838
6839
6840
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6838

def publisher_name
  @publisher_name
end

#rate_detailsGoogle::Apis::DisplayvideoV2::RateDetails

The rate related settings of the inventory source. Corresponds to the JSON property rateDetails



6843
6844
6845
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6843

def rate_details
  @rate_details
end

#read_advertiser_idsArray<Fixnum>

Output only. The IDs of advertisers with read-only access to the inventory source. Corresponds to the JSON property readAdvertiserIds

Returns:

  • (Array<Fixnum>)


6849
6850
6851
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6849

def read_advertiser_ids
  @read_advertiser_ids
end

#read_partner_idsArray<Fixnum>

Output only. The IDs of partners with read-only access to the inventory source. All advertisers of partners in this field inherit read-only access to the inventory source. Corresponds to the JSON property readPartnerIds

Returns:

  • (Array<Fixnum>)


6856
6857
6858
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6856

def read_partner_ids
  @read_partner_ids
end

#read_write_accessorsGoogle::Apis::DisplayvideoV2::InventorySourceAccessors

The partner or advertisers with access to the inventory source. Corresponds to the JSON property readWriteAccessors



6861
6862
6863
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6861

def read_write_accessors
  @read_write_accessors
end

#statusGoogle::Apis::DisplayvideoV2::InventorySourceStatus

The status related settings of the inventory source. Corresponds to the JSON property status



6866
6867
6868
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6866

def status
  @status
end

#time_rangeGoogle::Apis::DisplayvideoV2::TimeRange

A time range. Corresponds to the JSON property timeRange



6871
6872
6873
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6871

def time_range
  @time_range
end

#update_timeString

Output only. The timestamp when the inventory source was last updated. Assigned by the system. Corresponds to the JSON property updateTime

Returns:

  • (String)


6877
6878
6879
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6877

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6884

def update!(**args)
  @commitment = args[:commitment] if args.key?(:commitment)
  @creative_configs = args[:creative_configs] if args.key?(:creative_configs)
  @deal_id = args[:deal_id] if args.key?(:deal_id)
  @delivery_method = args[:delivery_method] if args.key?(:delivery_method)
  @display_name = args[:display_name] if args.key?(:display_name)
  @exchange = args[:exchange] if args.key?(:exchange)
  @guaranteed_order_id = args[:guaranteed_order_id] if args.key?(:guaranteed_order_id)
  @inventory_source_id = args[:inventory_source_id] if args.key?(:inventory_source_id)
  @inventory_source_product_type = args[:inventory_source_product_type] if args.key?(:inventory_source_product_type)
  @inventory_source_type = args[:inventory_source_type] if args.key?(:inventory_source_type)
  @name = args[:name] if args.key?(:name)
  @publisher_name = args[:publisher_name] if args.key?(:publisher_name)
  @rate_details = args[:rate_details] if args.key?(:rate_details)
  @read_advertiser_ids = args[:read_advertiser_ids] if args.key?(:read_advertiser_ids)
  @read_partner_ids = args[:read_partner_ids] if args.key?(:read_partner_ids)
  @read_write_accessors = args[:read_write_accessors] if args.key?(:read_write_accessors)
  @status = args[:status] if args.key?(:status)
  @time_range = args[:time_range] if args.key?(:time_range)
  @update_time = args[:update_time] if args.key?(:update_time)
end