Class: Google::Apis::DfareportingV2_8::LandingPage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v2_8/classes.rb,
generated/google/apis/dfareporting_v2_8/representations.rb,
generated/google/apis/dfareporting_v2_8/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::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LandingPage

Returns a new instance of LandingPage



6822
6823
6824
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 6822

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)


6797
6798
6799
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 6797

def default
  @default
end

#idFixnum

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

Returns:

  • (Fixnum)


6803
6804
6805
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 6803

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)


6809
6810
6811
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 6809

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)


6815
6816
6817
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 6815

def name
  @name
end

#urlString

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

Returns:

  • (String)


6820
6821
6822
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 6820

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6827
6828
6829
6830
6831
6832
6833
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 6827

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