Class: Google::Apis::DfareportingV3_5::ObaIcon
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV3_5::ObaIcon
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v3_5/classes.rb,
lib/google/apis/dfareporting_v3_5/representations.rb,
lib/google/apis/dfareporting_v3_5/representations.rb
Overview
Online Behavioral Advertiser icon.
Instance Attribute Summary collapse
-
#icon_click_through_url ⇒ String
URL to redirect to when an OBA icon is clicked.
-
#icon_click_tracking_url ⇒ String
URL to track click when an OBA icon is clicked.
-
#icon_view_tracking_url ⇒ String
URL to track view when an OBA icon is clicked.
-
#program ⇒ String
Identifies the industry initiative that the icon supports.
-
#resource_url ⇒ String
OBA icon resource URL.
-
#size ⇒ Google::Apis::DfareportingV3_5::Size
Represents the dimensions of ads, placements, creatives, or creative assets.
-
#x_position ⇒ String
OBA icon x coordinate position.
-
#y_position ⇒ String
OBA icon y coordinate position.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ObaIcon
constructor
A new instance of ObaIcon.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ObaIcon
Returns a new instance of ObaIcon.
7601 7602 7603 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 7601 def initialize(**args) update!(**args) end |
Instance Attribute Details
#icon_click_through_url ⇒ String
URL to redirect to when an OBA icon is clicked.
Corresponds to the JSON property iconClickThroughUrl
7562 7563 7564 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 7562 def icon_click_through_url @icon_click_through_url end |
#icon_click_tracking_url ⇒ String
URL to track click when an OBA icon is clicked.
Corresponds to the JSON property iconClickTrackingUrl
7567 7568 7569 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 7567 def icon_click_tracking_url @icon_click_tracking_url end |
#icon_view_tracking_url ⇒ String
URL to track view when an OBA icon is clicked.
Corresponds to the JSON property iconViewTrackingUrl
7572 7573 7574 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 7572 def icon_view_tracking_url @icon_view_tracking_url end |
#program ⇒ String
Identifies the industry initiative that the icon supports. For example,
AdChoices.
Corresponds to the JSON property program
7578 7579 7580 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 7578 def program @program end |
#resource_url ⇒ String
OBA icon resource URL. Campaign Manager only supports image and JavaScript
icons. Learn more
Corresponds to the JSON property resourceUrl
7584 7585 7586 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 7584 def resource_url @resource_url end |
#size ⇒ Google::Apis::DfareportingV3_5::Size
Represents the dimensions of ads, placements, creatives, or creative assets.
Corresponds to the JSON property size
7589 7590 7591 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 7589 def size @size end |
#x_position ⇒ String
OBA icon x coordinate position. Accepted values are left or right.
Corresponds to the JSON property xPosition
7594 7595 7596 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 7594 def x_position @x_position end |
#y_position ⇒ String
OBA icon y coordinate position. Accepted values are top or bottom.
Corresponds to the JSON property yPosition
7599 7600 7601 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 7599 def y_position @y_position end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 |
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 7606 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 |