Class: Google::Apis::DfareportingV2_1::Country

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 a country that can be targeted by ads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Country

Returns a new instance of Country.



2250
2251
2252
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 2250

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

Instance Attribute Details

#country_codeString

Country code. Corresponds to the JSON property countryCode

Returns:

  • (String)


2225
2226
2227
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 2225

def country_code
  @country_code
end

#dart_idString

DART ID of this country. This is the ID used for targeting and generating reports. Corresponds to the JSON property dartId

Returns:

  • (String)


2231
2232
2233
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 2231

def dart_id
  @dart_id
end

#kindString

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

Returns:

  • (String)


2237
2238
2239
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 2237

def kind
  @kind
end

#nameString

Name of this country. Corresponds to the JSON property name

Returns:

  • (String)


2242
2243
2244
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 2242

def name
  @name
end

#ssl_enabledBoolean Also known as: ssl_enabled?

Whether ad serving supports secure servers in this country. Corresponds to the JSON property sslEnabled

Returns:

  • (Boolean)


2247
2248
2249
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 2247

def ssl_enabled
  @ssl_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2255
2256
2257
2258
2259
2260
2261
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 2255

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