C# Code sample not working

4 views
Skip to first unread message

cnguyen

unread,
Jun 4, 2009, 1:13:00 AM6/4/09
to AdSense API Forum
I use the code listed here:
http://code.google.com/apis/adsense/developer/samples/cs/GenerateAFCAggregateReport.cs.txt

when i try to build solution I got 10 error return:
the first one is:

Error 1 'GoogleAdSenseAPI.serverReportService.ReportServiceService'
does not contain a definition for 'developer_emailValue' and no
extension method 'developer_emailValue' accepting a first argument of
type 'GoogleAdSenseAPI.serverReportService.ReportServiceService' could
be found (are you missing a using directive or an assembly reference?)
C:\DATA\WEB\GoogleAdSenseAPI\GoogleAdSenseAPI\Default.aspx.cs 33 25
GoogleAdSenseAPI

look like the whole header section is not working at all

service.developer_emailValue = new
serverReportService.developer_email();
service.developer_emailValue.Text = new string[]
{ developerEmail };
service.developer_passwordValue = new
serverReportService.developer_password();
service.developer_passwordValue.Text = new string[]
{ developerPassword };
service.client_idValue = new
serverReportService.client_id();
service.client_idValue.Text = new string[]
{ clientId };

is there a difference sample in C# for me to use?
My company already had AdSense account, all I need is to get report
data and display it in our intranet web site for my boss to manage our
marketing effort.

Kichu

unread,
Jun 15, 2009, 1:42:03 PM6/15/09
to AdSense API Forum
AdSense API v3 is currently broken for .NET

I am also waiting for a solution to similar issues !

- Tony


On Jun 4, 12:13 am, cnguyen <c...@bizx.info> wrote:
> I use the code listed here:http://code.google.com/apis/adsense/developer/samples/cs/GenerateAFCA...
Reply all
Reply to author
Forward
0 new messages