Title: | Connect to Campaign Manager via the 'Windsor.ai' API |
---|---|
Description: | Collect marketing data from Campaign Manager using the 'Windsor.ai' API <https://windsor.ai/api-fields/>. |
Authors: | Pablo Sanchez [cre, aut], Windsor.ai [cph] |
Maintainer: | Pablo Sanchez <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0 |
Built: | 2024-10-25 03:46:41 UTC |
Source: | https://github.com/cran/campaignmanageR |
get_campaignmanager_data A function to get data from Campaign Manager using the windsor.ai API
get_campaignmanager_data( api_key, date_from = NULL, date_to = NULL, fields = c("campaign", "clicks", "spend", "impressions", "date") )
get_campaignmanager_data( 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: my_campaignmanager_data <- get_campaignmanager_data(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)
## Not run: my_campaignmanager_data <- get_campaignmanager_data(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)
A dataset containing sample Campaign Manager data fetched from windsor.ai API. See more at: https://windsor.ai/
my_campaignmanager_data
my_campaignmanager_data
A data frame with 164 rows and 5 variables:
name of the campaign
number of clicks
spend data
impressions data
date