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 [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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/a64b98ba-d660-4c21-8dc7-d5fb2f6c666d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to