Hi, Do you have the Request ID or SOAP XML logs from this request? I thing the XML may hold some important clues.
Best, - Eric Koleda, AdWords API Team On Jan 13, 9:37 am, "alexis.rouss...@gmail.com" <arouss...@visiteonline.com> wrote: > Hi, > > I try to get informations about keywords i send with the API. > > With the production plateform i got no problem but with the sand box, > i got this error : > > System.InvalidCastException = {"Impossible d'effectuer un cast d'un > objet de type > 'Adwords_V2009.com.google.api.adwords.v200909.AdGroupCriterionService.AdGro > upCriterion' > en type > 'Adwords_V2009.com.google.api.adwords.v200909.AdGroupCriterionService.Bidda > bleAdGroupCriterion'."} > > My code is in vb.net : > > Dim MonKW As DataTable > Dim results As AdGroupCriterionPage > Dim MyCriterion As BiddableAdGroupCriterion > 'Create a selector to specify the selection criteria. > Dim selector As New AdGroupCriterionSelector() > Dim idFilters As New AdGroupCriterionIdFilter > selector.criterionUse = CriterionUse.BIDDABLE > selector.criterionUseSpecified = True > idFilters.adGroupId = Long.Parse(GId_Google) > idFilters.adGroupIdSpecified = True > idFilters.criterionId = Long.Parse(KWID_Google) > idFilters.criterionIdSpecified = True > selector.idFilters = New AdGroupCriterionIdFilter() > {idFilters} > selector.userStatuses = New UserStatus() {UserStatus.ACTIVE} > > Try > results = service.get(selector) > If results IsNot Nothing AndAlso results.entries IsNot > Nothing AndAlso results.entries.Length > 0 Then > MyCriterion = results.entries(0) > > Here : MyCriterion = results.entries(0) with the sandbox i have the > error above. > > Any idea why? Cause for my test i prefere to be in sandbox. > > Thanks, > > Regards.
-- 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-...@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.