Class: Google::Apis::DfareportingV2_8::PostalCode
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DfareportingV2_8::PostalCode
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/dfareporting_v2_8/classes.rb,
generated/google/apis/dfareporting_v2_8/representations.rb,
generated/google/apis/dfareporting_v2_8/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.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PostalCode
Returns a new instance of PostalCode
      8889 8890 8891  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8889 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
      8866 8867 8868  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8866 def code @code end  | 
  
#country_code ⇒ String
Country code of the country to which this postal code belongs.
Corresponds to the JSON property countryCode
      8871 8872 8873  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8871 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
      8876 8877 8878  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8876 def country_dart_id @country_dart_id end  | 
  
#id ⇒ String
ID of this postal code.
Corresponds to the JSON property id
      8881 8882 8883  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8881 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
      8887 8888 8889  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8887 def kind @kind end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      8894 8895 8896 8897 8898 8899 8900  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 8894 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  |