Class: Google::Apis::AdsenseV2::PolicyTopic
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV2::PolicyTopic
- 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
Information about a particular policy topic. A policy topic represents a single class of policy issue that can impact ad serving for your site. For example, sexual content or having ads that obscure your content. A single policy issue can have multiple policy topics for a single entity.
Instance Attribute Summary collapse
-
#must_fix ⇒ Boolean
(also: #must_fix?)
Required.
-
#topic ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyTopic
constructor
A new instance of PolicyTopic.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyTopic
Returns a new instance of PolicyTopic.
1041 1042 1043 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1041 def initialize(**args) update!(**args) end |
Instance Attribute Details
#must_fix ⇒ Boolean Also known as: must_fix?
Required. Indicates if this is a policy violation or not. When the value is
true, issues that are instances of this topic must be addressed to remain in
compliance with the partner's agreements with Google. A false value indicates
that it's not mandatory to fix the issues but advertising demand might be
restricted.
Corresponds to the JSON property mustFix
1032 1033 1034 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1032 def must_fix @must_fix end |
#topic ⇒ String
Required. The policy topic. For example, "sexual-content" or "ads-obscuring-
content"."
Corresponds to the JSON property topic
1039 1040 1041 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1039 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1046 1047 1048 1049 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1046 def update!(**args) @must_fix = args[:must_fix] if args.key?(:must_fix) @topic = args[:topic] if args.key?(:topic) end |