Class: Google::Apis::PartnersV2::TrafficSource
- Inherits:
-
Object
- Object
- Google::Apis::PartnersV2::TrafficSource
- 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
-
#traffic_source_id ⇒ String
Identifier to indicate where the traffic comes from.
-
#traffic_sub_id ⇒ String
Second level identifier to indicate where the traffic comes from.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TrafficSource
constructor
A new instance of TrafficSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TrafficSource
Returns a new instance of TrafficSource
1404 1405 1406 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1404 def initialize(**args) update!(**args) end |
Instance Attribute Details
#traffic_source_id ⇒ String
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
1395 1396 1397 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1395 def traffic_source_id @traffic_source_id end |
#traffic_sub_id ⇒ String
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
1402 1403 1404 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1402 def traffic_sub_id @traffic_sub_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1409 1410 1411 1412 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1409 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 |