Hi Diederik,
Thank you for contacting the Ad Manager API support team. I'm Ankam and will assist you today.
After verifying your query I would like to inform you that we don't have an option to Delete the AD units permanently to prevent reporting information from being discarded, instead we can Archive or Deactivate the Ad units via performAdUnitAction in the InventoryService that helps to disappear on the table of ad units. For more information on how Deactivate and Archive works kindly refer to this Help article.
These are the available client libraries in API and here is the sample code in Java to archive ad units. To deactivate ad units instead, you just need to modify the action that the code will perform. To archive the bulk ad units via API, you will need to create a statement query to select all the ad units that you want to archive. If you have further queries on this issue, let us know.
Regards,
|
Ankam |
Ad Manager API Team |
|
|
|
ref:_00D1U1174p._5004Q2cCcCr:ref