Figured it out... Null exception was being returned locally. I had a hard time debugging this because the values of the object "user" are not shown in Visual Web Developer 2005 so it was hard to know that the key values were null.
I added the information from the app.config file to the web.config file and that worked. <add key="companyName" value... On Apr 23, 7:41 pm, Locobee <mspren...@esourcemarketing.com> wrote: > Any help would be great! Using the C# sample file GetUnitCount.cs > converted to VB.net. I get a Null Object Exception ex.message = > Object reference not set to an instance of an object. on the following > line... > > Dim info As ApiUsageInfo = infoService.[get](selector) > > within the following code... > > Dim user As New AdWordsUser > > ' Get the InfoService. > Dim infoService As InfoService = > DirectCast(user.GetService(AdWordsService.v200909.InfoService), > InfoService) > infoService.RequestHeader.clientEmail = Nothing > > Dim today As DateTime = DateTime.Today.ToUniversalTime() > Dim startOfMonth As New DateTime(today.Year, today.Month, > 1) > > Dim selector As New InfoSelector() > selector.apiUsageTypeSpecified = True > selector.apiUsageType = ApiUsageType.UNIT_COUNT > selector.dateRange = New DateRange() > selector.dateRange.min = startOfMonth.ToString("yyyyMMdd") > selector.dateRange.max = today.ToString("yyyyMMdd") > > Try > Dim info As ApiUsageInfo = infoService.[get](selector) > If info IsNot Nothing Then > Label1.Text = info.cost > End If > Catch ex As Exception > Label1.Text = ex.Message > End Try > > -- > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > Have you migrated to v200909 yet? > The v13 sunset is on April 22, 2010. > > Also find us on our blog and discussion > group:http://adwordsapi.blogspot.comhttp://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 > athttp://groups.google.com/group/adwords-api?hl=en -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. 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