Class: Google::Apis::DfareportingV2_7::PostalCode

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

Overview

Contains information about a postal code 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) ⇒ PostalCode

Returns a new instance of PostalCode



8767
8768
8769
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8767

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

Instance Attribute Details

#codeString

Postal code. This is equivalent to the id field. Corresponds to the JSON property code

Returns:

  • (String)


8744
8745
8746
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8744

def code
  @code
end

#country_codeString

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

Returns:

  • (String)


8749
8750
8751
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8749

def country_code
  @country_code
end

#country_dart_idFixnum

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

Returns:

  • (Fixnum)


8754
8755
8756
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8754

def country_dart_id
  @country_dart_id
end

#idString

ID of this postal code. Corresponds to the JSON property id

Returns:

  • (String)


8759
8760
8761
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8759

def id
  @id
end

#kindString

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

Returns:

  • (String)


8765
8766
8767
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8765

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8772
8773
8774
8775
8776
8777
8778
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 8772

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