Class: Google::Apis::DfareportingV2_8::City

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

Overview

Contains information about a city 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) ⇒ City

Returns a new instance of City



1949
1950
1951
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1949

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

Instance Attribute Details

#country_codeString

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

Returns:

  • (String)


1906
1907
1908
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1906

def country_code
  @country_code
end

#country_dart_idFixnum

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

Returns:

  • (Fixnum)


1911
1912
1913
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1911

def country_dart_id
  @country_dart_id
end

#dart_idFixnum

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

Returns:

  • (Fixnum)


1916
1917
1918
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1916

def dart_id
  @dart_id
end

#kindString

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

Returns:

  • (String)


1922
1923
1924
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1922

def kind
  @kind
end

#metro_codeString

Metro region code of the metro region (DMA) to which this city belongs. Corresponds to the JSON property metroCode

Returns:

  • (String)


1927
1928
1929
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1927

def metro_code
  @metro_code
end

#metro_dma_idFixnum

ID of the metro region (DMA) to which this city belongs. Corresponds to the JSON property metroDmaId

Returns:

  • (Fixnum)


1932
1933
1934
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1932

def metro_dma_id
  @metro_dma_id
end

#nameString

Name of this city. Corresponds to the JSON property name

Returns:

  • (String)


1937
1938
1939
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1937

def name
  @name
end

#region_codeString

Region code of the region to which this city belongs. Corresponds to the JSON property regionCode

Returns:

  • (String)


1942
1943
1944
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1942

def region_code
  @region_code
end

#region_dart_idFixnum

DART ID of the region to which this city belongs. Corresponds to the JSON property regionDartId

Returns:

  • (Fixnum)


1947
1948
1949
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1947

def region_dart_id
  @region_dart_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1954

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