class Google::Apis::DfareportingV3_3::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 [Fixnum]

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 lib/google/apis/dfareporting_v3_3/classes.rb, line 8848
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_3/classes.rb, line 8853
def update!(**args)
  @code = args[:code] if args.key?(:code)
  @country_code = args[:country_code] if args.key?(:country_code)
  @country_dart_id = args[:country_dart_id] if args.key?(:country_dart_id)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
end