class Google::Apis::DfareportingV3_4::City

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

Attributes

country_code[RW]

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

country_dart_id[RW]

DART ID of the country to which this city belongs. Corresponds to the JSON property `countryDartId` @return [Fixnum]

dart_id[RW]

DART ID of this city. This is the ID used for targeting and generating reports. Corresponds to the JSON property `dartId` @return [Fixnum]

kind[RW]

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

metro_code[RW]

Metro region code of the metro region (DMA) to which this city belongs. Corresponds to the JSON property `metroCode` @return [String]

metro_dma_id[RW]

ID of the metro region (DMA) to which this city belongs. Corresponds to the JSON property `metroDmaId` @return [Fixnum]

name[RW]

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

region_code[RW]

Region code of the region to which this city belongs. Corresponds to the JSON property `regionCode` @return [String]

region_dart_id[RW]

DART ID of the region to which this city belongs. Corresponds to the JSON property `regionDartId` @return [Fixnum]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dfareporting_v3_4/classes.rb, line 2027
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)
  @kind = args[:kind] if args.key?(:kind)
  @metro_code = args[:metro_code] if args.key?(:metro_code)
  @metro_dma_id = args[:metro_dma_id] if args.key?(:metro_dma_id)
  @name = args[:name] if args.key?(:name)
  @region_code = args[:region_code] if args.key?(:region_code)
  @region_dart_id = args[:region_dart_id] if args.key?(:region_dart_id)
end