class Google::Apis::DfareportingV2_3::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_3/classes.rb, line 6455
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_3/classes.rb, line 6460
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