Class: Google::Apis::DfareportingV2_1::PostalCode
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_1::PostalCode
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/dfareporting_v2_1/classes.rb,
generated/google/apis/dfareporting_v2_1/representations.rb,
generated/google/apis/dfareporting_v2_1/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 ⇒ String
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.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PostalCode
Returns a new instance of PostalCode.
8020 8021 8022 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 8020 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
7997 7998 7999 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 7997 def code @code end |
#country_code ⇒ String
Country code of the country to which this postal code belongs.
Corresponds to the JSON property countryCode
8002 8003 8004 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 8002 def country_code @country_code end |
#country_dart_id ⇒ String
DART ID of the country to which this postal code belongs.
Corresponds to the JSON property countryDartId
8007 8008 8009 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 8007 def country_dart_id @country_dart_id end |
#id ⇒ String
ID of this postal code.
Corresponds to the JSON property id
8012 8013 8014 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 8012 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
8018 8019 8020 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 8018 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8025 8026 8027 8028 8029 8030 8031 |
# 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 |