yadirStopAds: Suspend impressions by Ads

Description Usage Arguments Details Value Author(s) Examples

View source: R/yadirStopAds.R

Description

Stops Ad Impressions in 'Yandex Direct' accounts.

Usage

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

Arguments

Ids

Integer or Character vector with Ads Ids, who will suspend 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 Ads Ids with error.

Value

Vector with ads ids which failed to suspend impressions

Author(s)

Alexey Seleznev

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
### 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) 

## End(Not run)

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