Hello,
I am trying to add a targeting criteria to a campaign/adgroup but it keeps raising the same error. I am trying to add a user interest (affinity audiences and in-market) criteria to an specific campaign but it gives me the following error:
suds.WebFault: Server raised fault: '[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]'
The code snippet I use is:
operations.append({
'operator': 'ADD',
'operand': {
'xsi_type': 'BiddableAdGroupCriterion',
'adGroupId': ad_group_id,
'criterion': {
'xsi_type': 'CriterionUserInterest',
# Create gender criteria. The IDs can be found in the
# documentation:
# https://developers.google.com/adwords/api/docs/appendix/genders.
'id': INTEREST
}
}
})
response = ad_group_criterion_service.mutate(operations)
Also, when I try to get all the targetable user interests via constant_data_service.getUserInterestCriterion() it throws a similar error.
I would appreciate if you could help me.
Thank you,
Best,
Santi