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.AdGroupCriterion'
en type
'Adwords_V2009.com.google.api.adwords.v200909.AdGroupCriterionService.BiddableAdGroupCriterion'."}
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en.