class OrganizationsAnalyticsAccountLinks extends Resource (View source)

The "analyticsAccountLinks" collection of methods.

Typical usage is:

 $marketingplatformadminService = new Google\Service\GoogleMarketingPlatformAdminAPI(...);
 $analyticsAccountLinks = $marketingplatformadminService->organizations_analyticsAccountLinks;

Methods

create(string $parent, AnalyticsAccountLink $postBody, array $optParams = [])

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. (analyticsAccountLinks.create)

delete(string $name, array $optParams = [])

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.

listOrganizationsAnalyticsAccountLinks(string $parent, array $optParams = [])

Lists the Google Analytics accounts link to the specified Google Marketing Platform organization.

setPropertyServiceLevel(string $analyticsAccountLink, SetPropertyServiceLevelRequest $postBody, array $optParams = [])

Updates the service level for an Analytics property.

Details

AnalyticsAccountLink create(string $parent, AnalyticsAccountLink $postBody, array $optParams = [])

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. (analyticsAccountLinks.create)

Parameters

string $parent

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

AnalyticsAccountLink $postBody
array $optParams

Optional parameters.

Return Value

AnalyticsAccountLink

Exceptions

Exception

MarketingplatformadminEmpty delete(string $name, array $optParams = [])

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.

(analyticsAccountLinks.delete)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

MarketingplatformadminEmpty

Exceptions

Exception

Lists the Google Analytics accounts link to the specified Google Marketing Platform organization.

(analyticsAccountLinks.listOrganizationsAnalyticsAccountLinks)

Parameters

string $parent

Required. The parent organization, which owns this collection of Analytics account links. Format: organizations/{org_id}

array $optParams

Optional parameters.

Return Value

ListAnalyticsAccountLinksResponse

Exceptions

Exception

SetPropertyServiceLevelResponse setPropertyServiceLevel(string $analyticsAccountLink, SetPropertyServiceLevelRequest $postBody, array $optParams = [])

Updates the service level for an Analytics property.

(analyticsAccountLinks.setPropertyServiceLevel)

Parameters

string $analyticsAccountLink

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

SetPropertyServiceLevelRequest $postBody
array $optParams

Optional parameters.

Return Value

SetPropertyServiceLevelResponse

Exceptions

Exception