Package 'pinterestadsR'

Title: Access to Pinterest Ads via the 'Windsor.ai' API
Description: Collect marketing data from Pinterest Ads using the 'Windsor.ai' API <https://windsor.ai/api-fields/>. Use four spaces when indenting paragraphs within the Description.
Authors: Pablo Sanchez [cre, aut], Windsor.ai [cph]
Maintainer: Pablo Sanchez <[email protected]>
License: GPL-3
Version: 0.1.0
Built: 2024-10-31 21:10:01 UTC
Source: https://github.com/cran/pinterestadsR

Help Index


fetch_pinterestads A function to fetch Pinterest Ads data from the windsor.ai API

Description

fetch_pinterestads A function to fetch Pinterest Ads data from the windsor.ai API

Usage

fetch_pinterestads(
  api_key,
  date_from = NULL,
  date_to = NULL,
  fields = c("campaign", "clicks", "spend", "impressions", "date")
)

Arguments

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.

Value

A data frame with the desired data

Examples

## Not run: 
my_pinterestads_data <- fetch_pinterestads(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)

Sample data of Pinterest ads from the Windsor API.

Description

A dataset containing sample Pinterest ads data fetched from windsor.ai API. See more at: https://windsor.ai/

Usage

my_pinterestads_data

Format

A data frame with 164 rows and 5 variables:

campaign

name of the campaign

clicks

number of clicks

spend

spend data

impressions

impressions data

date

date

Source

https://windsor.ai/