class PropertiesGoogleAdsLinks extends Resource (View source)

The "googleAdsLinks" collection of methods.

Typical usage is:

 $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...);
 $googleAdsLinks = $analyticsadminService->properties_googleAdsLinks;

Methods

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

Creates a GoogleAdsLink. (googleAdsLinks.create)

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

Deletes a GoogleAdsLink on a property (googleAdsLinks.delete)

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

Lists GoogleAdsLinks on a property.

patch(string $name, GoogleAnalyticsAdminV1betaGoogleAdsLink $postBody, array $optParams = [])

Updates a GoogleAdsLink on a property (googleAdsLinks.patch)

Details

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

Creates a GoogleAdsLink. (googleAdsLinks.create)

Parameters

string $parent

Required. Example format: properties/1234

GoogleAnalyticsAdminV1betaGoogleAdsLink $postBody
array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1betaGoogleAdsLink

Exceptions

Exception

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

Deletes a GoogleAdsLink on a property (googleAdsLinks.delete)

Parameters

string $name

Required. Example format: properties/1234/googleAdsLinks/5678

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

Lists GoogleAdsLinks on a property.

(googleAdsLinks.listPropertiesGoogleAdsLinks)

Parameters

string $parent

Required. Example format: properties/1234

array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse

Exceptions

Exception

GoogleAnalyticsAdminV1betaGoogleAdsLink patch(string $name, GoogleAnalyticsAdminV1betaGoogleAdsLink $postBody, array $optParams = [])

Updates a GoogleAdsLink on a property (googleAdsLinks.patch)

Parameters

string $name

Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.

GoogleAnalyticsAdminV1betaGoogleAdsLink $postBody
array $optParams

Optional parameters.

Return Value

GoogleAnalyticsAdminV1betaGoogleAdsLink

Exceptions

Exception