This might be an API limitation, maybe? It looks like all USD values need to be rounded to the nearest 10,000 micros, and then the API accepts the bids (i.e. minimum granularity of $0.01 USD). I'm assuming that the error *might* not refer to a "fractional" micro, it might means a fractional denomination of the minimum currency denomination (e.g. you can only bet $0.08 or $0.09, but not $0.086).
Can anyone from API team confirm whether this is an API limitation rather than a Ruby implementation issue? If so, it might be worth updating the documentation to reflect this... Thanks. On Jun 29, 5:51 pm, ojak wrote: > Found a similar looking error from the PHP API, but it doesn't seem to > explain what's going on in the Ruby API: > > http://groups.google.com/group/adwords-api/browse_thread/thread/662d1... > > The PHP API problem states that it's a Float precision problem. > However, in the Ruby issue in the above post, the microAmount is > already being cast to an Integer (using Float#to_i). I even tried > calling Float#floor before passing the data in, but still doesn't > work. > > So, I'm not quite sure what's going on. Any takers? > > On Jun 29, 3:33 pm, ojak wrote: > > > I'm receiving "BiddingError.BID_TOO_MANY_FRACTIONAL_DIGITS" for a bid > > microAmount that is not fractional (SOAP log confirms that the number > > is indeed not fractional): > > > <n2:operations xsi:type="n2:AdGroupCriterionOperation"> > > <n2:operator>ADD</n2:operator> > > <n2:operand xsi:type="n2:BiddableAdGroupCriterion"> > > <n2:adGroupId>xxx</n2:adGroupId> > > <n2:criterion xsi:type="n2:Keyword"> > > <n2:text>My Keyword</n2:text> > > <n2:matchType>BROAD</n2:matchType> > > </n2:criterion> > > <n2:bids xsi:type="n2:ManualCPCAdGroupCriterionBids"> > > <n2:maxCpc> > > <n2:amount xsi:type="n2:Money"> > > <n2:microAmount>86666</n2:microAmount> > > </n2:amount> > > </n2:maxCpc> > > </n2:bids> > > </n2:operand> > > </n2:operations> > > > Any ideas (Ruby API)? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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