Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batch_report_download.py doesn't work anymore. #26

Open
lenguyenthedat opened this issue May 12, 2015 · 8 comments
Open

batch_report_download.py doesn't work anymore. #26

lenguyenthedat opened this issue May 12, 2015 · 8 comments

Comments

@lenguyenthedat
Copy link

Here is the error log:

$ python batch_report_download.py  --content-owner-id [my-content-owner-id] --report-type claims
Your browser has been opened to visit:

    https://accounts.google.com/o/oauth2/auth?scope=...

If your browser is on a different machine then exit and re-run this
application with the command-line parameter 

  --noauth_local_webserver

Authentication successful.
Traceback (most recent call last):
  File "batch_report_download.py", line 117, in <module>
    reports = get_available_reports(youtubeAnalytics, args.content_owner_id)
  File "batch_report_download.py", line 81, in get_available_reports
    return definitions_list_response["items"]
KeyError: 'items'

Mostly because youtubeAnalytics.batchReportDefinitions.list's result is empty, see result from https://developers.google.com/apis-explorer/#s/youtubeAnalytics/v1beta1/youtubeAnalytics.batchReportDefinitions.list

screen shot 2015-05-12 at 13 02 45

Am I missing something here or Is there any way to fix this? I've tried to google around a lot and still can not find any solution to this.

@ninnzz
Copy link

ninnzz commented Aug 10, 2015

@lenguyenthedat I'm also having the same issue, did you find any solution to this?

@lenguyenthedat
Copy link
Author

@ninnzz
Copy link

ninnzz commented Aug 11, 2015

@lenguyenthedat Have you tried contacting any developers from youtube?
I really need the reports downloading feature. Have made it work before?

@lenguyenthedat
Copy link
Author

@pprmint nope, I only did it via this github issue.
AFAIK it doesn't work 6 months ago, not sure about before that since I didn't touch them then.
I ended up using https://github.com/youtube/api-samples/blob/master/python/yt_analytics_report.py, which provides almost all that I need, instead.

@ninnzz
Copy link

ninnzz commented Aug 12, 2015

@lenguyenthedat thanks! Anyway, I have means to contact them and I've already done so.
If they have any reply, Ill post it here.

@ninnzz
Copy link

ninnzz commented Aug 26, 2015

@lenguyenthedat I got a reply from youtube and they explained that the API is not yet available or out in production. But they enabled it on our account at least that's what I understood.

@ulukaya
Copy link
Contributor

ulukaya commented Aug 26, 2015

Yes, there will be a new API in testing stage for batch reporting. I think that's why this old one stopped working.

@kokphinsheng
Copy link

Schism between you and tomorrow night for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants