ga_unsampled_list: List Unsampled Reports

View source: R/unsampled.R

ga_unsampled_listR Documentation

List Unsampled Reports

Description

List Unsampled Reports

Usage

ga_unsampled_list(accountId, webPropertyId, profileId)

Arguments

accountId

Account Id

webPropertyId

Web Property Id

profileId

Profile Id

Value

Unsampled Reports List

See Also

Other unsampled download functions: ga_unsampled_download(), ga_unsampled()

Examples


## Not run: 

    # get data.frame of unsampled reports you have available
    unsample_list <- ga_unsampled_list(accountId = "12345", 
                                       webPropertyId = "UA-12345-4", 
                                       profileId = "129371234")
                                       
    # loop through unsampled reports and download as a list of data.frames
    dl <- lapply(unsample_list$title, ga_unsampled_download, 
                 accountId = "12345", 
                 webPropertyId = "UA-12345-4", 
                 profileId = "129371234", 
                 downloadFile = FALSE)
                 
    # inspect first data.frame
    dl[[1]]
    
    # download unsampled report to csv file
    ga_unsampled_download("my_report_title", 
                          accountId = "12345", 
                          webPropertyId = "UA-12345-4", 
                          profileId = "129371234")


## End(Not run)




MarkEdmondson1234/googleAnalyticsR documentation built on Oct. 13, 2023, 4:40 a.m.