Learn R Programming

ryandexdirect (version 3.6.2)

yadirGetKeyWords: Get Keywords

Description

Returns the parameters of key phrases or autotargets that match the specified criteria: the values of the placeholder variables, status and status, statistics of impressions and clicks, rates and priorities.

Usage

yadirGetKeyWords(CampaignIds = NULL, AdGroupIds = NA, Ids = NA, States
                 = c("OFF", "ON", "SUSPENDED"), WithStats = TRUE, 
                 Login = getOption("ryandexdirect.user"), Token = NULL, 
                 AgencyAccount = getOption("ryandexdirect.agency_account"), 
                 TokenPath = yadirTokenPath())

Value

data frame with campaings names and parameters

Arguments

CampaignIds

character vector with yandex direct campaign ID, require

AdGroupIds

character vector with yandex direct adgroup ID

Ids

character vector with yandex direct ad ID

States

character vector with ad states

WithStats

logical, if TRUE then load stat by impressions and click but load process will be long durations

Login

character, your login at Yandex, require

Token

character, your Yandex Direct API Token, require

AgencyAccount

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

TokenPath

Path to directory where you save credential data

Author

Alexey Seleznev

Examples

Run this code
if (FALSE) {

# get data from agency account
### Please choose another TokenPath to save the Login permanently.
my_keywords <- yadirGetKeyWords(Login = "client_login",
                                AgencyAccount = "agency_login",
                                TokenPath     = tempdir())
}

Run the code above in your browser using DataLab