Hi Pietro,
Thank you for reaching out to us. I see that you want to remove a campaign through Google Ads API. Could I confirm with you if you are using our Client Libraries to remove the campaign? If so,you can see this example of how to remove a campaign in Google Ads API, or this example of how to update a campaign’s status. Please let me know if you have further questions.
Thank you,
Bryan, Google Ads API Team
Hi Pietro,
I would like to clarify that this example of how to remove a campaign does not physically remove the campaign; it changes the status to REMOVED. I tested this to confirm by creating a test campaign, then used the example code to remove the campaign. I checked back in the UI and used the get campaigns example to check the status of the campaign and it is updated to removed. When you check in the Google Ads UI, make sure the filter is set to “All”, which will show campaigns with the “removed” status. Here is the result I obtained after using the example.
Body: results {
campaign {
resource_name: "customers/………./campaigns/………."
id {
value: 8399049790
}
name {
value: "My Test Campaign"
}
status: REMOVED
}
}