AI-generated Key Takeaways
-
This document details how to update a GoogleAdsLink on a property using a PATCH HTTP request.
-
The request uses a specific URL format with a
googleAdsLink.name
path parameter to identify the link to be updated. -
A required
updateMask
query parameter specifies which fields of the GoogleAdsLink should be modified. -
The request and response bodies contain a GoogleAdsLink instance.
-
Successful updates require the
https://www.googleapis.com/auth/analytics.edit
authorization scope.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Updates a GoogleAdsLink on a property
HTTP request
PATCH https://analyticsadmin.googleapis.com/v1beta/{googleAdsLink.name=properties/*/googleAdsLinks/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
googleAdsLink.name |
Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID. |
Query parameters
Parameters | |
---|---|
updateMask |
Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body contains an instance of GoogleAdsLink
.
Response body
If successful, the response body contains an instance of GoogleAdsLink
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/analytics.edit