Description Usage Arguments Details Author(s) See Also Examples
Create an audience targeting template.
1 |
body |
body of request that includes audience targeting template settings. See examples and details. |
Valid audience target template settings (body):
audience_template_name Audience targeting template name
(unique).
audience_template_desc Description for the audience targeting
template.
country Audience country code. Narrow your potential audience
to the people in those countries. Using '|' separated if more than one country.
i.e.: US|ID|CN, typically returned by dictCountry
language Audience language code, i.e.: en,
typically returned by dictLanguage
gender Use gender to generate otherwise,
0: All, 1: Male, 2 Female
age Audience age. Use age to generate otherwise,
1: 18-24, 2: 25-30, 3: 32-40, 4: 41+.
interest Audience interest. Reach users based on their specific
interests, typically returned by dictInterest
behavior Audience behavior. Reach users based on app usage and
other behaviors, typically returned by dictBehaviour
device_brand Audience device brand, typically returned by
dictDevice
min_device_os Min OS version of audience used, blank for
unrestricted, typically returned by dictOS
max_device_os Max OS version of audience used, blank for
unrestricted, typically returned by dictOS
net_type Use netType to generate otherwise,
0: All, 1: Wifi, 2: 2G/3G/4G
dsp_url Bid request url of DSP when this pre-targeting
condition meets.
John Coene jcoenep@gmail.com
orionOAuth, helpers,
dictCountry, dictLanguage,
dictInterest, dictBehaviour,
dictDevice, dictOS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
# authenticate
orionOAuth(client.id = 0000,
client.secret = "0x00000000x00x0x000xxx0000x0xx0")
# pick two random countries
locations <- paste0(sample(dictCountry()$code, 1), "|",
sample(dictCountry()$code, 1))
# create audience
createAudience(body = list(
audience_template_name = "test",
audience_template_desc = "test template",
country = locations,
language = sample(dictLanguage()$code, 1),
net_type = netType("wifi")),
interest = dictInterst()$pid[1])
# retrieve audience
aud <- listAudiences(n = 100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.