Class: Google::Apis::AdsenseV2::AdClientAdCode
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV2::AdClientAdCode
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adsense_v2/classes.rb,
lib/google/apis/adsense_v2/representations.rb,
lib/google/apis/adsense_v2/representations.rb
Overview
Representation of the AdSense code for a given ad client. For more information, see About the AdSense code.
Instance Attribute Summary collapse
-
#ad_code ⇒ String
Output only.
-
#amp_body ⇒ String
Output only.
-
#amp_head ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdClientAdCode
constructor
A new instance of AdClientAdCode.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdClientAdCode
Returns a new instance of AdClientAdCode.
133 134 135 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 133 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_code ⇒ String
Output only. The AdSense code snippet to add to the head of an HTML page.
Corresponds to the JSON property adCode
121 122 123 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 121 def ad_code @ad_code end |
#amp_body ⇒ String
Output only. The AdSense code snippet to add to the body of an AMP page.
Corresponds to the JSON property ampBody
126 127 128 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 126 def amp_body @amp_body end |
#amp_head ⇒ String
Output only. The AdSense code snippet to add to the head of an AMP page.
Corresponds to the JSON property ampHead
131 132 133 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 131 def amp_head @amp_head end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
138 139 140 141 142 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 138 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) end |