Search code examples
google-analyticsgoogle-analytics-api

Patch & Update requests to remarketingAudiences returning 500 error


I am trying to patch or update Remarketing Audiences using the Google Analytics Management API. However, when I do so, I keep getting a 500 error. Here is an example of the audience I'm trying to patch/update:

{u'linkedAdAccounts': [{u'linkedAccountId': u'679-395-yyyy', u'type': u'ADWORDS_LINKS'}], u'linkedViews': [xyz], u'name': u'Test - 123', u'audienceType': u'SIMPLE', u'audienceDefinition': {u'includeConditions': {u'daysToLookBack': 30, u'isSmartList': False, u'segment': u'users::condition::ga:browser==Safari', u'membershipDurationDays': 30}}}

The problem does not occur for inserting, however. Any ideas on what might be going on?


Solution

  • A 500 error might result during heavy load or for larger more complex requests. Try to use a shorter time period or reduce the complexity of the request, for example by removing the segment and check if the error persists.