Description:
This template automates daily reporting for Meta (Facebook) ad campaigns. It fetches ad performance data (Spend, Results, Cost per Result, CPM) from the Meta Ads API, appends the data to a Google Sheet, and emails a summarized HTML report.
Credentials Required:
- Facebook Graph API: To fetch ad insights from the Meta Ads account.
- Google Sheets OAuth2 API: To update Google Sheets with campaign data.
- Gmail OAuth2 API: To email the formatted HTML report.
Instructions:
- Set Up Credentials - Connect the following in your n8n credentials:
- Facebook Graph API with valid ad account access.
- Google Sheets OAuth2 API (make sure the target sheet exists).
- Gmail OAuth2 API for sending emails.
- Customize Sheet and Email
Update:
- Google Sheet link in the “Google Sheets” node.
- Recipients in the “Gmail” node.
- Schedule
This template runs every day at 9 AM. You can modify the timing in the Schedule Trigger node.