Description Usage Arguments Value References
Create targeting attributes for a strata
1 2 3 4 5 6 7 | create_target(strata_id, geo_locations, age_min = NULL, age_max = NULL,
genders = NULL, education_statuses = NULL, ethnic_affinity = NULL,
interests = NULL, behaviors = NULL, exclusions = NULL,
other_demographics = NULL, is_autobid = FALSE, bid_amount = NULL,
daily_budget, adset_status = c("ACTIVE", "PAUSED"),
ad_status = c("ACTIVE", "PAUSED"), start_time = NULL, end_time = NULL,
creative_id)
|
strata_id |
character. Strata ID. |
geo_locations |
list. A list specifying geographic location of the strata. See https://developers.facebook.com/docs/marketing-api/buying-api/targeting#location. |
age_min |
integer. Minimum age. If used, must be 13 or higher. Default to 18. |
age_max |
integer. Maximum age. If used, must be 65 or lower. |
genders |
integer. 1=male, 2=female. |
education_statuses |
integer. Vector of Facebook IDs to target based on education level. See https://developers.facebook.com/docs/marketing-api/targeting-specs/v2.8. |
ethnic_affinity |
integer. Vector of Facebook IDs for each ethnic group. |
interests |
list. A list of Facebook IDs for interests. |
behaviors |
list. A list of Facebook IDs for behaviors. |
exclusions |
list. A list of Facebook IDs for excluding certain demographics. |
other_demographics |
list. A list of Facebook IDs for other demographic targeting parameters. |
is_autobid |
logical. If |
bid_amount |
integer. The amount you set for bid and budget are at ad account currencies minimum denomination level. For example cents for US dollars. |
daily_budget |
integer. The amount you set for bid and budget are at ad account currencies minimum denomination level. For example cents for US dollars. |
adset_status |
character. Ad Set status. |
ad_status |
character. Ad status. |
start_time |
(optinal) UTC UNIX timestamp. |
end_time |
(optional) UTC UNIX timestamp. |
creative_id |
character. Creative ID that identifies the ad creative object you plan to display as your ad. See https://developers.facebook.com/docs/marketing-api/reference/ad-creative. |
A list with targeting attributes for a strata that can be used to create ads.
https://developers.facebook.com/docs/marketing-api/buying-api/targeting
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.