ga_custom_upload: Custom Data Source Upload Status

Description Usage Arguments Details Value See Also Examples

View source: R/custom_data_source.R

Description

Get the status of a custom upload

Usage

1
2
3
4
5
6
7
ga_custom_upload(
  accountId,
  webPropertyId,
  customDataSourceId,
  uploadId,
  upload_object
)

Arguments

accountId

Account Id

webPropertyId

Web Property Id

customDataSourceId

Custom data source Id

uploadId

upload Id

upload_object

A custom upload Id object. Supply this or the other arguments.

Details

You can supply either upload_object generated via function or ga_custom_upload_file, or make an

Value

An object of class ga_custom_data_source_upload

See Also

Other custom datasource functions: ga_custom_datasource(), ga_custom_upload_delete(), ga_custom_upload_file(), ga_custom_upload_list()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## Not run: 

upload_me <- data.frame(medium = "shinyapps", 
                        source = "referral", 
                        adCost = 1, 
                        date = "20160801")
                        
obj <- ga_custom_upload_file(47850439, 
                             "UA-4748043-2", 
                             "_jDsJHSFSU-uw038Bh8fUg", 
                             upload_me)
                             
## obj will initially have status = PENDING
obj
==Google Analytics Custom Data Source Upload==
Custom Data Source ID:  _jDsJHSFSU-uw038Bh8fUg 
Account ID:             47850439 
Web Property Id:        UA-4748043-2 
Upload ID:              7yHLAkeLSiK1zveVTiWZwA 
Status:                 PENDING 

## Send obj to ga_custom_upload() to check and renew status
obj <- ga_custom_upload(upload_object = obj)
obj

==Google Analytics Custom Data Source Upload==
Custom Data Source ID:  _jDsJHSFSU-uw038Bh8fUg 
Account ID:             47850439 
Web Property Id:        UA-4748043-2 
Upload ID:              7yHLAkeLSiK1zveVTiWZwA 
Status:                 COMPLETED 


## End(Not run)

googleAnalyticsR documentation built on Oct. 7, 2021, 9:06 a.m.