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.



1271
1272
1273
# File 'lib/google/apis/adsense_v2/classes.rb', line 1271

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


1257
1258
1259
# File 'lib/google/apis/adsense_v2/classes.rb', line 1257

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)


1263
1264
1265
# File 'lib/google/apis/adsense_v2/classes.rb', line 1263

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)


1269
1270
1271
# File 'lib/google/apis/adsense_v2/classes.rb', line 1269

def uri_pattern
  @uri_pattern
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1276
1277
1278
1279
1280
# File 'lib/google/apis/adsense_v2/classes.rb', line 1276

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