class Google::Apis::AdsenseV1_4::AdCode
Attributes
ad_code[RW]
The Auto ad code snippet. The ad code snippet. Corresponds to the JSON property `adCode` @return [String]
amp_body[RW]
The AMP Auto ad code snippet that goes in the body of an AMP page. Corresponds to the JSON property `ampBody` @return [String]
amp_head[RW]
The AMP Auto ad code snippet that goes in the head of an AMP page. Corresponds to the JSON property `ampHead` @return [String]
kind[RW]
Kind this is, in this case adsense#adCode. Corresponds to the JSON property `kind` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/adsense_v1_4/classes.rb, line 227 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/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