yadirStopCampaigns: Suspend impressions by Campaigns

View source: R/yadirStopCampaigns.R

yadirStopCampaignsR Documentation

Suspend impressions by Campaigns

Description

Suspend impressions by campaings in 'Yandex Direct' account

Usage

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

Arguments

Ids

Integer or Character vector with Campaigns 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 Campaigns Ids with error.

Value

Vector with campaigns ids which failed to suspend impressions

Author(s)

Alexey Seleznev

Examples

## 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)

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

## End(Not run)

ryandexdirect documentation built on March 31, 2023, 5:35 p.m.