Class: Google::Apis::PartnersV2::TrafficSource

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

Overview

Source of traffic for the current request.

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

Returns a new instance of TrafficSource



2004
2005
2006
# File 'generated/google/apis/partners_v2/classes.rb', line 2004

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

Instance Attribute Details

#traffic_source_idString

Identifier to indicate where the traffic comes from. An identifier has multiple letters created by a team which redirected the traffic to us. Corresponds to the JSON property trafficSourceId

Returns:

  • (String)


1995
1996
1997
# File 'generated/google/apis/partners_v2/classes.rb', line 1995

def traffic_source_id
  @traffic_source_id
end

#traffic_sub_idString

Second level identifier to indicate where the traffic comes from. An identifier has multiple letters created by a team which redirected the traffic to us. Corresponds to the JSON property trafficSubId

Returns:

  • (String)


2002
2003
2004
# File 'generated/google/apis/partners_v2/classes.rb', line 2002

def traffic_sub_id
  @traffic_sub_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2009
2010
2011
2012
# File 'generated/google/apis/partners_v2/classes.rb', line 2009

def update!(**args)
  @traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id)
  @traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id)
end