• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 421
  • Last Modified:

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:
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

1 Solution
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."
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now