Class: Google::Apis::AdexchangesellerV1::UrlChannel

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

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) ⇒ UrlChannel

Returns a new instance of UrlChannel



506
507
508
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 506

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

Instance Attribute Details

#idString

Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. Corresponds to the JSON property id

Returns:

  • (String)


493
494
495
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 493

def id
  @id
end

#kindString

Kind of resource this is, in this case adexchangeseller#urlChannel. Corresponds to the JSON property kind

Returns:

  • (String)


498
499
500
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 498

def kind
  @kind
end

#url_patternString

URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home Corresponds to the JSON property urlPattern

Returns:

  • (String)


504
505
506
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 504

def url_pattern
  @url_pattern
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



511
512
513
514
515
# File 'generated/google/apis/adexchangeseller_v1/classes.rb', line 511

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