Class: Google::Apis::DisplayvideoV2::InventorySourceStatus

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

The status related settings of the inventory source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InventorySourceStatus

Returns a new instance of InventorySourceStatus.



6974
6975
6976
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6974

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

Instance Attribute Details

#config_statusString

Output only. The configuration status of the inventory source. Only applicable for guaranteed inventory sources. Acceptable values are INVENTORY_SOURCE_CONFIG_STATUS_PENDING and INVENTORY_SOURCE_CONFIG_STATUS_COMPLETED. An inventory source must be configured (fill in the required fields, choose creatives, and select a default campaign) before it can serve. Corresponds to the JSON property configStatus

Returns:

  • (String)


6944
6945
6946
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6944

def config_status
  @config_status
end

#entity_pause_reasonString

The user-provided reason for pausing this inventory source. Must not exceed 100 characters. Only applicable when entity_status is set to ENTITY_STATUS_PAUSED. Corresponds to the JSON property entityPauseReason

Returns:

  • (String)


6951
6952
6953
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6951

def entity_pause_reason
  @entity_pause_reason
end

#entity_statusString

Whether or not the inventory source is servable. Acceptable values are ENTITY_STATUS_ACTIVE, ENTITY_STATUS_ARCHIVED, and ENTITY_STATUS_PAUSED. Default value is ENTITY_STATUS_ACTIVE. Corresponds to the JSON property entityStatus

Returns:

  • (String)


6958
6959
6960
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6958

def entity_status
  @entity_status
end

#seller_pause_reasonString

Output only. The seller-provided reason for pausing this inventory source. Only applicable for inventory sources synced directly from the publishers and when seller_status is set to ENTITY_STATUS_PAUSED. Corresponds to the JSON property sellerPauseReason

Returns:

  • (String)


6965
6966
6967
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6965

def seller_pause_reason
  @seller_pause_reason
end

#seller_statusString

Output only. The status set by the seller for the inventory source. Only applicable for inventory sources synced directly from the publishers. Acceptable values are ENTITY_STATUS_ACTIVE and ENTITY_STATUS_PAUSED. Corresponds to the JSON property sellerStatus

Returns:

  • (String)


6972
6973
6974
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6972

def seller_status
  @seller_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6979
6980
6981
6982
6983
6984
6985
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6979

def update!(**args)
  @config_status = args[:config_status] if args.key?(:config_status)
  @entity_pause_reason = args[:entity_pause_reason] if args.key?(:entity_pause_reason)
  @entity_status = args[:entity_status] if args.key?(:entity_status)
  @seller_pause_reason = args[:seller_pause_reason] if args.key?(:seller_pause_reason)
  @seller_status = args[:seller_status] if args.key?(:seller_status)
end