AdSens API Call for Reports

49 views
Skip to first unread message

Ravi Chandra

unread,
Aug 1, 2011, 9:47:20 AM8/1/11
to AdSense API Forum, ravi.ch...@gmail.com
Hi,

My working enviroment VS2005.net VB.Net win XP sp3 and

https://www.google.com/api/adsense/v3/AccountService?wsdl
https://sandbox.google.com/api/adsense/v2/AccountService?wsdl

I am having hard time figuring out how to set the header (like the
example).

The intellisense won't display any developer_XXX
Here is the code…
service.developer_emailValue = new
serverAccountService.developer_email();
service.developer_emailValue.Text = new string[] { developerEmail };
service.developer_passwordValue = new
serverAccountService.developer_password();
service.developer_passwordValue.Text = new string[]
{ developerPassword };
service.client_idValue = new serverAccountService.client_id();
service.client_idValue.Text = new string[] { clientId };

I also tried using web service for v3 https://sandbox.google.com/api/adsense/v3/AccountService?wsdl,

I am not able to use Reporting Service also.

Pls help me . it's very urgent. it will be nice if you send me some
sample project for reports.

Thanks and Regards
Ravi Chandra

Sérgio Gomes

unread,
Aug 2, 2011, 7:36:30 AM8/2/11
to adsen...@googlegroups.com, ravi.ch...@gmail.com
Hi Ravi,

The following C# sample might help:


Cheers,
Sérgio

---
Sérgio Gomes
Developer Relations

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047

Ravi Chandra

unread,
Aug 2, 2011, 8:11:01 AM8/2/11
to adsen...@googlegroups.com
Dear Sérgio
 
Thanks for all the help provided.   this is where i am getting problem
 
 
3. but when i compile it is giving error in the following line (Marked in Red)

developer_email developerEmail =

new developer_email();

developerEmail.Text = new string[] { "DEVELOPER_EMAIL" };

developer_password developerPassword = new developer_password();

developerPassword.Text = new string[] { "DEVELOPER_PASSWORD" };

client_id clientId = new client_id();

clientId.Text = new string[] { "PUBLISHER_CLIENT_ID" };

 
 
Thanks again for your support.
 
 
Regards
Ravi
 


 
2011/8/2 Sérgio Gomes <sergio...@google.com>



--
************************
Thanks and Regards
~Ravi Chandra
Mob:9448507356
************************

Sérgio Gomes

unread,
Aug 3, 2011, 8:29:38 AM8/3/11
to adsen...@googlegroups.com
Hi Ravi,

Yes, the WSDLs and the code samples are meant to go together. However, it may be that due to differences between versions and frameworks the resulting code might be slightly different, so you may have to adapt it.

I would suggest taking a look at the generated code to get the appropriate class and method names.

Ravi Chandra

unread,
Aug 3, 2011, 9:04:34 AM8/3/11
to adsen...@googlegroups.com

Dear Sérgio

We are spending lot of time in this.  , It will be great help if we get straight forward peace of code to do the authentication and report generation.

Appreciate your help

 

Thanks and Regards

~Ravi Chandra


2011/8/3 Sérgio Gomes <sergio...@google.com>
--
You received this message because you are subscribed to the Google Groups "AdSense API Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/adsense-api/-/cpC7O3RbK6EJ.
To post to this group, send email to adsen...@googlegroups.com.
To unsubscribe from this group, send email to adsense-api...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/adsense-api?hl=en.
Reply all
Reply to author
Forward
0 new messages