yadirStartCampaigns: Start Campaigns

Description Usage Arguments Details Value Author(s) Examples

View source: R/yadirStartCampaigns.R

Description

Resumes impressions at the campaign level.

Usage

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

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

Details

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

Value

Vector with campaigns ids which failed to resume impressions

Author(s)

Alexey Seleznev

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# 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()) 

## End(Not run)

ryandexdirect documentation built on July 1, 2020, 10:39 p.m.