Title: | Access to 'Google Ads' via the 'Windsor.ai' API |
---|---|
Description: | Collect marketing data from 'Google Ads' using the 'Windsor.ai' API <https://windsor.ai/api-fields/>. |
Authors: | Pablo Sanchez [aut, cre], Windsor.ai [cph] |
Maintainer: | Pablo Sanchez <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.0 |
Built: | 2025-03-12 03:15:56 UTC |
Source: | https://github.com/cran/googleadsR |
Fetch Google Ads Fetch data from 'Google Ads' via 'windsor.ai' API
fetch_googleads( api_key, date_from = NULL, date_to = NULL, fields = c("source", "campaign", "clicks", "medium", "sessions", "spend") )
fetch_googleads( api_key, date_from = NULL, date_to = NULL, fields = c("source", "campaign", "clicks", "medium", "sessions", "spend") )
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://www.windsor.ai/api-fields/ for details. |
A data frame with the desired data
## Not run: # api_key needs to be provided by the user. my_googleads_data <- fetch_googleads(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: # api_key needs to be provided by the user. my_googleads_data <- fetch_googleads(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 gooole ads data fetched from windsor.ai API. See more at: https://windsor.ai/api-fields/
my_data_googleads
my_data_googleads
A data frame with 1677 rows and 6 variables:
name of the campaign
number of clicks
spend data
the type of referals
source of the data (google, facebook, etc.)
googlesheets id