Create a method to return ad campaigns #699
Labels
status: blocked
The issue is blocked from progressing, waiting for another piece of work to be done.
type: enhancement
The issue is a request for an enhancement.
This issue is part of #678 for integrating with the Multichannel Marketing Dashboard released with WooCommerce 7.4.
The new marketing dashboard has a section dedicated to managing the marketing campaigns the user has created for their store. In the MVP version, they can only view their campaigns on that page. We need to prepare and return the following data about the campaigns to WooCommerce:
Since the extension does not store any data for the ad campaigns locally, we need to implement connections to the API to retrieve the list of the ad campaigns (ideally with a caching mechanism to avoid repeated requests to the API). Pinterest provides the data we need about the ads through its adsreporting APIs:
https://developers.pinterest.com/docs/redoc/adsreporting/#tag/campaigns
The list of campaigns can be obtained from this API:
https://developers.pinterest.com/docs/redoc/adsreporting/#operation/ads_v3_get_advertiser_campaigns_handler_GET
The advertiser ID can be obtained from the extension settings with the key
tracking_advertiser
:The text was updated successfully, but these errors were encountered: