Class: Google::Apis::DisplayvideoV1::ObaIcon

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

Overview

OBA Icon for a Creative

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) ⇒ ObaIcon

Returns a new instance of ObaIcon.



5686
5687
5688
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5686

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

Instance Attribute Details

#click_tracking_urlString

Required. The click tracking URL of the OBA icon. Only URLs of the following domains are allowed:

Returns:

  • (String)


5643
5644
5645
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5643

def click_tracking_url
  @click_tracking_url
end

#dimensionsGoogle::Apis::DisplayvideoV1::Dimensions

Dimensions. Corresponds to the JSON property dimensions



5648
5649
5650
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5648

def dimensions
  @dimensions
end

#landing_page_urlString

Required. The landing page URL of the OBA icon. Only URLs of the following domains are allowed:

Returns:

  • (String)


5656
5657
5658
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5656

def landing_page_url
  @landing_page_url
end

#positionString

The position of the OBA icon on the creative. Corresponds to the JSON property position

Returns:

  • (String)


5661
5662
5663
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5661

def position
  @position
end

#programString

The program of the OBA icon. For example: “AdChoices”. Corresponds to the JSON property program

Returns:

  • (String)


5666
5667
5668
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5666

def program
  @program
end

#resource_mime_typeString

The MIME type of the OBA icon resource. Corresponds to the JSON property resourceMimeType

Returns:

  • (String)


5671
5672
5673
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5671

def resource_mime_type
  @resource_mime_type
end

#resource_urlString

The URL of the OBA icon resource. Corresponds to the JSON property resourceUrl

Returns:

  • (String)


5676
5677
5678
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5676

def resource_url
  @resource_url
end

#view_tracking_urlString

Required. The view tracking URL of the OBA icon. Only URLs of the following domains are allowed:

Returns:

  • (String)


5684
5685
5686
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5684

def view_tracking_url
  @view_tracking_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5691

def update!(**args)
  @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
  @dimensions = args[:dimensions] if args.key?(:dimensions)
  @landing_page_url = args[:landing_page_url] if args.key?(:landing_page_url)
  @position = args[:position] if args.key?(:position)
  @program = args[:program] if args.key?(:program)
  @resource_mime_type = args[:resource_mime_type] if args.key?(:resource_mime_type)
  @resource_url = args[:resource_url] if args.key?(:resource_url)
  @view_tracking_url = args[:view_tracking_url] if args.key?(:view_tracking_url)
end