added function to get policies by querying google API