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 
https://developers.google.com/adwords/api/docs/appendix/codes-formats#currency-codes

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

[image: currency.png]



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/54660fe6-9997-4c95-8c75-0bdb42fd4cf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to Convert curr... mubbashar husain

Reply via email to