Class: Google::Apis::DfareportingV2_1::ConnectionType

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

Overview

Contains information about an internet connection type that can be targeted by ads. Clients can use the connection type to target mobile vs. broadband users.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ConnectionType

Returns a new instance of ConnectionType.



2082
2083
2084
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 2082

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

Instance Attribute Details

#idString

ID of this connection type. Corresponds to the JSON property id

Returns:

  • (String)


2069
2070
2071
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 2069

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#connectionType". Corresponds to the JSON property kind

Returns:

  • (String)


2075
2076
2077
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 2075

def kind
  @kind
end

#nameString

Name of this connection type. Corresponds to the JSON property name

Returns:

  • (String)


2080
2081
2082
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 2080

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2087
2088
2089
2090
2091
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 2087

def update!(**args)
  @id = args[:id] unless args[:id].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @name = args[:name] unless args[:name].nil?
end