Class: Google::Apis::AdsenseV2::UrlChannel

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

Overview

Representation of a URL channel. URL channels allow you to track the performance of particular pages in your site; see URL channels for more information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UrlChannel

Returns a new instance of UrlChannel.



1008
1009
1010
# File 'lib/google/apis/adsense_v2/classes.rb', line 1008

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

Instance Attribute Details

#nameString

Resource name of the URL channel. Format: accounts/account/adclient/ adclient/urlchannels/urlchannel Corresponds to the JSON property name

Returns:

  • (String)


994
995
996
# File 'lib/google/apis/adsense_v2/classes.rb', line 994

def name
  @name
end

#reporting_dimension_idString

Output only. Unique ID of the custom channel as used in the URL_CHANNEL_ID reporting dimension. Corresponds to the JSON property reportingDimensionId

Returns:

  • (String)


1000
1001
1002
# File 'lib/google/apis/adsense_v2/classes.rb', line 1000

def reporting_dimension_id
  @reporting_dimension_id
end

#uri_patternString

URI pattern of the channel. Does not include "http://" or "https://". Example: www.example.com/home Corresponds to the JSON property uriPattern

Returns:

  • (String)


1006
1007
1008
# File 'lib/google/apis/adsense_v2/classes.rb', line 1006

def uri_pattern
  @uri_pattern
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1013
1014
1015
1016
1017
# File 'lib/google/apis/adsense_v2/classes.rb', line 1013

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @reporting_dimension_id = args[:reporting_dimension_id] if args.key?(:reporting_dimension_id)
  @uri_pattern = args[:uri_pattern] if args.key?(:uri_pattern)
end