Hi Dor,
So, first of all, I would like to recommend you use one of our client libraries instead of coding from scratch, as they help out with a lot of things (including authentication), making your life a lot easier. We also have code examples for several of them. Failing that, it may be a good idea to at least use OAuth 2.0, as OAuth 1.0 is deprecated for the AdSense Management API.
Having said all that, the problem seems to be that you're not performing authentication correctly. Authentication data should be passed as part of the HTTP request, and what the service is complaining about is that this data hasn't been provided. Also, the AdSense Management API does't support "simple key access", which seems to be what you're using, since it accesses sensitive user data. Here's the OAuth 1.0 documentation for web-based applications:
https://developers.google.com/accounts/docs/OAuth
Hope this helps!
Cheers,
Sérgio
---
Sérgio Gomes
Developer Relations
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902
---
On Sunday, June 17, 2012 7:49:08 AM UTC+1, Dor Ben Dov wrote:
Sérgio,
Thanks for the quick reply. I am receiving this json
As an error.