广告 → 删除
AI-generatedOverview
This node integrates with the Google Ads API to manage advertising campaigns, ad groups, and ads. Specifically for the "广告" (Ad) resource with the "删除" (Delete) operation, it allows users to delete an existing ad by its ID within a specified customer account.
Common scenarios where this node is beneficial include:
- Automating the cleanup of outdated or underperforming ads.
- Managing large-scale ad accounts programmatically.
- Integrating ad management into broader marketing workflows.
For example, a user can configure this node to delete an ad by providing the relevant customer IDs and the ad's unique identifier, enabling automated removal without manual intervention in the Google Ads interface.
Properties
| Name | Meaning |
|---|---|
| 认证方式 | Authentication method to connect to Google Ads API. Options: OAuth2 (recommended), Service Account |
| 管理员客户ID | Manager Customer ID — the ID of the manager account overseeing the client account |
| 客户ID | Client Customer ID — the specific Google Ads customer account ID where the ad exists |
| 广告ID | Ad ID — the unique identifier of the ad to be deleted |
Output
The output JSON object indicates the success status of the deletion operation:
{
"success": true
}
- If the deletion is successful,
successwill betrue. - In case of failure and if the node is configured to continue on error, the output will contain an
errorfield with the error message.
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 for the provided manager and client customer IDs.
- The node uses the Google Ads API client libraries and requires network access to Google's services.
- Must have developer token and authentication tokens configured in the credentials.
Troubleshooting
Common Issues:
- Invalid or expired authentication tokens leading to authorization errors.
- Incorrect customer IDs causing resource not found errors.
- Insufficient permissions for the authenticated user to delete ads.
- Network connectivity issues preventing API calls.
Error Messages & Resolutions:
"Request had invalid authentication credentials."— Check and refresh OAuth2 tokens or service account keys."Resource not found."— Verify that the ad ID and customer IDs are correct and exist."User does not have permission to access this customer."— Ensure the authenticated account has proper access rights."Quota exceeded."— Review Google Ads API usage limits and adjust request frequency.