Debian Codegraph @

docs/dyn/adsense_v2.accounts.policyIssues.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="adsense_v2.html">AdSense Management API</a> . <a href="adsense_v2.accounts.html">accounts</a> . <a href="adsense_v2.accounts.policyIssues.html">policyIssues</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
82 <p class="firstline">Gets information about the selected policy issue.</p>
83 <p class="toc_element">
84 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Lists all the policy issues where the specified account is involved, both directly and through any AFP child accounts.</p>
86 <p class="toc_element">
87 <code><a href="#list_next">list_next()</a></code></p>
88 <p class="firstline">Retrieves the next page of results.</p>
89 <h3>Method Details</h3>
90 <div class="method">
91 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93 </div>
94
95 <div class="method">
96 <code class="details" id="get">get(name, x__xgafv=None)</code>
97 <pre>Gets information about the selected policy issue.
98
99 Args:
100 name: string, Required. Name of the policy issue. Format: accounts/{account}/policyIssues/{policy_issue} (required)
101 x__xgafv: string, V1 error format.
102 Allowed values
103 1 - v1 error format
104 2 - v2 error format
105
106 Returns:
107 An object of the form:
108
109 { # Representation of a policy issue for a single entity (site, site-section, or page). All issues for a single entity are represented by a single PolicyIssue resource, though that PolicyIssue can have multiple causes (or &quot;topics&quot;) that can change over time. Policy issues are removed if there are no issues detected recently or if there&#x27;s a recent successful appeal for the entity.
110 &quot;action&quot;: &quot;A String&quot;, # Required. The most severe action taken on the entity over the past seven days.
111 &quot;adClients&quot;: [ # Optional. List of ad clients associated with the policy issue (either as the primary ad client or an associated host/secondary ad client). In the latter case, this will be an ad client that is not owned by the current account.
112 &quot;A String&quot;,
113 ],
114 &quot;adRequestCount&quot;: &quot;A String&quot;, # Required. Total number of ad requests affected by the policy violations over the past seven days.
115 &quot;entityType&quot;: &quot;A String&quot;, # Required. Type of the entity indicating if the entity is a site, site-section, or page.
116 &quot;firstDetectedDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. The date (in the America/Los_Angeles timezone) when policy violations were first detected on the entity.
117 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
118 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
119 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
120 },
121 &quot;lastDetectedDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. The date (in the America/Los_Angeles timezone) when policy violations were last detected on the entity.
122 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
123 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
124 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
125 },
126 &quot;name&quot;: &quot;A String&quot;, # Required. Resource name of the entity with policy issues. Format: accounts/{account}/policyIssues/{policy_issue}
127 &quot;policyTopics&quot;: [ # Required. Unordered list. The policy topics that this entity was found to violate over the past seven days.
128 { # 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.
129 &quot;mustFix&quot;: True or False, # Required. Deprecated. Always set to false.
130 &quot;topic&quot;: &quot;A String&quot;, # Required. The policy topic. For example, &quot;sexual-content&quot; or &quot;ads-obscuring-content&quot;.&quot;
131 &quot;type&quot;: &quot;A String&quot;, # Optional. The type of policy topic. For example, &quot;POLICY&quot; represents all the policy topics that are related to the Google Publisher Policy (GPP). See https://support.google.com/adsense/answer/15689616.
132 },
133 ],
134 &quot;site&quot;: &quot;A String&quot;, # Required. Hostname/domain of the entity (for example &quot;foo.com&quot; or &quot;www.foo.com&quot;). This _should_ be a bare domain/host name without any protocol. This will be present for all policy issues.
135 &quot;siteSection&quot;: &quot;A String&quot;, # Optional. Prefix of the site-section having policy issues (For example &quot;foo.com/bar-section&quot;). This will be present if the `entity_type` is `SITE_SECTION` and will be absent for other entity types.
136 &quot;uri&quot;: &quot;A String&quot;, # Optional. URI of the page having policy violations (for example &quot;foo.com/bar&quot; or &quot;www.foo.com/bar&quot;). This will be present if the `entity_type` is `PAGE` and will be absent for other entity types.
137 &quot;warningEscalationDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Optional. The date (in the America/Los_Angeles timezone) when the entity will have ad serving demand restricted or ad serving disabled. This is present only for issues with a `WARNED` enforcement action. See https://support.google.com/adsense/answer/11066888.
138 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
139 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
140 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
141 },
142 }</pre>
143 </div>
144
145 <div class="method">
146 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
147 <pre>Lists all the policy issues where the specified account is involved, both directly and through any AFP child accounts.
148
149 Args:
150 parent: string, Required. The account for which policy issues are being retrieved. Format: accounts/{account} (required)
151 pageSize: integer, The maximum number of policy issues to include in the response, used for paging. If unspecified, at most 10000 policy issues will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.
152 pageToken: string, A page token, received from a previous `ListPolicyIssues` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPolicyIssues` must match the call that provided the page token.
153 x__xgafv: string, V1 error format.
154 Allowed values
155 1 - v1 error format
156 2 - v2 error format
157
158 Returns:
159 An object of the form:
160
161 { # Response definition for the policy issues list rpc. Policy issues are reported only if the publisher has at least one AFC ad client in READY or GETTING_READY state. If the publisher has no such AFC ad client, the response will be an empty list.
162 &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token used to page through policy issues. To retrieve the next page of the results, set the next request&#x27;s &quot;page_token&quot; value to this.
163 &quot;policyIssues&quot;: [ # The policy issues returned in the list response.
164 { # Representation of a policy issue for a single entity (site, site-section, or page). All issues for a single entity are represented by a single PolicyIssue resource, though that PolicyIssue can have multiple causes (or &quot;topics&quot;) that can change over time. Policy issues are removed if there are no issues detected recently or if there&#x27;s a recent successful appeal for the entity.
165 &quot;action&quot;: &quot;A String&quot;, # Required. The most severe action taken on the entity over the past seven days.
166 &quot;adClients&quot;: [ # Optional. List of ad clients associated with the policy issue (either as the primary ad client or an associated host/secondary ad client). In the latter case, this will be an ad client that is not owned by the current account.
167 &quot;A String&quot;,
168 ],
169 &quot;adRequestCount&quot;: &quot;A String&quot;, # Required. Total number of ad requests affected by the policy violations over the past seven days.
170 &quot;entityType&quot;: &quot;A String&quot;, # Required. Type of the entity indicating if the entity is a site, site-section, or page.
171 &quot;firstDetectedDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. The date (in the America/Los_Angeles timezone) when policy violations were first detected on the entity.
172 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
173 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
174 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
175 },
176 &quot;lastDetectedDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. The date (in the America/Los_Angeles timezone) when policy violations were last detected on the entity.
177 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
178 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
179 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
180 },
181 &quot;name&quot;: &quot;A String&quot;, # Required. Resource name of the entity with policy issues. Format: accounts/{account}/policyIssues/{policy_issue}
182 &quot;policyTopics&quot;: [ # Required. Unordered list. The policy topics that this entity was found to violate over the past seven days.
183 { # 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.
184 &quot;mustFix&quot;: True or False, # Required. Deprecated. Always set to false.
185 &quot;topic&quot;: &quot;A String&quot;, # Required. The policy topic. For example, &quot;sexual-content&quot; or &quot;ads-obscuring-content&quot;.&quot;
186 &quot;type&quot;: &quot;A String&quot;, # Optional. The type of policy topic. For example, &quot;POLICY&quot; represents all the policy topics that are related to the Google Publisher Policy (GPP). See https://support.google.com/adsense/answer/15689616.
187 },
188 ],
189 &quot;site&quot;: &quot;A String&quot;, # Required. Hostname/domain of the entity (for example &quot;foo.com&quot; or &quot;www.foo.com&quot;). This _should_ be a bare domain/host name without any protocol. This will be present for all policy issues.
190 &quot;siteSection&quot;: &quot;A String&quot;, # Optional. Prefix of the site-section having policy issues (For example &quot;foo.com/bar-section&quot;). This will be present if the `entity_type` is `SITE_SECTION` and will be absent for other entity types.
191 &quot;uri&quot;: &quot;A String&quot;, # Optional. URI of the page having policy violations (for example &quot;foo.com/bar&quot; or &quot;www.foo.com/bar&quot;). This will be present if the `entity_type` is `PAGE` and will be absent for other entity types.
192 &quot;warningEscalationDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Optional. The date (in the America/Los_Angeles timezone) when the entity will have ad serving demand restricted or ad serving disabled. This is present only for issues with a `WARNED` enforcement action. See https://support.google.com/adsense/answer/11066888.
193 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
194 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
195 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
196 },
197 },
198 ],
199 }</pre>
200 </div>
201
202 <div class="method">
203 <code class="details" id="list_next">list_next()</code>
204 <pre>Retrieves the next page of results.
205
206 Args:
207 previous_request: The request for the previous page. (required)
208 previous_response: The response from the request for the previous page. (required)
209
210 Returns:
211 A request object that you can call &#x27;execute()&#x27; on to request the next
212 page. Returns None if there are no more items in the collection.
213 </pre>
214 </div>
215
216 </body></html>