View source: R/fetch_instagramads.R
fetch_instagramads | R Documentation |
fetch_instagramads A function to fetch Instagram Ads data from the windsor.ai API
fetch_instagramads( api_key, date_from = NULL, date_to = NULL, fields = c("campaign", "clicks", "spend", "impressions", "date") )
api_key |
Your api key to access Windsor.ai API |
date_from |
The date from which to start getting data in format YYYY-MM-DD |
date_to |
The date until which to start getting data in format YYYY-MM-DD |
fields |
he fields fetched from the API for a given connector See https://windsor.ai/api-fields/ for details. |
A data frame with the desired data
## Not run: # Note that api_key needs to be provided by the user. my_instagramads_data <- fetch_instagramads(api_key = "your api key", date_from = "2022-10-01", date_to = "2022-10-02", fields = c("campaign", "clicks", "spend", "impressions", "date")) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.