How to Add Negative Keywords in Bulk in Google Ads

Adding negative keywords in bulk can be a great way to save time and ensure that your ads are only shown to the most relevant audience. Here are two methods you can use to add negative keywords in bulk:

Method 1: Use the Google Ads Editor

  1. Download and install the Google Ads Editor.
  2. Open the Google Ads Editor and connect to your Google Ads account.
  3. Select the campaign or ad group to which you want to add negative keywords.
  4. Click the “Keywords & Targeting” tab.
  5. Click the “Keywords, Negative” subtab.
  6. Click the “Make multiple changes” button.
  7. Select “My data includes columns for campaigns and/or ad groups” if you want to specify a different campaign or ad group for each negative keyword.
  8. Click “Browse” and select the file containing your negative keywords.
  9. Map the columns in your file to the corresponding fields in Google Ads Editor.
  10. Click “Process” to add the negative keywords to your campaign or ad group.

Method 2: Use the Google Ads API

  1. Create a service account and credentials for accessing the Google Ads API.
  2. Download and install the Google Ads API client library for your preferred programming language.
  3. Write a script that uses the Google Ads API to add negative keywords to your campaign or ad group.
  4. Run the script to add the negative keywords to your campaign or ad group.

Here is an example of how to add negative keywords in bulk using the Google Ads API:

Python
from googleads import adwords

def add_negative_keywords(account_id, campaign_id, ad_group_id, negative_keywords):
    # Initialize the Google Ads API client library
    adwords_client = adwords.AdWordsClient.LoadFromStorage()
    # Select the campaign and ad group to which you want to add negative keywords
    campaign_service = adwords_client.GetCampaignService()
    campaign = campaign_service.GetCampaign(account_id, campaign_id)
    ad_group_service = adwords_client.GetAdGroupService()
    ad_group = ad_group_service.GetAdGroup(account_id, campaign_id, ad_group_id)

    # Create the negative keyword operations
    negative_keyword_operations = []
    for negative_keyword in negative_keywords:
        negative_keyword_operation = adwords.AdWordsClient.Builder.NegativeKeywordOperation()
        negative_keyword_operation.CampaignId = campaign_id
        negative_keyword_operation.AdGroupId = ad_group_id
        negative_keyword_operation.KeywordText = negative_keyword
        negative_keyword_operations.append(negative_keyword_operation)

    # Add the negative keywords to the ad group
    ad_group_service.MutateAdGroups(account_id, [ad_group], negative_keyword_operations)

# Example usage
negative_keywords = ["irrelevant", "not interested"]
add_negative_keywords("123456789", "987654321", "1234567890", negative_keywords)

This is just a basic example, and you may need to modify it to fit your specific needs. For more information on using the Google Ads API, please refer to the official documentation.

If you need our experts help for launching your business campaign, then please connect with us. We will surely deliver the results with lowest operational cost and higher ROI.

Leave a Reply

Your email address will not be published. Required fields are marked *