Reports available on Google Cloud Storage use the same access restrictions that control data access in Play Console. Object=report_to_download).execute() Control access to Google Cloud Storage Storage = build('storage', 'v1', http=thorize(Http())) Private_key = json.loads(open(json_file).read())Ĭredentials = SignedJwtAssertionCredentials(client_email, private_key, Report_to_download = ‘earnings/earnings_….zip’ Json_file = 'path_to_json_file_obtained_when_creating_the_service_account'Ĭloud_storage_bucket = 'pubsite_prod_rev_…' # Change these variables to fit your caseĬlient_email = 'your service account here' If you used Python to fetch reports, here's a code example:įrom oauth2client.client import SignedJwtAssertionCredentials
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |