Class: Google::Apis::DfareportingV2_5::Country

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

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Country

Returns a new instance of Country.



2506
2507
2508
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 2506

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

Instance Attribute Details

#country_codeString

Country code. Corresponds to the JSON property countryCode

Returns:

  • (String)


2481
2482
2483
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 2481

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)


2487
2488
2489
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 2487

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)


2493
2494
2495
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 2493

def kind
  @kind
end

#nameString

Name of this country. Corresponds to the JSON property name

Returns:

  • (String)


2498
2499
2500
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 2498

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)


2503
2504
2505
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 2503

def ssl_enabled
  @ssl_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2511
2512
2513
2514
2515
2516
2517
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 2511

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