if (FALSE) {
### Please choose another TokenPath to save the Login permanently.
# Get API token
tok <- yadirGetToken(Login = "LOGIN",
TokenPath = tempdir())
# Get Campaigns
my_camp <- yadirGetCampaignList(Login = "LOGIN",
Token = tok)
# Get ads dictionary
my_ads <- yadirGetAds(Login = "LOGIN",
Token = tok,
States = "ON",
CampaignIds = my_camp$Id[1:10])
# Resume impressions
err <- yadirStopAds(Login = "LOGIN", Token = tok, Ids = my_ads$Id)
}
Run the code above in your browser using DataLab