fbGetAdCreative {rfacebookstat} | R Documentation |
Get creative list from facebook marketing API
Description
Get ads creatives list with parameters from facebook marketing API. Format which provides layout and contains content for the ad.
Usage
fbGetAdCreative(
accounts_id = getOption("rfacebookstat.accounts_id"),
filtering = NULL,
api_version = getOption("rfacebookstat.api_version"),
username = getOption("rfacebookstat.username"),
token_path = fbTokenPath(),
access_token = getOption("rfacebookstat.access_token"),
limit = 50)
Arguments
accounts_id |
Your account ID, for example 'act_11111111111111111'. |
filtering |
filter creatives |
api_version |
Current Facebook API version. |
username |
your username on Facebook |
token_path |
path to dir with credentials |
access_token |
Your facebook API token. |
limit |
Number of rows per API call |
Value
Data frame with ads list.
1. id |
The ID of this creative. |
2. name |
The name of the creative in the creative library. |
3. status |
The status of this creative. |
4. url_tags |
A set of query string parameters which will replace or be appended to urls clicked from page post ads, message of the post, and canvas app install creatives only. |
5. account_id |
The ID of the ad account that this ad belongs to. |
5. page_id |
ID of a Facebook page. An unpublished page post will be created on this page. User must have Admin or Editor role for this page. |
5. link |
Link url. |
6. message |
The main body of the post. |
7. caption |
Link caption. |
8. attachment_style |
The style of the attachment |
9. description |
Link description. |
10. image_hash |
Hash of an image in your image library with Facebook. |
Author(s)
Alexey Seleznev
Examples
## Not run:
library(rfacebookstat)
fb_token <- fbGetToken(app_id = 0000000)
ads_creative <- fbGetAdCreative(accounts_id = "act_11111111111111111",
api_version = 'v3.0',
access_token = fb_token)
## End(Not run)