PolicyIssue
import type { PolicyIssue } from "https://googleapis.deno.dev/v1/adsense:v2.ts";
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 "topics") that can change over time. Policy issues are removed if there are no issues detected recently or if there's a recent successful appeal for the entity.
§Properties
Required. The most severe action taken on the entity over the past seven days.
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.
Required. Total number of ad requests affected by the policy violations over the past seven days.
Required. Type of the entity indicating if the entity is a site, site-section, or page.
Required. Resource name of the entity with policy issues. Format: accounts/{account}/policyIssues/{policy_issue}
Required. Unordered list. The policy topics that this entity was found to violate over the past seven days.
Required. Hostname/domain of the entity (for example "foo.com" or "www.foo.com"). This should be a bare domain/host name without any protocol. This will be present for all policy issues.
Optional. Prefix of the site-section having policy issues (For example
"foo.com/bar-section"). This will be present if the entity_type
is
SITE_SECTION
and will be absent for other entity types.
Optional. URI of the page having policy violations (for example
"foo.com/bar" or "www.foo.com/bar"). This will be present if the
entity_type
is PAGE
and will be absent for other entity types.
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.