Class: Google::Apis::DfareportingV4::ClickThroughUrl
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::ClickThroughUrl
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Overview
Click-through URL
Instance Attribute Summary collapse
-
#computed_click_through_url ⇒ String
Read-only convenience field representing the actual URL that will be used for this click-through.
-
#custom_click_through_url ⇒ String
Custom click-through URL.
-
#default_landing_page ⇒ Boolean
(also: #default_landing_page?)
Whether the campaign default landing page is used.
-
#landing_page_id ⇒ Fixnum
ID of the landing page for the click-through URL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClickThroughUrl
constructor
A new instance of ClickThroughUrl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClickThroughUrl
Returns a new instance of ClickThroughUrl.
2382 2383 2384 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2382 def initialize(**args) update!(**args) end |
Instance Attribute Details
#computed_click_through_url ⇒ String
Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field.
- If defaultLandingPage is not enabled and a landingPageId is specified then
that landing page's URL is assigned to this field. - If neither of the above
cases apply, then the customClickThroughUrl is assigned to this field.
Corresponds to the JSON property
computedClickThroughUrl
2362 2363 2364 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2362 def computed_click_through_url @computed_click_through_url end |
#custom_click_through_url ⇒ String
Custom click-through URL. Applicable if the defaultLandingPage field is set to
false and the landingPageId field is left unset.
Corresponds to the JSON property customClickThroughUrl
2368 2369 2370 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2368 def custom_click_through_url @custom_click_through_url end |
#default_landing_page ⇒ Boolean Also known as: default_landing_page?
Whether the campaign default landing page is used.
Corresponds to the JSON property defaultLandingPage
2373 2374 2375 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2373 def default_landing_page @default_landing_page end |
#landing_page_id ⇒ Fixnum
ID of the landing page for the click-through URL. Applicable if the
defaultLandingPage field is set to false.
Corresponds to the JSON property landingPageId
2380 2381 2382 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2380 def landing_page_id @landing_page_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2387 2388 2389 2390 2391 2392 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 2387 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) @default_landing_page = args[:default_landing_page] if args.key?(:default_landing_page) @landing_page_id = args[:landing_page_id] if args.key?(:landing_page_id) end |