yadirStopKeyWords: Suspend impressions by KeyWords

Description Usage Arguments Details Value Author(s) Examples

View source: R/yadirStopKeyWords.R

Description

Stops impressions by keyword phrases and autotargeting.

Usage

1
2
yadirStopKeyWords(Login = NULL, Ids = NULL, Token = NULL, AgencyAccount
                 = NULL, TokenPath = getwd())

Arguments

Ids

Integer or Character vector with KeyWords 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 suspend impressions and return vector with KeyWords Ids with error.

Value

Vector with keywords 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
## Not run: 
### Please choose another TokenPath to save the Login permanently.
# Get API token
tok <- yadirGetToken(TokenPath = tempdir())

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

# Get keywords dictionary
my_kw <- yadirGetKeyWords(Login = "Login", Token = tok, CampaignIds = my_camp$Id[1:10])

# Resume impressions
err <- yadirStopKeyWords(Login = "LOGIN", Token =  tok, Ids = my_kw$Id) 

## End(Not run)

selesnow/ryandexdirect documentation built on Sept. 21, 2019, 2:23 p.m.