Hello, I want to add keywords at the campaign level and not the ad_group level, but I'm running into trouble. Below is a sample of my error.
campaign_service = client.GetService('CampaignCriterionService', version='v201809')
operations = [{'operator': 'ADD',
'operand': {'criterion': {'matchType': 'BROAD',
'text': 'this is a keyword',
'xsi_type': 'Keyword'},
'campaignId': xxxxxxxxxxx}}]
campaign_service.mutate(operations)
Error:
GoogleAdsServerFault: [CriterionError.CANNOT_ADD_CRITERIA_TYPE @ operations[0].operand.criterion]
API DOCS:
CANNOT_ADD_CRITERIA_TYPE
- Criteria type can not be targeted.
The error states that I cannot add this criterion type, but I feel like I'm doing something wrong. Can anyone point me in the right direction?