Class: Google::Apis::DfareportingV2_1::AdSlot
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_1::AdSlot
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/dfareporting_v2_1/classes.rb,
generated/google/apis/dfareporting_v2_1/representations.rb,
generated/google/apis/dfareporting_v2_1/representations.rb
Overview
Ad Slot
Instance Attribute Summary collapse
-
#comment ⇒ String
Comment for this ad slot.
-
#compatibility ⇒ String
Ad slot compatibility.
-
#height ⇒ String
Height of this ad slot.
-
#linked_placement_id ⇒ String
ID of the placement from an external platform that is linked to this ad slot.
-
#name ⇒ String
Name of this ad slot.
-
#payment_source_type ⇒ String
Payment source type of this ad slot.
-
#primary ⇒ Boolean
(also: #primary?)
Primary ad slot of a roadblock inventory item.
-
#width ⇒ String
Width of this ad slot.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdSlot
constructor
A new instance of AdSlot.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AdSlot
Returns a new instance of AdSlot.
942 943 944 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 942 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comment ⇒ String
Comment for this ad slot.
Corresponds to the JSON property comment
901 902 903 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 901 def comment @comment end |
#compatibility ⇒ String
Ad slot compatibility. WEB and WEB_INTERSTITIAL refer to rendering either on
desktop or on mobile devices for regular or interstitial ads respectively. APP
and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers
to rendering in in-stream video ads developed with the VAST standard.
Corresponds to the JSON property compatibility
909 910 911 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 909 def compatibility @compatibility end |
#height ⇒ String
Height of this ad slot.
Corresponds to the JSON property height
914 915 916 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 914 def height @height end |
#linked_placement_id ⇒ String
ID of the placement from an external platform that is linked to this ad slot.
Corresponds to the JSON property linkedPlacementId
919 920 921 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 919 def linked_placement_id @linked_placement_id end |
#name ⇒ String
Name of this ad slot.
Corresponds to the JSON property name
924 925 926 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 924 def name @name end |
#payment_source_type ⇒ String
Payment source type of this ad slot.
Corresponds to the JSON property paymentSourceType
929 930 931 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 929 def payment_source_type @payment_source_type end |
#primary ⇒ Boolean Also known as: primary?
Primary ad slot of a roadblock inventory item.
Corresponds to the JSON property primary
934 935 936 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 934 def primary @primary end |
#width ⇒ String
Width of this ad slot.
Corresponds to the JSON property width
940 941 942 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 940 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
947 948 949 950 951 952 953 954 955 956 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 947 def update!(**args) @comment = args[:comment] unless args[:comment].nil? @compatibility = args[:compatibility] unless args[:compatibility].nil? @height = args[:height] unless args[:height].nil? @linked_placement_id = args[:linked_placement_id] unless args[:linked_placement_id].nil? @name = args[:name] unless args[:name].nil? @payment_source_type = args[:payment_source_type] unless args[:payment_source_type].nil? @primary = args[:primary] unless args[:primary].nil? @width = args[:width] unless args[:width].nil? end |