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

AdSensePlatform

import { AdSensePlatform } from "https://googleapis.deno.dev/v1/adsenseplatform:v1.ts";
class AdSensePlatform {
constructor(client?: CredentialsClient, baseUrl?: string);
async platformsAccountsClose(name: string, req: CloseAccountRequest): Promise<CloseAccountResponse>;
async platformsAccountsCreate(parent: string, req: Account): Promise<Account>;
async platformsAccountsEventsCreate(parent: string, req: Event): Promise<Event>;
async platformsAccountsGet(name: string): Promise<Account>;
async platformsAccountsList(parent: string, opts?: PlatformsAccountsListOptions): Promise<ListAccountsResponse>;
async platformsAccountsLookup(parent: string, opts?: PlatformsAccountsLookupOptions): Promise<LookupAccountResponse>;
async platformsAccountsSitesCreate(parent: string, req: Site): Promise<Site>;
async platformsAccountsSitesDelete(name: string): Promise<Empty>;
async platformsAccountsSitesGet(name: string): Promise<Site>;
async platformsAccountsSitesList(parent: string, opts?: PlatformsAccountsSitesListOptions): Promise<ListSitesResponse>;
async platformsAccountsSitesRequestReview(name: string): Promise<RequestSiteReviewResponse>;
}

§Constructors

§
new AdSensePlatform(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
platformsAccountsClose(name: string, req: CloseAccountRequest): Promise<CloseAccountResponse>
[src]

Closes a sub-account.

@param name

Required. Account to close. Format: platforms/{platform}/accounts/{account_id}

§
platformsAccountsCreate(parent: string, req: Account): Promise<Account>
[src]

Creates a sub-account.

@param parent

Required. Platform to create an account for. Format: platforms/{platform}

§
platformsAccountsEventsCreate(parent: string, req: Event): Promise<Event>
[src]

Creates an account event.

@param parent

Required. Account to log events about. Format: platforms/{platform}/accounts/{account}

§
platformsAccountsGet(name: string): Promise<Account>
[src]

Gets information about the selected sub-account.

@param name

Required. Account to get information about. Format: platforms/{platform}/accounts/{account_id}

§
platformsAccountsList(parent: string, opts?: PlatformsAccountsListOptions): Promise<ListAccountsResponse>
[src]

Lists a partial view of sub-accounts for a specific parent account.

@param parent

Required. Platform who parents the accounts. Format: platforms/{platform}

§
platformsAccountsLookup(parent: string, opts?: PlatformsAccountsLookupOptions): Promise<LookupAccountResponse>
[src]

Looks up information about a sub-account for a specified creation_request_id. If no account exists for the given creation_request_id, returns 404.

@param parent

Required. Platform who parents the account. Format: platforms/{platform}

§
platformsAccountsSitesCreate(parent: string, req: Site): Promise<Site>
[src]

Creates a site for a specified account.

@param parent

Required. Account to create site. Format: platforms/{platform}/accounts/{account_id}

§
platformsAccountsSitesDelete(name: string): Promise<Empty>
[src]

Deletes a site from a specified account.

@param name

Required. The name of the site to delete. Format: platforms/{platform}/accounts/{account}/sites/{site}

§
platformsAccountsSitesGet(name: string): Promise<Site>
[src]

Gets a site from a specified sub-account.

@param name

Required. The name of the site to retrieve. Format: platforms/{platform}/accounts/{account}/sites/{site}

§
platformsAccountsSitesList(parent: string, opts?: PlatformsAccountsSitesListOptions): Promise<ListSitesResponse>
[src]

Lists sites for a specific account.

@param parent

Required. The account which owns the sites. Format: platforms/{platform}/accounts/{account}

§
platformsAccountsSitesRequestReview(name: string): Promise<RequestSiteReviewResponse>
[src]

Requests the review of a site. The site should be in REQUIRES_REVIEW or NEEDS_ATTENTION state. Note: Make sure you place an ad tag on your site before requesting a review.

@param name

Required. The name of the site to submit for review. Format: platforms/{platform}/accounts/{account}/sites/{site}