6 messages in com.googlegroups.adwords-apiRe: Passing multiple keywords in Crit...
FromSent OnAttachments
Eddie Jenkins10 Dec 2007 22:49 
Albert11 Dec 2007 01:08 
Eddie Jenkins12 Dec 2007 14:56 
Eddie Jenkins12 Dec 2007 15:04 
Albert13 Dec 2007 01:18 
Eddie Jenkins14 Dec 2007 15:31 
Subject:Re: Passing multiple keywords in Criterion Service
From:Eddie Jenkins (tim@shelterproductions.com)
Date:12/12/2007 02:56:14 PM
List:com.googlegroups.adwords-api

Im still having trouble with this.. and I believe its something really basic and simple that im missing (like perhaps I could just keep adding keywords to criterion) but cant seem to figure it out. please help

I have tried the following (pseducode)

Dim KeyCollection(1000)

For each dbkeyword in DatabaseKeywordList Dim NewKeyword1 As Keyword = New Keyword NewKeyword1.text = dbkeyword.ToString() NewKeyword1.adGroupId = 1234567 NewKeyword1.MaxCpc = 1000 NewKeyword1.type = Keyword.broad ... Dim MyKeywords() As Criterion = criterionService.addCriteria(New Criterion() {newKeyword1}) KeyCollection(x) = MyKeywords() Next

' Then After the loop criterionService.updateCriteria(KeyWordCollection)

I get errors like "Value of type '1-dimensional array of com.google.api.adwords.v11.Criterion' cannot be converted to 'com.google.api.adwords.v11.Criterion'."