Updated ads library and example