Hi Vivian,

Based on your codes, I noticed that you used an array values to 
conversionValue 
<https://developers.google.com/adwords/api/docs/reference/v201806/OfflineConversionFeedService.OfflineConversionFeed#conversionvalue>
 which 
is supposedly a single double value only based on the guide. This might 
have caused the error. Also, I could see your post on the github issue 
tracker here <https://github.com/googleads/googleads-python-lib/issues/317>. 
Could you clarify if you already tried using single values only? 

If the issue persist, could you provide your complete SOAP request and 
response logs when you encountered the error? Please reply via *Reply 
privately to author*. If you haven't enabled the SOAP logs yet, you can 
enable it by following this guide 
<https://github.com/googleads/googleads-python-lib#how-do-i-log-soap-interactions>
.

Thanks and regards,
Luis
AdWords API Team

On Friday, August 10, 2018 at 1:13:50 PM UTC+8, Vivian zhang wrote:
>
> Hello.
>
>
> I am trying to upload offline conversion data to Google Adwords through 
> Google API using Python
>
>
> However, I am encounter error:
> GoogleAdsServerFault: Unmarshalling Error: [0.02222222 5.89444444 
> 0.42777778 ... 0.64444444 0.02222222 0.23333333]
>
>
> To be more specific, here is the code and error looks like:
>
> client = adwords.AdWordsClient.LoadFromStorage("googleads.yaml")
> client.SetClientCustomerId('xxx-xxx-xxxx')
> offline_conversion_feed_service = 
> client.GetService('OfflineConversionFeedService', version='v201806')
> feed = {
> 'conversionName': conversion_name,
> 'conversionTime': conversion_time,
> 'conversionValue': conversion_value,
> 'googleClickId': click_id,
> }
>
> offline_conversion_operation = {
> 'operator': 'ADD',
> 'operand': feed
> }
>
> [
> To be sure, I print out the feed, and it looks like:
> {'conversionName': 'LTV',
> 'conversionTime': array(['20180808 170353 America/New_York',
> '20180808 165437 America/New_York',
> '20180808 212400 America/New_York', ...,
> '20180808 125331 America/New_York',
> '20180808 223200 America/New_York',
> '20180808 150408 America/New_York'], dtype=object),
> 'conversionValue': array([0.02222222, 5.89444444, 0.42777778, ..., 
> 0.64444444, 0.02222222,
> 0.23333333]),
> 'googleClickId': array(['EAIaIQobChMI1r6w-aze3AIVy5,
> 'EAIaIQobChMIkLqAvKve3wE',
> 'EAIaIQobChMg6GCh0OyAo1EAEYASAAEgJLcPD_BwE', ...,
> 'EAIaIQobChMI2F6AYKEAEYAyAAEgLiYvD_BwE',
> 'EAIaIQobCh2MSwF0EAEYASAAEgIPmfD_BwE',
> 'EAIaIQobCh3nPAkbEAEYASAAEgJanPD_BwE'],
> dtype=object)}
> ]
>
> Then I try to upload them through:
> offline_conversion_response = 
> offline_conversion_feed_service.mutate([offline_conversion_operation])
>
> With error message:
> ------------------------------
>
> GoogleAdsServerFault Traceback (most recent call last)
> in ()
> ----> 1 offline_conversion_response = 
> offline_conversion_feed_service.mutate([offline_conversion_operation])
>
> /Users/vzhang/Documents/Env/default/lib/python2.7/site-packages/googleads/common.pyc
>  
> in MakeSoapRequest(*args)
> 1383 error_list = fault.errors or error_list
> 1384 raise googleads.errors.GoogleAdsServerFault(
> -> 1385 e.detail, errors=error_list, message=e.message)
> 1386 return MakeSoapRequest
> 1387
>
> GoogleAdsServerFault: Unmarshalling Error: [0.02222222 5.89444444 
> 0.42777778 ... 0.64444444 0.02222222 0.23333333]
>
> Can anyone let me know what's wrong with my code and how to fix it?
> Thanks!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a17bf002-35e8-489a-b718-1aa988a2aa96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Vivian zhang
    • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to