rmytarget v2.1.8

0

Monthly downloads

0th

Percentile

Load Data from 'MyTarget API v2'

Allows work with 'MyTarget API v2' <https://target.my.com/doc/apiv2/ru/detailed.html> and load data by ads, campaigns, agency clients and statistic from your ads account.

Readme

rmytarget - R пакет для работы с API MyTarget v2

================================================

Подробная русскоязычная документация находится по ссылке.

Виньетки

Помимо основной документации пакет содержит 2 виньетки:

  • rmytarget-auth - Автооризация в API MyTarget
  • rmytarget-intro - Введение в работу с пакетом rmytarget

Для просмотра виньеток запустите в R одну из следующих команд:

vignette('rmytarget-auth', package = 'rmytarget')

vignette('rmytarget-intro', package = 'rmytarget')

Функции пакета rmytarget

На данный момент в пакете rmytarget доступно 5 функций:

  • myTarAuth - Авторизация
  • myTarGetCampaignList - Загрузка списка кампаний
  • myTarGetAdList - Загрузка списка объявлений
  • myTarGetClientList - Загрузка списка клиентов из агентского аккаунта
  • myTarGetStats - Загрузка статистики по объявениям, рекламным кампаниям или клиентам

Пример работы с пакетом rmytarget

# work with simple client account
# authorize by ad account
myTarAuth(login = "client_login")

# get campaing list
campaing <- myTarGetCampaignList(login = "client_login")

# get ads list
ads      <- myTarGetAdList(login = "client_login")

# load statistic
# load base stat by ads
old_data    <- myTarGetStats(date_from   = Sys.Date() - 7,
                             date_to     = Sys.Date(),
                             object_type = "banners",
                             object_id   = campaing$id,
                             login       = "client_login")

# load base, tps, and viral metrics by campaings
custom_data <- myTarGetStats(date_from   = Sys.Date() - 7,
                             date_to     = Sys.Date(),
                             object_type = "campaigns",
                             metrics     = c("base", "tps", "viral"),
                             stat_type   = "day",
                             login       = "client_login")

# load all metrics by campaigns
all_data <- myTarGetStats(date_from   = Sys.Date() - 7,
                          date_to     = Sys.Date(),
                          object_type = "campaigns",
                          metrics     = "all",
                          login       = "client_login")

# ========================
# work with agency account
# authorize by agency account
myTarAuth(login = "agency_login")

# load client list from agency account 
clients <- myTarGetClientList(login = "agency_login")

# load statistic by agency clients
client_stat <-  myTarGetStats(date_from   = Sys.Date() - 7,
                              date_to     = Sys.Date(),
                              object_id   = clients$id,
                              object_type = "users",
                              metrics     = "all",
                              login       = "agency_login")

Автор пакета

Алексей Селезнёв, Head of analytics dept. at Netpeak
email: selesnow@gmail.com
skype: selesnow
facebook: facebook.com/selesnow
blog: alexeyseleznev.wordpress.com
Телеграмм канал: R4marketing.

Functions in rmytarget

Name Description
myTarGetStats Get stat by any 'MyTarget API' objects
myTarAuth Authentication in 'MyTarget API'
myTarGetCampaignList Get campaign list.
myTarGetClientList Get data frame with agency clients
myTarGetAdList Get ads list.
myTarRefreshToken Refresh access token
rmytarget-package Paxkage for load data from 'MyTarget' API.
No Results!

Vignettes of rmytarget

Name
rmytarget-auth.Rmd
rmytarget-intro.Rmd
No Results!

Last month downloads

Details

Type Package
Date 2019-08-14
URL http://selesnow.github.io/rmytarget
VignetteBuilder knitr
License GPL-2
Language ru
Encoding UTF-8
NeedsCompilation no
Packaged 2019-08-19 06:13:02 UTC; Alsey
Repository CRAN
Date/Publication 2019-08-19 07:30:02 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/rmytarget)](http://www.rdocumentation.org/packages/rmytarget)