Is there any updates on this issue?

It prevents us from finishing up the upgrade.

Thanks,

Ro

On Wednesday, October 30, 2013 3:02:31 AM UTC-4, P Nandrekar wrote:
>
> Hi ,
>
> While upgrading to v201309, I am using following code ( modified code for 
> security purpose) 
>
> I  downloaded code that is provided by Google - here - 
> https://code.google.com/p/google-api-adwords-dotnet/downloads/detail?name=adxbuyer_dotnet_lib_src_v16.2.0.zip&can=2&q=
> File Name - AddAudience.cs inside - v201309.
>
>
> /// <summary>
>     /// Runs the code example.
>     /// </summary>
>     /// <param name="user">The AdWords user.</param>
>     public void Run(AdWordsUser user) {
>       // Get the UserListService.
>       AdwordsUserListService userListService =
>           (AdwordsUserListService) 
> user.GetService(AdWordsService.v201309.AdwordsUserListService);
>
>
>
> But on calling GetService method , it is throwing following error.
> Please see exception-
>
> Exception: System.ArgumentNullException; Message: Value cannot be null. 
> Parameter name: type; Source: mscorlib; 
>    at System.Activator.CreateInstance(Type type, Boolean nonPublic)
>    at 
> Google.Api.Ads.AdWords.Lib.AdWordsServiceFactory.CreateService(ServiceSignature
>  
> signature, AdsUser user, Uri serverUrl) in 
> \src\AdWords\Lib\AdWordsServiceFactory.cs:line 78
>    at Google.Api.Ads.Common.Lib.AdsUser.GetService(ServiceSignature 
> serviceSignature, Uri serverUrl) in \src\Common\Lib\AdsUser.cs:line 298
>    at Google.Api.Ads.Common.Lib.AdsUser.GetService(ServiceSignature 
> serviceSignature, String serverUrl) in \src\Common\Lib\AdsUser.cs:line 277
>    at Google.Api.Ads.Common.Lib.AdsUser.GetService(ServiceSignature 
> serviceSignature) in src\Common\Lib\AdsUser.cs:line 261
>    at 
> Google.Api.Ads.AdWords.Examples.CSharp.v201309.AddAudience.Run(AdWordsUser 
> user) in \examples\adxbuyer\CSharp\v201309\Remarketing\AddAudience.cs:line 
> 61
>    at 
> Google.Api.Ads.AdWords.Examples.CSharp.v201309.AddAudience.Main(String[] 
> args) in \examples\adxbuyer\CSharp\v201309\Remarketing\AddAudience.cs:line 
> 39
>
>
>
> I did some analysis. The similar kind of code is working for Budget 
> Service and Campaign Service and other GetService calls , but it is 
> throwing above exception for AdwordsUserListService.
> I checked for the parameter that is being sent for - 
>  user.GetService(AdWordsService.v201309.AdwordsUserListService);
>  -
> ServiceType of AdWordsService.v201309.AdwordsUserListService signature is 
> NULL. And that is why code is throwing exception. 
> ServiceType for other service signatures (like campaignService , budget 
> Service) is having correct value , and hence working.
>
> So , i guess there is some problem with "AdwordsUserListService- 
> ServiceType" .
>
> Please reply back ASAP and suggest , so that i can continue on my work.
>
> Thanks.
>
> Best regards.
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to