Learn R Programming

ryandexdirect (version 3.6.2)

yadirStartCampaigns: Start Campaigns

Description

Resumes impressions at the campaign level.

Usage

yadirStartCampaigns(Login = getOption("ryandexdirect.user"), 
           Ids = NULL, Token = NULL, 
           AgencyAccount = getOption("ryandexdirect.agency_account"), 
           TokenPath = yadirTokenPath())

Value

Vector with campaigns ids which failed to resume impressions

Arguments

Ids

Integer or Character vector with Campaigns Ids, who will resume impressions

Login

Your Yandex Login

AgencyAccount

Your agency account login, if you get statistic from client account

Token

Your Yandex API Token

TokenPath

Path to directory where you save credential data

Author

Alexey Seleznev

Details

Function resume impressions and return vector with Campaigns Ids with error.

Examples

Run this code
if (FALSE) {
# Get API token
### !!!Please choose another TokenPath to save the Login permanently.
tok <- yadirGetToken(TokenPath = tempdir())

# Get camp dictionary
my_camp <- yadirGetCampaignList(Login = "Login", Token = tok,
                                TokenPath = tempdir())

# Resume impressions
err <- yadirStartCampaigns(Login = "LOGIN", Token =  tok, Ids = my_camp$Id,
                           TokenPath = tempdir()) 
}

Run the code above in your browser using DataLab