Assistance Required for Extracting "Shop Campaigns Performance" Data via API

I am seeking guidance on extracting data from the “Shop Campaigns Performance” analytics report, which details daily ad spend, for my store where Shop Pay is installed. Specifically, I would like to know which API endpoints or methods are appropriate for accessing this information, as I have not found relevant details in the GraphQL documentation.

Your assistance in directing me to the correct API or providing alternative solutions for retrieving this data would be greatly appreciated.

Hi there,

Typically you’d use ShopifyQL for analytics related to the reports you’d see on the admin - however this is only available for Plus stores, and it’s currently being sunset. I’d recommend testing out the marketingActivities and marketingActivity queries to see if they can access the data you need related to ad spend.