Get Goal Statistics from 'MyTarget'
myTarGetGoalsStats(
date_from = Sys.Date() - 7,
date_to = Sys.Date(),
object_type = "campaigns",
object_id = NULL,
attribution = c("impression", "conversion"),
conversion_type = c("postview", "postclick", "total"),
auth = NULL,
login = getOption("rmytarget.login"),
token_path = myTarTokenPath()
)
Start date
End date
API object type, character value, one of campaigns, banners, users.
ID of API object (id campaign or any object).
Attributing by event time or impression time. Available options: conversion, impression, default.
Conversion type: postclick - postclick, postview - postview, total - total.
MyTarget Autherization R object. See myTarAuth
Path to directory where you save credential data
Your login, or client name in MyTarget account
data frame with goal statics