Last chance! 50% off unlimited learning
Sale ends in
Load data frame with statistic by any API objects.
myTarGetStats(date_from = Sys.Date() - 7,
date_to = Sys.Date(),
object_type = "campaigns",
object_id = NULL,
stat_type = "day",
auth = NULL,
token_path = getwd(),
login = NULL)
Start date
End date
API object typr, character value, apply one of campaigns, banners,pad_groups,pads,users
ID of API object (id campaign or any object
Time stap, get value day or hour
R auth object
Path to directory where you save credential data
Your login, or client name in MyTarget account
Data frame with statistic.
MyTarget API documentation - https://target.my.com/doc/api/detailed/#resource_statistics
# NOT RUN {
myCampStat <- myTarGetStats(date_from = "2016-08-01",
date_to = "2016-08-10",
object_type = "campaigns",
object_id = c("6530449","6477678"),
stat_type = "day")
# }
Run the code above in your browser using DataLab