if (FALSE) {
### Please choose another TokenPath to save the Login permanently.
# Get API token
tok <- yadirGetToken(TokenPath = tempdir())
# Get ads dictionary
my_ads <- yadirGetAds(Login = "LOGIN",
Token = tok,
States = c("SUSPENDED","OFF"))
# Resume impressions
err <- yadirStartAds(Login = "LOGIN",
Token = tok,
Ids = my_ads$Id)
}
Run the code above in your browser using DataLab