In [5]:
# Stat Usage Sample

# 1. GET Summary Report per multiple entities 

uri = '/stats'
method = 'GET'
# stat_ids = [target_adgroup['nccCampaignId'], target_adgroup['nccAdgroupId']]
stat_ids = ['grp-a001-01-000000008072672','grp-a001-01-000000008148663']
r = requests.get(BASE_URL + uri, params={'ids': stat_ids, 'fields': '["clkCnt","impCnt","salesAmt", "ctr", "cpc", "avgRnk", "ccnt"]', 'timeRange': '{"since":"2019-06-01","until":"2019-06-25"}'}, headers=get_header(method, uri, API_KEY, SECRET_KEY, CUSTOMER_ID))

print("response status_code = {}".format(r.status_code))
print("response body = {}".format(r.json()))
params :  {'ids': ['grp-a001-01-000000008072672', 'grp-a001-01-000000008148663'], 'fields': '["clkCnt","impCnt","salesAmt", "ctr", "cpc", "avgRnk", "ccnt"]', 'timeRange': '{"since":"2019-06-01","until":"2019-06-25"}'}
response status_code = 200
response body = {'data': [], 'compTm': '202004290354', 'cycleBaseTm': '202004280000'}