Auto exclude domain extensions in display

Add or remove extensions you want to keep, placements not containing these extensions will be excluded in the same adgroup:

Date range and minimum impression treshold can be changed in the following lines:

Full script: