CreateDataLink

  • TheCreateDataLink RPC call creates a data link.

  • Creating a data link shares your Google Ads account name and ID with a third party.

  • Only customers on the allow-list can create data links.

  • This function requires thehttps://www.googleapis.com/auth/adwords OAuth scope.

CreateDataLink

rpc CreateDataLink(CreateDataLinkRequest) returns (CreateDataLinkResponse)

Creates a data link. The requesting Google Ads account name and account ID will be shared with the third party (such as YouTube creators for video links) to whom you are creating the link with. Only customers on the allow-list can create data links.

List of thrown errors:AuthenticationErrorAuthorizationErrorDatabaseErrorDataLinkErrorFieldErrorHeaderErrorInternalErrorMutateErrorQuotaErrorRequestError

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/adwords

For more information, see theOAuth 2.0 Overview.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-12 UTC.