Google Adwords Add or Update Keywords

We are trying to use Adwords API to add keyword to an existing adgroup. We'd like to implement it so it ignores keywords that already exist and inserts only the ones that do not exist in the adgroup.

Currently, API inserts all keywords which results in duplicate keywords. We are using code found on this page:
http://adwords-api-dotnet-samples.googlecode.com/svn-history/r25/trunk/src/AddKeyword.cs
Please refer us to the documentation that we should look at or suggest what we should do. We'd appreciate any help.
// Add keyword if there are no policy violations.
        if (errors == null) {
          Criterion[] criteria = service.addCriteria(
            new Criterion[] {keyword});

Open in new window

zakaliAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zakaliAuthor Commented:
This comment from Goo API team suggests that this may not be possible. "The recommended solution would be to keep track of which keywords are currently in a given ad group, and don't attempt add identical keywords to the same ad group."
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.