BID_TOO_MANY_FRACTIONAL_DIGITS API Error

This is one type of BiddingError.

I got this error during my tool implementation with the AdWords API v2009. I was updating the keywords' MaxCPC though the API.

The API fault message,

"BiddingError.BID_TOO_MANY_FRACTIONAL_DIGITS @ operations[0].operand.bids.maxCpc.amount.microAmount"

This means 'Bid has too many fractional digit precision'.

I checked my input MaxCPC, its given as 2029999 microAmount. This will be converted as 2.03 but I think adwords API not allowing the rest of the (9999) fractional digits. To solve this, I have applied the round() php function with precision 2.

$newMaxCPC = round($newMaxCPC,2);

this was worked.

For more info, refer the main Adwords API documentation,

http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupService.BiddingError.html

No comments:

Post a Comment