Here is a snippet of my code:
campaign_service = self.get_service(CAMPAIGN_SERVICE)
parameters = [
{
'key': 'refcode',
'value': refcode
}
]
campaign_operations = []
for campaign in campaigns:
campaign_operations.append({
'operator': 'SET',
'operand': {
'name': campaign,
'urlCustomParameters': {'parameters': parameters}
}
})
response = campaign_service.mutate(campaign_operations)
return response
The campaigns is a list of valid campaigns which are serving. I have used this code before and it has made the changes.
Only now when I call, it is giving me the InternalApiError.UNEXPECTED_INTERNAL_API_ERROR. I don't know why this is the case.
Thanks