add function for adding ads