Learn R Programming

ryandexdirect (version 3.6.2)

yadirStopKeyWords: Suspend impressions by KeyWords

Description

Stops impressions by keyword phrases and autotargeting.

Usage

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

Value

Vector with keywords ids which failed to suspend impressions

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

Author

Alexey Seleznev

Details

Function suspend impressions and return vector with KeyWords Ids with error.

Examples

Run this code
if (FALSE) {
### 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) 
}

Run the code above in your browser using DataLab