Description Usage Arguments Details Author(s) See Also Examples
Retrieve settings of an object, see details.
1 | showObject(object, id)
|
object |
Object to retrieve, see details for valid values. |
id |
id of object to retrieve |
Valid values for object
:
audience
see showAudience
for details.
campaign
see showCampaign
for details.
adset
see showAdset
for details.
ad
see showAd
for details.
showObject
can essentially replace any other show
family functions a the execption of showAdsetAudience
.
See examples.
John Coene jcoenep@gmail.com
orionOAuth
, showAudience
,
showCampaign
, showAdset
and
showAd
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.