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

AmpInspectionResult

import type { AmpInspectionResult } from "https://googleapis.deno.dev/v1/searchconsole:v1.ts";

AMP inspection result of the live page or the current information from Google's index, depending on whether you requested a live inspection or not.

interface AmpInspectionResult {
ampIndexStatusVerdict?:
| "VERDICT_UNSPECIFIED"
| "PASS"
| "PARTIAL"
| "FAIL"
| "NEUTRAL";
ampUrl?: string;
indexingState?:
| "AMP_INDEXING_STATE_UNSPECIFIED"
| "AMP_INDEXING_ALLOWED"
| "BLOCKED_DUE_TO_NOINDEX"
| "BLOCKED_DUE_TO_EXPIRED_UNAVAILABLE_AFTER";
issues?: AmpIssue[];
lastCrawlTime?: Date;
pageFetchState?:
| "PAGE_FETCH_STATE_UNSPECIFIED"
| "SUCCESSFUL"
| "SOFT_404"
| "BLOCKED_ROBOTS_TXT"
| "NOT_FOUND"
| "ACCESS_DENIED"
| "SERVER_ERROR"
| "REDIRECT_ERROR"
| "ACCESS_FORBIDDEN"
| "BLOCKED_4XX"
| "INTERNAL_CRAWL_ERROR"
| "INVALID_URL";
robotsTxtState?: "ROBOTS_TXT_STATE_UNSPECIFIED" | "ALLOWED" | "DISALLOWED";
verdict?:
| "VERDICT_UNSPECIFIED"
| "PASS"
| "PARTIAL"
| "FAIL"
| "NEUTRAL";
}

§Properties

§
ampIndexStatusVerdict?: "VERDICT_UNSPECIFIED" | "PASS" | "PARTIAL" | "FAIL" | "NEUTRAL"
[src]

Index status of the AMP URL.

§
ampUrl?: string
[src]

URL of the AMP that was inspected. If the submitted URL is a desktop page that refers to an AMP version, the AMP version will be inspected.

§
indexingState?: "AMP_INDEXING_STATE_UNSPECIFIED" | "AMP_INDEXING_ALLOWED" | "BLOCKED_DUE_TO_NOINDEX" | "BLOCKED_DUE_TO_EXPIRED_UNAVAILABLE_AFTER"
[src]

Whether or not the page blocks indexing through a noindex rule.

§
issues?: AmpIssue[]
[src]

A list of zero or more AMP issues found for the inspected URL.

§
lastCrawlTime?: Date
[src]

Last time this AMP version was crawled by Google. Absent if the URL was never crawled successfully.

§
pageFetchState?: "PAGE_FETCH_STATE_UNSPECIFIED" | "SUCCESSFUL" | "SOFT_404" | "BLOCKED_ROBOTS_TXT" | "NOT_FOUND" | "ACCESS_DENIED" | "SERVER_ERROR" | "REDIRECT_ERROR" | "ACCESS_FORBIDDEN" | "BLOCKED_4XX" | "INTERNAL_CRAWL_ERROR" | "INVALID_URL"
[src]

Whether or not Google could fetch the AMP.

§
robotsTxtState?: "ROBOTS_TXT_STATE_UNSPECIFIED" | "ALLOWED" | "DISALLOWED"
[src]

Whether or not the page is blocked to Google by a robots.txt rule.

§
verdict?: "VERDICT_UNSPECIFIED" | "PASS" | "PARTIAL" | "FAIL" | "NEUTRAL"
[src]

The status of the most severe error on the page. If a page has both warnings and errors, the page status is error. Error status means the page cannot be shown in Search results.