Re: .NET Sandbox access

2011-07-25 Thread AdWords API Advisor
Hi Simone,

The error message you are seeing is slightly misleading; you are getting it 
because you are specifying an empty ClientCustomerId header instead of not 
specifying one. Try commenting out ClientCustomerId and ClientEmail headers 
in your web.config, or set 
servicedAccountService.RequestHeader.ClientCustomerId 
= servicedAccountService.RequestHeader.ClientEmail = null and your code 
should work fine.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: .NET Sandbox access

2011-07-25 Thread Simone Del Tozzotto
Hi Anash,

Your solution worked!

Here is the code required. Someone might find it useful...


AdWordsUser user = new AdWordsUser();

ServicedAccountService servicedAccountService =
 
(ServicedAccountService)user.GetService(AdWordsService.v201101.ServicedAccountService);

servicedAccountService.RequestHeader.clientCustomerId = null;
servicedAccountService.RequestHeader.clientEmail = null;


Thanks!


On Jul 25, 12:25 pm, AdWords API Advisor
adwordsapiadvi...@google.com wrote:
 Hi Simone,

 The error message you are seeing is slightly misleading; you are getting it
 because you are specifying an empty ClientCustomerId header instead of not
 specifying one. Try commenting out ClientCustomerId and ClientEmail headers
 in your web.config, or set 
 servicedAccountService.RequestHeader.ClientCustomerId
 = servicedAccountService.RequestHeader.ClientEmail = null and your code
 should work fine.

 Cheers,
 Anash P. Oommen,
 AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en