Internal API Error when setting custom params for campaigns

10 views
Skip to first unread message

Petros Dawit

unread,
Jun 15, 2019, 4:25:05 PM6/15/19
to AdWords API and Google Ads API Forum
Hi 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 campaigns that are currently serving. I am now getting back an Internal API Error when b4, this same code didn't have that issue. Any help would be appreciated.

Thanks
Reply all
Reply to author
Forward
0 new messages