class Google::Apis::DfareportingV2_1::PostalCode

Contains information about a postal code that can be targeted by ads.

Attributes

code[RW]

Postal code. This is equivalent to the id field. Corresponds to the JSON property `code` @return [String]

country_code[RW]

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

country_dart_id[RW]

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

id[RW]

ID of this postal code. Corresponds to the JSON property `id` @return [String]

kind[RW]

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

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dfareporting_v2_1/classes.rb, line 8020
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 8025
def update!(**args)
  @code = args[:code] unless args[:code].nil?
  @country_code = args[:country_code] unless args[:country_code].nil?
  @country_dart_id = args[:country_dart_id] unless args[:country_dart_id].nil?
  @id = args[:id] unless args[:id].nil?
  @kind = args[:kind] unless args[:kind].nil?
end