# NOT RUN {
# Get objects
## Get ads
Ads <- myTarGetAdList(login = "my_test_client")
## Get campaigns
Campaigns <- myTarGetCampaignList(login = "my_test_client")
# Get statistic
## Get summary statistic
t_stat<- myTarGetTotalStats(date_to = "2016-08-02",
date_to = "2016-08-10",
login = "my_test_client")
## Get stat by campaigns
c_stat <- myTarGetStats(date_from = "2016-08-01",
date_to = "2016-08-10",
object_type = "campaigns",
object_id = cCampaigns$id,
stat_type = "day",
login = "my_test_client")
## Get stat by ads
a_stat <- myTarGetStats(date_from = "2016-08-01",
date_to = "2016-08-10",
object_type = "banners",
object_id = Ads$id,
stat_type = "day",
login = "my_test_client")
# }
Run the code above in your browser using DataLab