config ad handler