Actions3
- Facebook Ads Actions
Overview
This node integrates with Facebook Ads to retrieve information about ad accounts associated with a user. It is useful for marketers, advertisers, and analysts who want to programmatically access their Facebook ad account details within an automation workflow.
Typical use cases include:
- Fetching a list of all Facebook ad accounts linked to the authenticated user.
- Retrieving detailed information about specific ad accounts or ads.
- Automating reporting or monitoring of Facebook advertising assets.
For example, a user might use this node to get all their ad accounts and then loop through each to pull campaign performance data automatically.
Properties
| Name | Meaning |
|---|---|
| Đây là phiên bản Thử nghiệm Chúng tôi sẽ liên tục cập nhật và sửa lỗi. Mời bạn truy cập https://zalo.me/g/ebsiof941 để cập nhật thông tin mới nhất |
A notice informing users that this is an experimental version of the node which will be continuously updated and fixed. Users are invited to visit the provided link for the latest updates. |
Note: The provided properties JSON only contains a notice property; no other input parameters are defined in the snippet for the "Get Ad Accounts" operation.
Output
The node outputs JSON data structured as follows:
success: Boolean indicating if the request was successful.adAccounts: An array of ad account objects, each containing:display_name: A formatted string combining account name, business name, account ID, and status.formatted_info: An object with detailed fields such as:account_namebusiness_nameaccount_idstatuscurrencytimezonecreated_time
totalAccounts: Number of ad accounts returned.response: The raw response from the Facebook API.
The output is paired with the input item index for traceability.
No binary data output is indicated by the code.
Dependencies
- Requires an API key credential for Facebook authentication (an OAuth token or similar).
- Makes HTTP requests to a backend service endpoint
/get_access_token_user_accountto obtain access tokens. - Uses Facebook Graph API v19.0 to fetch ad account data.
- Requires n8n HTTP Request helper methods to perform API calls.
- The node expects proper configuration of credentials and network access to Facebook APIs.
Troubleshooting
Common Issues
- Authentication errors: If the API key or token is invalid or expired, the node will fail to retrieve ad accounts.
- API rate limits: Facebook may throttle requests if too many are made in a short time.
- Network issues: Connectivity problems can cause request failures.
- Unexpected response structure: Changes in Facebook API responses could break parsing logic.
Error Messages
- Errors thrown include descriptive messages with HTTP status codes and response bodies when available.
- Example error message includes "Status: [code]. Response: [body]" to help diagnose API call failures.
- To resolve errors, verify credentials, check Facebook API status, and ensure correct permissions/scopes are granted.
Links and References
- Facebook Marketing API Documentation
- Facebook Graph API Explorer
- Facebook Ads Manager
- n8n HTTP Request Node Documentation
This summary is based solely on static analysis of the provided source code and property definitions.
