I am operating in a test account with a python client and when I test offline conversion upload, I came across this error:
Error summary: {'faultMessage': "DateError.INVALID_STRING_DATE_TIME @ ; trigger:'2020-09-09T00:00:00 America/Los_Angeles'", 'serviceName': 'OfflineConversionFeedService', 'methodName': 'mutate'}
# Initialize appropriate services.
offline_conversion_feed_service = client.GetService(
'OfflineConversionFeedService', version='v201809')
# Associate offline conversions with the existing named conversion tracker. If
# this tracker was newly created, it may be a few hours before it can accept
# conversions.
feed = {
'conversionName': 'Website lead',
'conversionTime': '2020-09-09T00:00:00 America/Los_Angeles',
'conversionValue': '8.930611',
'googleClickId': 'xxxx',
# Optional: To upload fractional conversion credits, set the external
# attribution model and credit. To use this feature, your conversion
# tracker should be marked as externally attributed. To learn more about
# importing externally attributed conversins, see:
# 'externalAttributionCredit': 0.3,
# 'externalAttributionModel': 'Linear'
}
offline_conversion_operation = {
'operator': 'ADD',
'operand': feed
}
offline_conversion_response = offline_conversion_feed_service.mutate(
[offline_conversion_operation])
I have tried every format in the guide but it is always invalid datetime string. I am expecting the code to fail where the datetime might be invalid so not sure what I am doing wrong here.