Include negative keywords list

60 views
Skip to first unread message

Allan Dias

unread,
May 7, 2020, 9:56:53 AM5/7/20
to AdWords API and Google Ads API Forum
Hello, would it be possible to create a list for negative keywords? I'm using Python.

I was able to add a negative keyword for a given campaign like this:

{
             'operator': 'ADD',
             'operand': {
                 'xsi_type': 'NegativeCampaignCriterion',
                 'isNegative': True,
                  'campaignId': campaign_id,
                  'criterion':
                  {
                    'xsi_type': 'Keyword',
                    'text': keyword,
                    'matchType': 'EXACT',
                  },
            }
        }
However, I needed to include a list of keywords.

Allan Dias

unread,
May 7, 2020, 10:41:35 AM5/7/20
to AdWords API and Google Ads API Forum
After doing a little research, I managed to include a list of negative keywords with the ShareSetService.
Reply all
Reply to author
Forward
0 new messages