Class: Google::Apis::DfareportingV2_5::Metro

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 metro region 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) ⇒ Metro

Returns a new instance of Metro.


6849
6850
6851
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 6849

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

Instance Attribute Details

#country_codeString

Country code of the country to which this metro region belongs. Corresponds to the JSON property countryCode

Returns:

  • (String)

6815
6816
6817
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 6815

def country_code
  @country_code
end

#country_dart_idString

DART ID of the country to which this metro region belongs. Corresponds to the JSON property countryDartId

Returns:

  • (String)

6820
6821
6822
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 6820

def country_dart_id
  @country_dart_id
end

#dart_idString

DART ID of this metro region. Corresponds to the JSON property dartId

Returns:

  • (String)

6825
6826
6827
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 6825

def dart_id
  @dart_id
end

#dma_idString

DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code. Corresponds to the JSON property dmaId

Returns:

  • (String)

6831
6832
6833
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 6831

def dma_id
  @dma_id
end

#kindString

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

Returns:

  • (String)

6837
6838
6839
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 6837

def kind
  @kind
end

#metro_codeString

Metro code of this metro region. This is equivalent to dma_id. Corresponds to the JSON property metroCode

Returns:

  • (String)

6842
6843
6844
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 6842

def metro_code
  @metro_code
end

#nameString

Name of this metro region. Corresponds to the JSON property name

Returns:

  • (String)

6847
6848
6849
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 6847

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


6854
6855
6856
6857
6858
6859
6860
6861
6862
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 6854

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