Hello,

The engineering team has implemented a fix that should prevent NaN values 
in this case. Please let me know if you're still having difficulties.

Regards,
Mike, AdWords API Team

On Tuesday, December 15, 2015 at 8:57:20 AM UTC-5, Michael Cloonan (AdWords 
API Team) wrote:
>
> Hello,
>
> I'm not sure; it does seem suspect. I will follow up with the engineering 
> team to see if this is valid.
>
> Whether it's valid or not, the Ruby library should still give you the 
> results it gets back as much as possible, which is why I wanted you to file 
> that other bug (thank you for doing that).
>
> In this thread, let's track whether or not NaN should be a valid return 
> value. I'll let you know when I hear back from the team.
>
> Regards,
> Mike, AdWords API Team
>
> On Monday, December 14, 2015 at 4:12:39 PM UTC-5, David Haslem wrote:
>>
>> Just to be clear for when I'm logging the issue there - NaN is considered 
>> a valid float return value for the "defaultRevenueValue" attribute on the 
>> conversion tracker type? That's what I'm seeing when I enable verbose 
>> logging to dump the raw XML from within the gem:
>>
>> <entries xmlns:xsi="http://www.w3.org/2001/XMLS
>> chema-instance" 
>> xsi:type="AdWordsConversionTracker"><id>180679886</id><name>wertwertw</name><status>ENABLED</status><category>DEFAULT</category><viewthroughLookbackWindow>30</viewthroughLookbackWindow><isProductAdsChargeable>false</isProductAdsChargeable>
>>
>> <productAdsChargeableConversionWindow>30</productAdsChargeableConversionWindow><ctcLookbackWindow>30</ctcLookbackWindow><countingType>MANY_PER_CLICK</countingType><defaultRevenueValue>NaN</defaultRevenueValue>...
>>
>>
>> On Monday, December 14, 2015 at 12:45:29 PM UTC-8, Michael Cloonan 
>> (AdWords API Team) wrote:
>>>
>>> Hello,
>>>
>>> The library should handle this more gracefully. Please file a bug in the 
>>> issue 
>>> tracker <https://github.com/googleads/google-api-ads-ruby/issues> for 
>>> the Ruby library.
>>>
>>> Regards,
>>> Mike, AdWords API Team
>>>
>>> On Monday, December 14, 2015 at 3:31:05 PM UTC-5, David Haslem wrote:
>>>>
>>>> I'm getting an error trying to pull conversion trackers for an account 
>>>> (the id is 6800061575). The soap request we send is a Get for 
>>>> ConversionTrackers:
>>>>
>>>> {:fields=>["AlwaysUseDefaultRevenueValue", "AppId", "AppPlatform", 
>>>> "AppPostbackUrl", "BackgroundColor", "Category", "ConversionPageLanguage", 
>>>> "ConversionValue", "CountingType", "DefaultRevenueCurrencyCode", 
>>>> "DefaultRevenueValue", "ExcludeFromBidding", "Id
>>>> ", "IsProductAdsChargeable", "MarkupLanguage", "Name", 
>>>> "NumConversionEvents", "NumConvertedClicks", 
>>>> "ProductAdsChargeableConversionWindow", "Status", "TextFormat", 
>>>> "TrackingCodeType", "ViewthroughLookbackWindow"], 
>>>> :predicates=>[{:field=>"Status", :operato
>>>> r=>"IN", :values=>["ENABLED", "DISABLED", "HIDDEN"]}], 
>>>> :paging=>{:start_index=>0, :number_results=>500}}
>>>>
>>>>
>>>> The error appears to be from a bad value "NaN" returned for one of the 
>>>> conversion trackers, returned directly by the API, which the rubygem then 
>>>> throws an exception on:
>>>>
>>>> ArgumentError: invalid value for Float(): "NaN"
>>>>     [  0] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:235:in
>>>>  
>>>> `Float'",
>>>>     [  1] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:235:in
>>>>  
>>>> `normalize_item'",
>>>>     [  2] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:98:in
>>>>  
>>>> `normalize_output_field'",
>>>>     [  3] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:77:in
>>>>  
>>>> `block in normalize_fields'",
>>>>     [  4] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:73:in
>>>>  
>>>> `each'",
>>>>     [  5] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:73:in
>>>>  
>>>> `normalize_fields'",
>>>>     [  6] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:128:in
>>>>  
>>>> `normalize_hash_field'",
>>>>     [  7] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:96:in
>>>>  
>>>> `normalize_output_field'",
>>>>     [  8] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:112:in
>>>>  
>>>> `block in normalize_array_field'",
>>>>     [  9] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:112:in
>>>>  
>>>> `map'",
>>>>     [ 10] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:112:in
>>>>  
>>>> `normalize_array_field'",
>>>>     [ 11] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:94:in
>>>>  
>>>> `normalize_output_field'",
>>>>     [ 12] 
>>>> "/app/vendor/bundle/ruby/2.1.0/gems/google-ads-common-0.9.9/lib/ads_common/results_extractor.rb:77:in
>>>>  
>>>> `block in normalize_fields'",
>>>>
>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/82f6776a-58f5-4255-a22a-7340cdd2e11f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to