googleAnalyticsR (version 0.5.0)

ga_unsampled_list: 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 managementAPI functions: ga_accounts, ga_adwords_list, ga_adwords, ga_custom_vars_list, ga_custom_vars, ga_experiment_list, ga_experiment, ga_filter_add, ga_filter_apply_to_view, ga_filter_delete, ga_filter_list, ga_filter_update_filter_link, ga_filter_update, ga_filter_view_list, ga_filter_view, ga_filter, ga_goal_list, ga_goal, ga_remarketing_estimate, ga_remarketing_get, ga_remarketing_list, ga_segment_list, ga_unsampled, ga_users_list, ga_view_list, ga_view, ga_webproperty_list, ga_webproperty, google_analytics_account_list

Examples

Run this code
# NOT RUN {
# }
# 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")

# }
# NOT RUN {


# }

Run the code above in your browser using DataCamp Workspace