Hi,
I am confused about converting currency value to Adwords Money Object
To convert USD into Money I am using this code
$amount = round($newCpc * 1000000);
$Money = new cm\Money(null, $amount);
I have an account having currency in "Colombian Peso" COP
According to documentation
The minimum unit is 1000000 but when I multiply this and send API call I got the error
[trigger:protected] => The bid of 125.400000 must be a whole multiple of 1.000000
[errorString:protected] => BiddingErrors.BID_TOO_MANY_FRACTIONAL_DIGITS
[ApiErrorType:protected] => BiddingErrors
So can you please help me in getting the money value for any country. Right now I am not able to convert it as this is very confusing.
The table on the above link show 10000 for USD but here it says One million is equivalent to one unit
