Adobe Analytics icon

Adobe Analytics

Use the Adobe Analytics API

Overview

This node interacts with the Adobe Analytics API to manage calculated metrics, specifically allowing you to delete a calculated metric by its ID. Calculated metrics are custom metrics defined by users to enhance data analysis beyond standard metrics.

A common use case for this node is automating the cleanup or management of calculated metrics in your Adobe Analytics account, such as removing outdated or incorrect metrics programmatically. For example, if you have a workflow that audits your analytics setup and identifies unused calculated metrics, this node can be used to delete them automatically.

Properties

Name Meaning
Global Company ID The unique identifier of the company in Adobe Analytics where the calculated metric exists. This is required.
Calculated Metric ID The unique identifier of the calculated metric to delete. This is required for deletion.
Query Parameters Optional additional parameters to filter or modify the request. Includes options like: Approved, Classifiable, Component ID(s), Favorite, Limit, Locale, Pagination, Sort Direction, Start Date, End Date, and many others for fine-tuning the request context.

The "Query Parameters" collection includes many optional filters and flags that can be used to specify the scope or behavior of the request, although for deletion typically only the IDs are essential.

Output

The output is a JSON array containing the response from the Adobe Analytics API after attempting to delete the specified calculated metric. Possible outputs include:

  • A JSON object confirming successful deletion.
  • A status code message such as "204 No Content" indicating the resource was deleted successfully without returning content.
  • An error message if the deletion failed.

No binary data is output by this node.

Dependencies

  • Requires an Adobe Analytics API credential with appropriate permissions.
  • Needs valid client credentials (client ID, client secret) and scope to obtain an access token.
  • The node makes HTTP requests to the Adobe Analytics API endpoints.
  • Proper configuration of the Adobe Analytics API credentials in n8n is necessary.

Troubleshooting

  • Missing Credentials: If the Adobe Analytics API credentials are not set or invalid, the node will throw an error about missing credentials or failure to retrieve an access token.
  • Missing Required IDs: If the "Calculated Metric ID" or "Global Company ID" is not provided when deleting, the node throws an error indicating the missing required parameter.
  • API Errors: Any errors returned by the Adobe Analytics API (e.g., invalid ID, insufficient permissions) will be caught and reported with the message prefixed by "Error calling Adobe Analytics API".
  • Empty Response: A "204 No Content" status means the deletion succeeded but no content was returned; this is normal for delete operations.

To resolve issues:

  • Ensure all required fields are filled correctly.
  • Verify API credentials and permissions.
  • Check that the calculated metric ID exists and is correct.
  • Review API limits or restrictions in Adobe Analytics.

Links and References

Discussion