.Net Client Library App.config issue with soap extension types.

379 views
Skip to first unread message

Chris Jenkins

unread,
Aug 1, 2013, 12:20:43 PM8/1/13
to adwor...@googlegroups.com
Having a small issue here. I'm trying to run the following code:

using System;
using Google.Api.Ads.AdWords.v201306;
using Google.Api.Ads.AdWords.Lib;

namespace CodeTest2
{
class Program
{
static void Main(string[] args)
{
// Create an AdWordsUser with whatever configuration is available in App.config.
AdWordsUser user = new AdWordsUser();
CampaignService campaignService = (CampaignService)user.GetService(AdWordsService.v201306.CampaignService);
Selector selector = new Selector();
CampaignPage page = campaignService.get(selector);
}
}
}

The issue comes down to this guy in the app.config:
 
<system.web>
<webServices>
<soapExtensionTypes>
<add type="Google.Api.Ads.Common.Lib.SoapListenerExtension, Google.Ads.Common"
priority="1" group="0"/>
</soapExtensionTypes>
</webServices>
</system.web>

If I include this line. It breaks on the CampaignService campaignService line with a configuration error saying that the dll or one of it's dependencies is not being loaded. Everything appears to be fine though. If I don't include this line, then it breaks on CampaignPage page telling me that the soap extension is necessary....could anyone give me some advice? 

Anash P. Oommen (AdWords API Team)

unread,
Aug 14, 2013, 5:14:48 AM8/14/13
to adwor...@googlegroups.com
Hi Chris,

Did you add a reference to Google.Ads.Common.dll? It is in the lib folder in the binary download. Or if you are using the nuget package, the dependencies will be setup properly.

Cheers,
Anash P. Oommen,
AdWords API Advisor.
Reply all
Reply to author
Forward
0 new messages