class Google::Apis::DfareportingV2_1::Metro

Contains information about a metro region that can be targeted by ads.

Attributes

country_code[RW]

Country code of the country to which this metro region belongs. Corresponds to the JSON property `countryCode` @return [String]

country_dart_id[RW]

DART ID of the country to which this metro region belongs. Corresponds to the JSON property `countryDartId` @return [String]

dart_id[RW]

DART ID of this metro region. Corresponds to the JSON property `dartId` @return [String]

dma_id[RW]

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` @return [String]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ dfareporting#metro”. Corresponds to the JSON property `kind` @return [String]

metro_code[RW]

Metro code of this metro region. This is equivalent to dma_id. Corresponds to the JSON property `metroCode` @return [String]

name[RW]

Name of this metro region. Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dfareporting_v2_1/classes.rb, line 6389
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/dfareporting_v2_1/classes.rb, line 6394
def update!(**args)
  @country_code = args[:country_code] unless args[:country_code].nil?
  @country_dart_id = args[:country_dart_id] unless args[:country_dart_id].nil?
  @dart_id = args[:dart_id] unless args[:dart_id].nil?
  @dma_id = args[:dma_id] unless args[:dma_id].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @metro_code = args[:metro_code] unless args[:metro_code].nil?
  @name = args[:name] unless args[:name].nil?
end