Class: Google::Apis::AdsenseV1_4::AdCode
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AdsenseV1_4::AdCode
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/adsense_v1_4/classes.rb,
generated/google/apis/adsense_v1_4/representations.rb,
generated/google/apis/adsense_v1_4/representations.rb 
Instance Attribute Summary collapse
- 
  
    
      #ad_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The Auto ad code snippet.
 - 
  
    
      #amp_body  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The AMP Auto ad code snippet that goes in the body of an AMP page.
 - 
  
    
      #amp_head  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The AMP Auto ad code snippet that goes in the head of an AMP page.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Kind this is, in this case adsense#adCode.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AdCode 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of AdCode.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AdCode
Returns a new instance of AdCode
      227 228 229  | 
    
      # File 'generated/google/apis/adsense_v1_4/classes.rb', line 227 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#ad_code ⇒ String
The Auto ad code snippet. The ad code snippet.
Corresponds to the JSON property adCode
      210 211 212  | 
    
      # File 'generated/google/apis/adsense_v1_4/classes.rb', line 210 def ad_code @ad_code end  | 
  
#amp_body ⇒ String
The AMP Auto ad code snippet that goes in the body of an AMP page.
Corresponds to the JSON property ampBody
      215 216 217  | 
    
      # File 'generated/google/apis/adsense_v1_4/classes.rb', line 215 def amp_body @amp_body end  | 
  
#amp_head ⇒ String
The AMP Auto ad code snippet that goes in the head of an AMP page.
Corresponds to the JSON property ampHead
      220 221 222  | 
    
      # File 'generated/google/apis/adsense_v1_4/classes.rb', line 220 def amp_head @amp_head end  | 
  
#kind ⇒ String
Kind this is, in this case adsense#adCode.
Corresponds to the JSON property kind
      225 226 227  | 
    
      # File 'generated/google/apis/adsense_v1_4/classes.rb', line 225 def kind @kind end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      232 233 234 235 236 237  | 
    
      # File 'generated/google/apis/adsense_v1_4/classes.rb', line 232 def update!(**args) @ad_code = args[:ad_code] if args.key?(:ad_code) @amp_body = args[:amp_body] if args.key?(:amp_body) @amp_head = args[:amp_head] if args.key?(:amp_head) @kind = args[:kind] if args.key?(:kind) end  |