Method: accounts.policyIssues.list
Stay organized with collections
Save and categorize content based on your preferences.
Lists all the policy issues where the specified account is involved, both directly and through any AFP child accounts.
HTTP request
GET https://adsense.googleapis.com/v2/{parent=accounts/*}/policyIssues
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The account for which policy issues are being retrieved. Format: accounts/{account}
|
Query parameters
Parameters |
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.
|
pageToken |
string
A page token, received from a previous policyIssues.list call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to policyIssues.list must match the call that provided the page token.
|
Request body
The request body must be empty.
Response body
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.
If successful, the response body contains data with the following structure:
JSON representation |
{
"policyIssues": [
{
object (PolicyIssue )
}
],
"nextPageToken": string
} |
Fields |
policyIssues[] |
object (PolicyIssue )
The policy issues returned in the list response.
|
nextPageToken |
string
Continuation token used to page through policy issues. To retrieve the next page of the results, set the next request's "pageToken" value to this.
|
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/adsense
https://www.googleapis.com/auth/adsense.readonly
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-28 UTC.
[null,null,["Last updated 2025-02-28 UTC."],[[["\u003cp\u003eLists all policy issues, both direct and inherited from AFP child accounts, for a specified AdSense account.\u003c/p\u003e\n"],["\u003cp\u003eThe API request requires authorization with either \u003ccode\u003ehttps://www.googleapis.com/auth/adsense\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/adsense.readonly\u003c/code\u003e scopes.\u003c/p\u003e\n"],["\u003cp\u003eResponses are paginated and include a \u003ccode\u003enextPageToken\u003c/code\u003e for retrieving subsequent pages of results.\u003c/p\u003e\n"],["\u003cp\u003ePolicy issues are only reported for publishers with at least one AFC ad client in \u003ccode\u003eREADY\u003c/code\u003e or \u003ccode\u003eGETTING_READY\u003c/code\u003e state.\u003c/p\u003e\n"],["\u003cp\u003eRequest parameters allow filtering by parent account and specifying the desired \u003ccode\u003epageSize\u003c/code\u003e.\u003c/p\u003e\n"]]],["This document details how to retrieve policy issues for a specified account via an HTTP GET request. The request URL utilizes gRPC Transcoding syntax and requires the account ID as a path parameter. Optional query parameters, `pageSize` and `pageToken`, enable pagination. The request body must be empty. The successful response body includes a list of policy issues and a `nextPageToken` for further pagination. Authentication requires specific OAuth scopes. Policy issues are only reported if the account has at least one active AFC ad client.\n"],null,["# Method: accounts.policyIssues.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListPolicyIssuesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists all the policy issues where the specified account is involved, both directly and through any AFP child accounts.\n\n### HTTP request\n\n`GET https://adsense.googleapis.com/v2/{parent=accounts/*}/policyIssues`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The account for which policy issues are being retrieved. Format: accounts/{account} |\n\n### Query parameters\n\n| Parameters ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. |\n| `pageToken` | `string` A page token, received from a previous `policyIssues.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `policyIssues.list` must match the call that provided the page token. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse definition for the policy issues list rpc.\n\nPolicy 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.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"policyIssues\": [ { object (/adsense/management/reference/rest/v2/accounts.policyIssues#PolicyIssue) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `policyIssues[]` | `object (`[PolicyIssue](/adsense/management/reference/rest/v2/accounts.policyIssues#PolicyIssue)`)` The policy issues returned in the list response. |\n| `nextPageToken` | `string` Continuation token used to page through policy issues. To retrieve the next page of the results, set the next request's \"pageToken\" value to this. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/adsense`\n- `\n https://www.googleapis.com/auth/adsense.readonly`"]]