Class: Google::Apis::DfareportingV4::PostalCode
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::PostalCode
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Overview
Contains information about a postal code that can be targeted by ads.
Instance Attribute Summary collapse
-
#code ⇒ String
Postal code.
-
#country_code ⇒ String
Country code of the country to which this postal code belongs.
-
#country_dart_id ⇒ Fixnum
DART ID of the country to which this postal code belongs.
-
#id ⇒ String
ID of this postal code.
-
#kind ⇒ String
Identifies what kind of resource this is.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PostalCode
constructor
A new instance of PostalCode.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PostalCode
Returns a new instance of PostalCode.
9741 9742 9743 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 9741 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Postal code. This is equivalent to the id field.
Corresponds to the JSON property code
9718 9719 9720 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 9718 def code @code end |
#country_code ⇒ String
Country code of the country to which this postal code belongs.
Corresponds to the JSON property countryCode
9723 9724 9725 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 9723 def country_code @country_code end |
#country_dart_id ⇒ Fixnum
DART ID of the country to which this postal code belongs.
Corresponds to the JSON property countryDartId
9728 9729 9730 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 9728 def country_dart_id @country_dart_id end |
#id ⇒ String
ID of this postal code.
Corresponds to the JSON property id
9733 9734 9735 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 9733 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#postalCode".
Corresponds to the JSON property kind
9739 9740 9741 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 9739 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9746 9747 9748 9749 9750 9751 9752 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 9746 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 |