class ManagementWebPropertyAdWordsLinks extends Resource (View source)

The "webPropertyAdWordsLinks" collection of methods.

Typical usage is:

 $analyticsService = new Google\Service\Analytics(...);
 $webPropertyAdWordsLinks = $analyticsService->management_webPropertyAdWordsLinks;

Methods

delete(string $accountId, string $webPropertyId, string $webPropertyAdWordsLinkId, array $optParams = [])

Deletes a web property-Google Ads link. (webPropertyAdWordsLinks.delete)

get(string $accountId, string $webPropertyId, string $webPropertyAdWordsLinkId, array $optParams = [])

Returns a web property-Google Ads link to which the user has access.

insert(string $accountId, string $webPropertyId, EntityAdWordsLink $postBody, array $optParams = [])

Creates a webProperty-Google Ads link. (webPropertyAdWordsLinks.insert)

listManagementWebPropertyAdWordsLinks(string $accountId, string $webPropertyId, array $optParams = [])

Lists webProperty-Google Ads links for a given web property.

patch(string $accountId, string $webPropertyId, string $webPropertyAdWordsLinkId, EntityAdWordsLink $postBody, array $optParams = [])

Updates an existing webProperty-Google Ads link. This method supports patch semantics. (webPropertyAdWordsLinks.patch)

update(string $accountId, string $webPropertyId, string $webPropertyAdWordsLinkId, EntityAdWordsLink $postBody, array $optParams = [])

Updates an existing webProperty-Google Ads link.

Details

delete(string $accountId, string $webPropertyId, string $webPropertyAdWordsLinkId, array $optParams = [])

Deletes a web property-Google Ads link. (webPropertyAdWordsLinks.delete)

Parameters

string $accountId

ID of the account which the given web property belongs to.

string $webPropertyId

Web property ID to delete the Google Ads link for.

string $webPropertyAdWordsLinkId

Web property Google Ads link ID.

array $optParams

Optional parameters.

Exceptions

Exception

EntityAdWordsLink get(string $accountId, string $webPropertyId, string $webPropertyAdWordsLinkId, array $optParams = [])

Returns a web property-Google Ads link to which the user has access.

(webPropertyAdWordsLinks.get)

Parameters

string $accountId

ID of the account which the given web property belongs to.

string $webPropertyId

Web property ID to retrieve the Google Ads link for.

string $webPropertyAdWordsLinkId

Web property-Google Ads link ID.

array $optParams

Optional parameters.

Return Value

EntityAdWordsLink

Exceptions

Exception

EntityAdWordsLink insert(string $accountId, string $webPropertyId, EntityAdWordsLink $postBody, array $optParams = [])

Creates a webProperty-Google Ads link. (webPropertyAdWordsLinks.insert)

Parameters

string $accountId

ID of the Google Analytics account to create the link for.

string $webPropertyId

Web property ID to create the link for.

EntityAdWordsLink $postBody
array $optParams

Optional parameters.

Return Value

EntityAdWordsLink

Exceptions

Exception

Lists webProperty-Google Ads links for a given web property.

(webPropertyAdWordsLinks.listManagementWebPropertyAdWordsLinks)

Parameters

string $accountId

ID of the account which the given web property belongs to.

string $webPropertyId

Web property ID to retrieve the Google Ads links for.

array $optParams

Optional parameters.

Return Value

EntityAdWordsLinks

Exceptions

Exception

EntityAdWordsLink patch(string $accountId, string $webPropertyId, string $webPropertyAdWordsLinkId, EntityAdWordsLink $postBody, array $optParams = [])

Updates an existing webProperty-Google Ads link. This method supports patch semantics. (webPropertyAdWordsLinks.patch)

Parameters

string $accountId

ID of the account which the given web property belongs to.

string $webPropertyId

Web property ID to retrieve the Google Ads link for.

string $webPropertyAdWordsLinkId

Web property-Google Ads link ID.

EntityAdWordsLink $postBody
array $optParams

Optional parameters.

Return Value

EntityAdWordsLink

Exceptions

Exception

EntityAdWordsLink update(string $accountId, string $webPropertyId, string $webPropertyAdWordsLinkId, EntityAdWordsLink $postBody, array $optParams = [])

Updates an existing webProperty-Google Ads link.

(webPropertyAdWordsLinks.update)

Parameters

string $accountId

ID of the account which the given web property belongs to.

string $webPropertyId

Web property ID to retrieve the Google Ads link for.

string $webPropertyAdWordsLinkId

Web property-Google Ads link ID.

EntityAdWordsLink $postBody
array $optParams

Optional parameters.

Return Value

EntityAdWordsLink

Exceptions

Exception