Learn R Programming

rmytarget (version 1.1)

myTarGetTotalStats: Get total stats by campaign

Description

Load data with total statics by campaigns in 'MyTarget'.

Usage

myTarGetTotalStats(date_from = Sys.Date() - 7, 
  date_to = Sys.Date(),auth = NULL, 
  token_path = getwd(), login = NULL)

Arguments

date_from

Start date

date_to

End date

auth

Auth R object

login

Your login, or client name in MyTarget account

token_path

Path to directory where you save credential data

Value

Data frame with total statistic

See Also

https://target.my.com/doc/api/detailed/#resource_account_statistics

Examples

Run this code
# NOT RUN {
stat <- myTarGetTotalStats(date_to = "2016-08-02",
                           date_to = "2016-08-10")
# }

Run the code above in your browser using DataLab