Class: Google::Apis::DfareportingV3_4::ConnectionType

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v3_4/classes.rb,
generated/google/apis/dfareporting_v3_4/representations.rb,
generated/google/apis/dfareporting_v3_4/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::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ConnectionType

Returns a new instance of ConnectionType.


2303
2304
2305
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 2303

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

Instance Attribute Details

#idFixnum

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

Returns:

  • (Fixnum)

2290
2291
2292
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 2290

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)

2296
2297
2298
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 2296

def kind
  @kind
end

#nameString

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

Returns:

  • (String)

2301
2302
2303
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 2301

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2308
2309
2310
2311
2312
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 2308

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