Class: Google::Apis::DfareportingV3_2::CreativeClickThroughUrl

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

Overview

Click-through URL

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

Returns a new instance of CreativeClickThroughUrl



3993
3994
3995
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 3993

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

Instance Attribute Details

#computed_click_through_urlString

Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows:

  • If landingPageId is specified then that landing page's URL is assigned to this field.
  • Otherwise, the customClickThroughUrl is assigned to this field. Corresponds to the JSON property computedClickThroughUrl

Returns:

  • (String)


3981
3982
3983
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 3981

def computed_click_through_url
  @computed_click_through_url
end

#custom_click_through_urlString

Custom click-through URL. Applicable if the landingPageId field is left unset. Corresponds to the JSON property customClickThroughUrl

Returns:

  • (String)


3986
3987
3988
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 3986

def custom_click_through_url
  @custom_click_through_url
end

#landing_page_idFixnum

ID of the landing page for the click-through URL. Corresponds to the JSON property landingPageId

Returns:

  • (Fixnum)


3991
3992
3993
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 3991

def landing_page_id
  @landing_page_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3998
3999
4000
4001
4002
# File 'generated/google/apis/dfareporting_v3_2/classes.rb', line 3998

def update!(**args)
  @computed_click_through_url = args[:computed_click_through_url] if args.key?(:computed_click_through_url)
  @custom_click_through_url = args[:custom_click_through_url] if args.key?(:custom_click_through_url)
  @landing_page_id = args[:landing_page_id] if args.key?(:landing_page_id)
end