Description Usage Arguments Details Author(s) See Also Examples
Update ad settings, see details and example.
1 |
ad.id |
id of ad to update |
body |
Body of request that includes ad settings. See examples and details. |
Valid values for body
:
switch
Ad switch, use switchIt
otherwise,
1
: On, 0
: Off.
name
Ad name, unique.
icon_url
Logo image url. Must be larger than 84*84 px and have
an aspect ratio of 1:1, in JPG or PNG format. File must not exceed 100KB.
title
Ad headline
desc
Description tells people a bit more about your Application.
Make sure to clearly explain what you are promoting.
button_text
Button display text, use buttonText
to generate otherwise,
1
: Download, 2
: Install, 3
: Check, 4
: Free,
5
: Play,
6
: Buy, 7
: More.
image_url
Image url. Must be larger than 600*314 px and have an
aspect ratio of 1.9:1. Best is 1200*628 px, JPG or PNG format. File size
must not exceed 500KB. Image should come from Orion CDN server, please
upload image using createImage
.
video_url
URL to video
video_img_before_url
Image which will be show before video
starts.
video_img_after_url
Image which will be show after video ends.
John Coene jcoenep@gmail.com
orionOAuth
, listAds
,
createAd
, helpers
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.