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 "广告系列" (Campaign) resource with the "删除" (Delete) operation, it allows users to delete a specified advertising campaign from their Google Ads account.

Common scenarios where this node is beneficial include:

  • Automating campaign lifecycle management by programmatically removing outdated or completed campaigns.
  • Integrating campaign deletion into larger marketing automation workflows.
  • Cleaning up test or temporary campaigns in bulk without manual intervention.

Practical example:

  • A marketing team wants to automatically delete campaigns that have ended or failed performance criteria as part of a scheduled workflow. This node can be configured to delete those campaigns by specifying their campaign IDs.

Properties

Name Meaning
认证方式 Authentication method to use: OAuth2 (recommended) or Service Account
管理员客户ID Manager customer ID (required) — The Google Ads manager account ID
客户ID Client customer ID (required) — The specific Google Ads client account ID
广告系列ID Campaign ID (required) — The unique identifier of the campaign to delete

Output

The output JSON object after a successful delete operation contains:

{
  "success": true
}

This indicates that the campaign was successfully deleted.

No binary data output is produced by this operation.

Dependencies

  • Requires valid Google Ads API credentials, either via OAuth2 or a service account.
  • Needs appropriate permissions on the Google Ads account to perform campaign deletions.
  • Requires configuration of credentials within n8n for authentication.
  • Uses the @htdangkhoa/google-ads library and google-auth-library for API communication and authentication.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials causing authentication failures.
    • Insufficient permissions on the Google Ads account to delete campaigns.
    • Incorrect campaign ID leading to "not found" errors.
    • Network or API quota limits affecting request success.
  • Error messages and resolutions:

    • "Authentication failed": Verify that the OAuth2 token or service account credentials are correct and have not expired.
    • "Permission denied": Ensure the authenticated user has rights to delete campaigns in the specified account.
    • "Campaign not found": Double-check the campaign ID is correct and belongs to the specified client customer.
    • "API quota exceeded": Wait and retry later or request higher quota from Google Ads API.

Links and References

Discussion