Google Ads Advanced icon

Google Ads Advanced

使用 Google Ads API

广告组 → 删除

AI-generated

Overview

This node integrates with the Google Ads API to manage advertising campaigns, ad groups, and ads. Specifically for the "广告组" (Ad Group) resource with the "删除" (Delete) operation, it allows users to delete an existing ad group by its ID.

Common scenarios where this node is beneficial include:

  • Automating the cleanup of outdated or underperforming ad groups.
  • Managing ad group lifecycle programmatically within marketing workflows.
  • Integrating Google Ads management into broader automation pipelines.

For example, a user can configure this node to delete an ad group identified by its ID after a campaign ends or when restructuring advertising strategies.

Properties

Name Meaning
认证方式 Authentication method to use: OAuth2 (recommended) or Service Account
管理员客户ID Manager Customer ID: The Google Ads manager account ID that manages the client accounts
客户ID Client Customer ID: The specific Google Ads client account ID where the ad group exists
广告组ID Ad Group ID: The unique identifier of the ad group to be deleted

Output

The output JSON contains a single field indicating success:

{
  "success": true
}

This confirms that the ad group was successfully deleted.

No binary data is output by this operation.

Dependencies

  • Requires valid Google Ads API credentials, either via OAuth2 or a service account.
  • Needs appropriate permissions on the specified manager and client customer IDs.
  • Uses the @htdangkhoa/google-ads library and google-auth-library for authentication and API calls.
  • Requires configuration of credentials in n8n with either OAuth2 tokens or service account details including email, private key, developer token, and customer IDs.

Troubleshooting

  • Authentication errors: Ensure that the provided OAuth2 tokens or service account credentials are valid and have sufficient permissions.
  • Invalid Customer or Ad Group IDs: Verify that the managerCustomerId, clientCustomerId, and adGroupId are correct and exist in your Google Ads account.
  • API quota limits: Google Ads API enforces quotas; hitting these may cause errors. Monitor usage and apply for higher quotas if needed.
  • Error messages from API: If deletion fails, the error message will be included in the output if "Continue On Fail" is enabled. Otherwise, the node execution will stop with the error.
  • Network issues: Ensure stable internet connectivity as the node communicates with Google Ads API endpoints.

Links and References

Discussion