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

MarketingPlatformAdmin

import { MarketingPlatformAdmin } from "https://googleapis.deno.dev/v1/marketingplatformadmin:v1alpha.ts";

The Google Marketing Platform Admin API allows for programmatic access to the Google Marketing Platform configuration data. You can use the Google Marketing Platform Admin API to manage links between your Google Marketing Platform organization and Google Analytics accounts, and to set the service level of your GA4 properties.

class MarketingPlatformAdmin {
constructor(client?: CredentialsClient, baseUrl?: string);
async organizationsAnalyticsAccountLinksCreate(parent: string, req: AnalyticsAccountLink): Promise<AnalyticsAccountLink>;
async organizationsAnalyticsAccountLinksDelete(name: string): Promise<Empty>;
async organizationsAnalyticsAccountLinksList(parent: string, opts?: OrganizationsAnalyticsAccountLinksListOptions): Promise<ListAnalyticsAccountLinksResponse>;
async organizationsAnalyticsAccountLinksSetPropertyServiceLevel(analyticsAccountLink: string, req: SetPropertyServiceLevelRequest): Promise<SetPropertyServiceLevelResponse>;
async organizationsFindSalesPartnerManagedClients(organization: string, req: FindSalesPartnerManagedClientsRequest): Promise<FindSalesPartnerManagedClientsResponse>;
async organizationsGet(name: string): Promise<Organization>;
async organizationsList(opts?: OrganizationsListOptions): Promise<ListOrganizationsResponse>;
async organizationsReportPropertyUsage(organization: string, req: ReportPropertyUsageRequest): Promise<ReportPropertyUsageResponse>;
}

§Constructors

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

§Methods

§
organizationsAnalyticsAccountLinksCreate(parent: string, req: AnalyticsAccountLink): Promise<AnalyticsAccountLink>
[src]

Creates the link between the Analytics account and the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account to create the link. If the account is already linked to an organization, user needs to unlink the account from the current organization, then try link again.

@param parent

Required. The parent resource where this Analytics account link will be created. Format: organizations/{org_id}

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

Deletes the AnalyticsAccountLink, which detaches the Analytics account from the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account in order to delete the link.

@param name

Required. The name of the Analytics account link to delete. Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id}

§
organizationsAnalyticsAccountLinksSetPropertyServiceLevel(analyticsAccountLink: string, req: SetPropertyServiceLevelRequest): Promise<SetPropertyServiceLevelResponse>
[src]

Updates the service level for an Analytics property.

@param analyticsAccountLink

Required. The parent AnalyticsAccountLink scope where this property is in. Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id}

§
organizationsFindSalesPartnerManagedClients(organization: string, req: FindSalesPartnerManagedClientsRequest): Promise<FindSalesPartnerManagedClientsResponse>
[src]

Returns a list of clients managed by the sales partner organization. User needs to be an OrgAdmin/BillingAdmin on the sales partner organization in order to view the end clients.

@param organization

Required. The name of the sales partner organization. Format: organizations/{org_id}

§
organizationsGet(name: string): Promise<Organization>
[src]

Lookup for a single organization.

@param name

Required. The name of the Organization to retrieve. Format: organizations/{org_id}

§
organizationsList(opts?: OrganizationsListOptions): Promise<ListOrganizationsResponse>
[src]

Returns a list of organizations that the user has access to.

§
organizationsReportPropertyUsage(organization: string, req: ReportPropertyUsageRequest): Promise<ReportPropertyUsageResponse>
[src]

Get the usage and billing data for properties within the organization for the specified month. Per direct client org, user needs to be OrgAdmin/BillingAdmin on the organization in order to view the billing and usage data. Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on the sales partner org in order to view the billing and usage data, or OrgAdmin/BillingAdmin on the sales partner client org in order to view the usage data only.

@param organization

Required. Specifies the organization whose property usage will be listed. Format: organizations/{org_id}