add logic for ads block
add logic for ads block