Class: Google::Apis::DfareportingV2_8::AdSlot

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

Overview

Ad Slot

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AdSlot

Returns a new instance of AdSlot



1017
1018
1019
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1017

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

Instance Attribute Details

#commentString

Comment for this ad slot. Corresponds to the JSON property comment

Returns:

  • (String)


975
976
977
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 975

def comment
  @comment
end

#compatibilityString

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

Returns:

  • (String)


984
985
986
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 984

def compatibility
  @compatibility
end

#heightFixnum

Height of this ad slot. Corresponds to the JSON property height

Returns:

  • (Fixnum)


989
990
991
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 989

def height
  @height
end

#linked_placement_idFixnum

ID of the placement from an external platform that is linked to this ad slot. Corresponds to the JSON property linkedPlacementId

Returns:

  • (Fixnum)


994
995
996
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 994

def linked_placement_id
  @linked_placement_id
end

#nameString

Name of this ad slot. Corresponds to the JSON property name

Returns:

  • (String)


999
1000
1001
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 999

def name
  @name
end

#payment_source_typeString

Payment source type of this ad slot. Corresponds to the JSON property paymentSourceType

Returns:

  • (String)


1004
1005
1006
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1004

def payment_source_type
  @payment_source_type
end

#primaryBoolean Also known as: primary?

Primary ad slot of a roadblock inventory item. Corresponds to the JSON property primary

Returns:

  • (Boolean)


1009
1010
1011
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1009

def primary
  @primary
end

#widthFixnum

Width of this ad slot. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1015
1016
1017
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1015

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1022

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