Class: Google::Apis::DfareportingV2_7::AdSlot
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_7::AdSlot
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v2_7/classes.rb,
generated/google/apis/dfareporting_v2_7/representations.rb,
generated/google/apis/dfareporting_v2_7/representations.rb
Overview
Ad Slot
Instance Attribute Summary collapse
-
#comment ⇒ String
Comment for this ad slot.
-
#compatibility ⇒ String
Ad slot compatibility.
-
#height ⇒ Fixnum
Height of this ad slot.
-
#linked_placement_id ⇒ Fixnum
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 ⇒ Fixnum
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::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AdSlot
Returns a new instance of AdSlot
970 971 972 |
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 970 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comment ⇒ String
Comment for this ad slot.
Corresponds to the JSON property comment
928 929 930 |
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 928 def comment @comment end |
#compatibility ⇒ String
Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering
either on desktop, mobile devices or in mobile apps 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
937 938 939 |
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 937 def compatibility @compatibility end |
#height ⇒ Fixnum
Height of this ad slot.
Corresponds to the JSON property height
942 943 944 |
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 942 def height @height end |
#linked_placement_id ⇒ Fixnum
ID of the placement from an external platform that is linked to this ad slot.
Corresponds to the JSON property linkedPlacementId
947 948 949 |
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 947 def linked_placement_id @linked_placement_id end |
#name ⇒ String
Name of this ad slot.
Corresponds to the JSON property name
952 953 954 |
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 952 def name @name end |
#payment_source_type ⇒ String
Payment source type of this ad slot.
Corresponds to the JSON property paymentSourceType
957 958 959 |
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 957 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
962 963 964 |
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 962 def primary @primary end |
#width ⇒ Fixnum
Width of this ad slot.
Corresponds to the JSON property width
968 969 970 |
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 968 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
975 976 977 978 979 980 981 982 983 984 |
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 975 def update!(**args) @comment = args[:comment] if args.key?(:comment) @compatibility = args[:compatibility] if args.key?(:compatibility) @height = args[:height] if args.key?(:height) @linked_placement_id = args[:linked_placement_id] if args.key?(:linked_placement_id) @name = args[:name] if args.key?(:name) @payment_source_type = args[:payment_source_type] if args.key?(:payment_source_type) @primary = args[:primary] if args.key?(:primary) @width = args[:width] if args.key?(:width) end |