Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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.

interface PolicyIssue {
action?:
| "ENFORCEMENT_ACTION_UNSPECIFIED"
| "WARNED"
| "AD_SERVING_RESTRICTED"
| "AD_SERVING_DISABLED"
| "AD_SERVED_WITH_CLICK_CONFIRMATION"
| "AD_PERSONALIZATION_RESTRICTED";
adClients?: string[];
adRequestCount?: bigint;
entityType?:
| "ENTITY_TYPE_UNSPECIFIED"
| "SITE"
| "SITE_SECTION"
| "PAGE";
firstDetectedDate?: Date;
lastDetectedDate?: Date;
name?: string;
policyTopics?: PolicyTopic[];
site?: string;
siteSection?: string;
uri?: string;
warningEscalationDate?: Date;
}

§Properties

§
action?: "ENFORCEMENT_ACTION_UNSPECIFIED" | "WARNED" | "AD_SERVING_RESTRICTED" | "AD_SERVING_DISABLED" | "AD_SERVED_WITH_CLICK_CONFIRMATION" | "AD_PERSONALIZATION_RESTRICTED"
[src]

Required. The most severe action taken on the entity over the past seven days.

§
adClients?: string[]
[src]

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.

§
adRequestCount?: bigint
[src]

Required. Total number of ad requests affected by the policy violations over the past seven days.

§
entityType?: "ENTITY_TYPE_UNSPECIFIED" | "SITE" | "SITE_SECTION" | "PAGE"
[src]

Required. Type of the entity indicating if the entity is a site, site-section, or page.

§
firstDetectedDate?: Date
[src]

Required. The date (in the America/Los_Angeles timezone) when policy violations were first detected on the entity.

§
lastDetectedDate?: Date
[src]

Required. The date (in the America/Los_Angeles timezone) when policy violations were last detected on the entity.

§
name?: string
[src]

Required. Resource name of the entity with policy issues. Format: accounts/{account}/policyIssues/{policy_issue}

§
policyTopics?: PolicyTopic[]
[src]

Required. Unordered list. The policy topics that this entity was found to violate over the past seven days.

§
site?: string
[src]

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.

§
siteSection?: string
[src]

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.

§
uri?: string
[src]

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.

§
warningEscalationDate?: Date
[src]

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.