Class: Google::Apis::DfareportingV4::Country

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb

Overview

Contains information about a country that can be targeted by ads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Country

Returns a new instance of Country.



3111
3112
3113
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 3111

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

Instance Attribute Details

#country_codeString

Country code. Corresponds to the JSON property countryCode

Returns:

  • (String)


3086
3087
3088
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 3086

def country_code
  @country_code
end

#dart_idFixnum

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

Returns:

  • (Fixnum)


3092
3093
3094
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 3092

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)


3098
3099
3100
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 3098

def kind
  @kind
end

#nameString

Name of this country. Corresponds to the JSON property name

Returns:

  • (String)


3103
3104
3105
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 3103

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)


3108
3109
3110
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 3108

def ssl_enabled
  @ssl_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3116
3117
3118
3119
3120
3121
3122
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 3116

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