Description Usage Arguments Details Author(s) See Also Examples
Create an ad.
1 |
body |
Body of request that includes ad settings. See examples and details. |
Valid ad settings (body
):
adset_id
Adset id to which the ad belongs.
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
, see uploaded images with
listImages
.
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
, createAdset
,
createImage
, helpers
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## Not run:
# authenticate
orionOAuth(client.id = 0000,
client.secret = "0x00000000x00x0x000xxx0000x0xx0")
# list adsets
adsets <- listAdsets()
# list images
images <- listImages()
# define ad settings
body <- list(
adset_id = adsets$id[1],
name = "testAd",
icon_url = images$thumb[1],
title = "Download oRion",
desc = "Download oRion and interact with Orion from your R console",
button_text = buttonText("install"),
image_url = images$local_url[1])
# post ad
createAd(body = body)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.