Hi,
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'}
The script I am using
# 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:
#
https://developers.google.com/adwords/api/docs/guides/conversion-tracking#importing_externally_attributed_conversions
# '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.
Best wishes,
Billy
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/dcfb0e4e-480c-44c1-b262-8d6b95fee9d6n%40googlegroups.com.