Hey,

T <https://code.google.com/p/google-api-adwords-dotnet/issues/detail?id=119>he 
issue was accepted - 
https://code.google.com/p/google-api-adwords-dotnet/issues/detail?id=119

You can see what's need to be done in case you don't want\cant wait for it 
to be released - I just fixed that typo and its working fine!

Thanks Anash for the quick response!

On Saturday, November 2, 2013 8:21:47 AM UTC-4, Paul Matthews (AdWords API 
Team) wrote:
>
> Hi there,
>
> This looks to be a specific issue you're having with the dotnet. Please 
> can you post this question in the .NET library issue 
> list<https://code.google.com/p/google-api-adwords-dotnet/issues/list>to 
> ensure it's picked up by the library maintainer and dealt with correctly.
>
> Regards,
>
> - Paul, AdWords API Team.
>
> On Wednesday, 30 October 2013 07:02:31 UTC, 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