def get_top_keywords(service, profile_id):
 return service.data().ga().get(ids=('ga:' + profile_id), start_date='2012-01-01', end_date='2012-01-15', metrics='ga:visits', dimensions='ga:source,ga:keyword', sort='-ga:visits', filters='ga:medium==organic', start_index='1', max_results='25').execute()

def get_top_keywords ( service , profile_id ) : return service . data ( ) . ga ( ) . get ( ids = ( 'ga:' + profile_id ) , start_date = '2012-01-01' , end_date = '2012-01-15' , metrics = 'ga:visits' , dimensions = 'ga:source,ga:keyword' , sort = '-ga:visits' , filters = 'ga:medium==organic' , start_index = '1' , max_results = '25' ) . execute ( )
executes and returns data from the core reporting api .