Class: Google::Apis::DfareportingV2_1::LandingPage

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

Overview

Contains information about where a user's browser is taken after the user clicks an ad.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LandingPage

Returns a new instance of LandingPage.



6082
6083
6084
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6082

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

Instance Attribute Details

#defaultBoolean Also known as: default?

Whether or not this landing page will be assigned to any ads or creatives that do not have a landing page assigned explicitly. Only one default landing page is allowed per campaign. Corresponds to the JSON property default

Returns:

  • (Boolean)


6057
6058
6059
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6057

def default
  @default
end

#idString

ID of this landing page. This is a read-only, auto-generated field. Corresponds to the JSON property id

Returns:

  • (String)


6063
6064
6065
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6063

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#landingPage". Corresponds to the JSON property kind

Returns:

  • (String)


6069
6070
6071
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6069

def kind
  @kind
end

#nameString

Name of this landing page. This is a required field. It must be less than 256 characters long, and must be unique among landing pages of the same campaign. Corresponds to the JSON property name

Returns:

  • (String)


6075
6076
6077
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6075

def name
  @name
end

#urlString

URL of this landing page. This is a required field. Corresponds to the JSON property url

Returns:

  • (String)


6080
6081
6082
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6080

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6087
6088
6089
6090
6091
6092
6093
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6087

def update!(**args)
  @default = args[:default] unless args[:default].nil?
  @id = args[:id] unless args[:id].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @name = args[:name] unless args[:name].nil?
  @url = args[:url] unless args[:url].nil?
end