Closed colorstain closed 9 years ago
Hiya Aldo,
Curious - where in the library did this pop up - more specifically - in what call chain did this fail?
Your solution is far cleaner than my own, but I had for some reason black-boxed the services that return floats as part of the response, so I'm just wondering where it stems from.
Nicholas Chen, DFP API Team
I ran into the problem while using DFP api and updating manual rotation weights in the . I modified one of your examples to show the problem:
ah, missed this one since the examples were written off the old adspygoogle library in which everything is a string, will include this in the next release in early November (since it's not a breaking change).
For now, you can either use the patch suggested above or simply send over '0.3' as the value.
Just a note - going to leave this as open until the release goes out, but consider it noted and fixed :+1: thanks!
great! :+1:
This was fixed in an earlier release.
The function
_IsSudsIterable(obj)
ingoogle/ads/common.py
fails forfloats
Consider checking if obj has the attribute
__iter__
instead: