Class: Google::Apis::DfareportingV5::ObaIcon

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

Overview

Online Behavioral Advertiser icon.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ObaIcon

Returns a new instance of ObaIcon.



8944
8945
8946
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 8944

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

Instance Attribute Details

#icon_click_through_urlString

URL to redirect to when an OBA icon is clicked. Corresponds to the JSON property iconClickThroughUrl

Returns:

  • (String)


8905
8906
8907
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 8905

def icon_click_through_url
  @icon_click_through_url
end

#icon_click_tracking_urlString

URL to track click when an OBA icon is clicked. Corresponds to the JSON property iconClickTrackingUrl

Returns:

  • (String)


8910
8911
8912
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 8910

def icon_click_tracking_url
  @icon_click_tracking_url
end

#icon_view_tracking_urlString

URL to track view when an OBA icon is clicked. Corresponds to the JSON property iconViewTrackingUrl

Returns:

  • (String)


8915
8916
8917
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 8915

def icon_view_tracking_url
  @icon_view_tracking_url
end

#programString

Identifies the industry initiative that the icon supports. For example, AdChoices. Corresponds to the JSON property program

Returns:

  • (String)


8921
8922
8923
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 8921

def program
  @program
end

#resource_urlString

OBA icon resource URL. Campaign Manager only supports image and JavaScript icons. Learn more Corresponds to the JSON property resourceUrl

Returns:

  • (String)


8927
8928
8929
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 8927

def resource_url
  @resource_url
end

#sizeGoogle::Apis::DfareportingV5::Size

Represents the dimensions of ads, placements, creatives, or creative assets. Corresponds to the JSON property size



8932
8933
8934
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 8932

def size
  @size
end

#x_positionString

OBA icon x coordinate position. Accepted values are left or right. Corresponds to the JSON property xPosition

Returns:

  • (String)


8937
8938
8939
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 8937

def x_position
  @x_position
end

#y_positionString

OBA icon y coordinate position. Accepted values are top or bottom. Corresponds to the JSON property yPosition

Returns:

  • (String)


8942
8943
8944
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 8942

def y_position
  @y_position
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 8949

def update!(**args)
  @icon_click_through_url = args[:icon_click_through_url] if args.key?(:icon_click_through_url)
  @icon_click_tracking_url = args[:icon_click_tracking_url] if args.key?(:icon_click_tracking_url)
  @icon_view_tracking_url = args[:icon_view_tracking_url] if args.key?(:icon_view_tracking_url)
  @program = args[:program] if args.key?(:program)
  @resource_url = args[:resource_url] if args.key?(:resource_url)
  @size = args[:size] if args.key?(:size)
  @x_position = args[:x_position] if args.key?(:x_position)
  @y_position = args[:y_position] if args.key?(:y_position)
end