Learn R Programming

googleAnalyticsR (version 1.2.0)

ga_adwords_add_linkid: Creates a Google Analytics webProperty-Google Ads link

Description

Creates a link between and Adwords (Google ads) account and a Google Analytics property so that Adwords data can be accessed via Google Analytics and vice versa.

Usage

ga_adwords_add_linkid(adwordsAccountId, linkName, accountId, webPropertyId)

Value

confirmation message if successful

Arguments

adwordsAccountId

the customer id of the Adwords account visible within the Adwords account UI on the top right corner -or accessible via the Adwords API

linkName

a user defined way to call the link between the Adwords and Google Analytics accounts

accountId

Account Id

webPropertyId

Web Property Id

See Also

Google documentation

Other Google Ad management functions: ga_adwords(), ga_adwords_delete_linkid(), ga_adwords_list()

Examples

Run this code

if (FALSE) {
library(googleAnalyticsR)
ga_auth()

ga_adwords_add_linkid("280-234-7592", "Google Ads Link", "65973592", "UA-65973592-1")
}

Run the code above in your browser using DataLab