New to AdWords API and I am having a Reference Issue

17 views
Skip to first unread message

Greg Wilborn

unread,
Sep 9, 2015, 11:56:50 AM9/9/15
to AdWords API Forum
I am continuing the development of an application in VB.Net that uses v201506 of the AdWords API. I have written a page that works perfectly on my Dev box(Windows 10) and now I am  trying to deploy it to a Windows Server 2008 R2 Server that already has numerous websites running that use this same version of the API. However, when I deploy to the server and try to run the page I get the following error:

Type 'Google.Api.Ads.AdWords.v201506.CampaignService' is not defined.

Here is the line of code that is throwing this exception:

 Dim objService As Google.Api.Ads.AdWords.v201506.CampaignService = CType(objAdWordsUser.GetService(AdWordsService.v201506.CampaignService), CampaignService)

I also tried this line first

Dim objService As CampaignService = objAdWordsUser.GetService(AdWordsService.v201506.CampaignService)

These are the imports I am using on the page:

Imports Google.Api.Ads.AdWords.v201506
Imports Google.Api.Ads.AdWords.Lib
Imports Google.Api.Ads.Common.Lib


Any ideas to point me in the right direction would be greatly appreciated.

Greg

Anash P. Oommen (AdWords API Team)

unread,
Sep 9, 2015, 2:45:39 PM9/9/15
to AdWords API Forum
Hi Greg,

The most obvious question would be whether Google.AdWords.dll and Google.Ads.Common.dll are in the same folder as your vb.net application. There's a chance that they aren't, but the application is loading up anyway because these assemblies got resolved from another installation you have on the server somehow. May be that library version doesn't have v201506 supported.

You can use the fuslogvw application from the .NET SDK to troubleshoot assembly binding issues. See https://msdn.microsoft.com/en-us/library/e74a18c4(v=vs.110).aspx for details.

Let me know if this works for you.

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