Hi everyone,

what I'm trying to do is creating a simple Java application using App 
Engine which retrieves my current earnings from day x to day y.
According to the Management API documentation the request required for this 
would look something like this:
https://www.googleapis.com/adsense/v1.1/reports?key=mykey&alt=csv&endDate=2013-08-07&startDate=2013-06-07&metric=EARNINGS

However if I simply call this URL from within my App I get an "Login 
Required"

As far as I understand I need to acquire an OAuth token first within my 
application and attach it to my request. My questions in this regard are:

1. Am I correct with this assumption>
2. If so, why would a fixed, server based application need to acquire an 
OAuth token?
3. Is there any easy way to retrieve such a token and afterwards attach it 
to my requests automatically? All the tutorials I see on that part seem to 
require some user interaction, which won't work for my use case where an 
App Engine app simply wants to retrieve some metrics...

Any help would be much appreciated :)

Thanks,
Holger

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to