Create get_ad.cpp

core file for the project