showObject: Show any object settings

Description Usage Arguments Details Author(s) See Also Examples

Description

Retrieve settings of an object, see details.

Usage

1
showObject(object, id)

Arguments

object

Object to retrieve, see details for valid values.

id

id of object to retrieve

Details

Valid values for object:

showObject can essentially replace any other show family functions a the execption of showAdsetAudience. See examples.

Author(s)

John Coene jcoenep@gmail.com

See Also

orionOAuth, showAudience, showCampaign, showAdset and showAd

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
# authenticate
orionOAuth(client.id = 0000,
           client.secret = "0x00000000x00x0x000xxx0000x0xx0")
           
# list ads
ads <- listObjects(object = "ad", n = 100)

# fetch first ad
ad <- showObject(object = "ad", id = ads$id[1])

# list campaigns
campaigns <- listObjects(object = "campaign")

# fetch random campaign
campaign <- showObject(id = campaigns$id[1])

# equivalent to 
campaign2 <- showCampaign(campaign.id = campaigns$id[1])

identical(campaign, campaign2)

## End(Not run)

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