yadirGetAdGroups: Get AdGroups List

Description Usage Arguments Value Author(s) Examples

View source: R/yadirGetAdGroups.R

Description

Returns parameters of adgroups that meet specified criteria.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
yadirGetAdGroups(CampaignIds   = NULL, 
                 Ids           = NA, 
                 Types         = c("TEXT_AD_GROUP" ,
				             "MOBILE_APP_AD_GROUP" ,
						   "DYNAMIC_TEXT_AD_GROUP"),
                 Statuses      = c("ACCEPTED", 
				                   "DRAFT", 
			                       "MODERATION", 
								   "PREACCEPTED", 
								   "REJECTED"), 
                 Login         = NULL,
                 AgencyAccount = NULL,
                 Token         = NULL,
                 TokenPath     = getwd())

Arguments

CampaignIds

character vector with yandex direct campaign ID, require

Ids

character vector with yandex direct adgroup ID

Types

character vector with adgroup types states

Statuses

character vector with adgroup types statuses

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

Value

data frame with adgroups names and parameters

Author(s)

Alexey Seleznev

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
#For get adgroups data frame
# Get data from clients account
my_ad_group <- yadirGetAdGroups(Login = "login")

# Get data from agency account
### !!!Please choose another TokenPath to save the Login permanently.
my_ad_group <- yadirGetAdGroups(Login         = "client_login",
                                AgencyAccount = "agency_login",
								TokenPath     =  tempdir())


## End(Not run)

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