updateAd: Update an ad

Description Usage Arguments Details Author(s) See Also Examples

Description

Update ad settings, see details and example.

Usage

1
updateAd(ad.id, body)

Arguments

ad.id

id of ad to update

body

Body of request that includes ad settings. See examples and details.

Details

Valid values for body:

Author(s)

John Coene jcoenep@gmail.com

See Also

orionOAuth, listAds, createAd, helpers

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
# authenticate
orionOAuth(client.id = 0000,
           client.secret = "0x00000000x00x0x000xxx0000x0xx0")
           
# list ads
ads <- listAds()

# update ad name
update <- updateAd(ad.id = ad$id[1], body = list(
               switch = switch("off"), 
               name = "New Ad Name - Paused"))
               
# show updated campaign
showAd(ad.id = ads$id[1])

## End(Not run)

JohnCoene/oRion documentation built on June 13, 2019, 12:44 p.m.