Hi Dannison, I tried the approach from the link you shared but I am still getting the same error message. My code is like below:
$micro = $amount * 1000000; return floatval(number_format($micro, 0, '.', '')); Is there any other reasons it may fail? Thanks, Maks On Thu, Mar 7, 2019 at 9:27 AM googleadsapi-forumadvisor via AdWords API and Google Ads API Forum <[email protected]> wrote: > Hi Maks, > > The error NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT > <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService.BudgetError.Reason> > is > encountered when a money amount was not a multiple of a minimum unit. After > some investigation, this appears to be an issue with the SOAP toolkit and > the client library. For 64 bit machine we need to use number_float for > converting the amount back to string and then pass it under setAmount > function. You could refer to this GitHub post > <https://github.com/googleads/googleads-php-lib/issues/559> for more > details. Let me know if this solves your problem. > > Regards, > Dannison > AdWords API Team > > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > Also find us on our blog and discussion group: > http://googleadsdeveloper.blogspot.com/search/label/adwords_api > https://developers.google.com/adwords/api/community/ > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > > Was your question answered? Please rate your experience with us by taking > a short survey. > If not -- reply to this email and tell us what else we can do to help. > > Take Survey > <https://support.google.com/google-ads/contact/survey_transactional?caseid=7-5318000025492&hl=en&ctx=1> > > Also find us on our blog and discussion group: > http://googleadsdeveloper.blogspot.com/search/label/adwords_api > https://developers.google.com/adwords/api/community/ > On 03/06/19 23:52:36 [email protected] wrote: > > Hi Support Team, > > I am having an issue with BudgetService mutate. Details are as below: > > 1. I am using PHP 64 bit. > 2. For conversion I am using number_format($amount, 0, '.', '') > 3. Our account currency is IDR. > > Below SOAP request XML: > > <?xml version="1.0" encoding="UTF-8"?> > <SOAP-ENV:Envelope xmlns:SOAP-ENV=" > http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1=" > https://adwords.google.com/api/adwords/cm/v201806"> > <SOAP-ENV:Header> > <ns1:RequestHeader> > <ns1:clientCustomerId>6966754895</ns1:clientCustomerId> > <ns1:developerToken>REDACTED</ns1:developerToken> > <ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/36.0.0, > PHP/7.2.15-1+ubuntu16.04.1+deb.sury.org+1)</ns1:userAgent> > <ns1:validateOnly>false</ns1:validateOnly> > <ns1:partialFailure>false</ns1:partialFailure> > </ns1:RequestHeader> > </SOAP-ENV:Header> > <SOAP-ENV:Body> > <ns1:mutate> > <ns1:operations> > <ns1:operator>ADD</ns1:operator> > <ns1:operand> > <ns1:name>All Products Campaign 2019-03-06 07:20:32 > #5c7f7394d3314</ns1:name> > <ns1:amount> > <ns1:microAmount>34595100000</ns1:microAmount> > </ns1:amount> > <ns1:deliveryMethod>STANDARD</ns1:deliveryMethod> > <ns1:isExplicitlyShared>false</ns1:isExplicitlyShared> > </ns1:operand> > </ns1:operations> > </ns1:mutate> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > > I have been trying different fixes I found in Internet but nothing helped. > > Thanks in advance, > Maks > > -- > -- > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected]. > 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/fd8298ca-5891-4282-a832-6314bf07d80e%40googlegroups.com > <https://groups.google.com/d/msgid/adwords-api/fd8298ca-5891-4282-a832-6314bf07d80e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- > -- > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected]. > 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/1avo9ho0000000010mv13a002m5egcz6smjacph70o30c1g68qj8e9i%40mail.gmail.com > <https://groups.google.com/d/msgid/adwords-api/1avo9ho0000000010mv13a002m5egcz6smjacph70o30c1g68qj8e9i%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. 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/CA%2Bx0c4byKhK%3DxWk-xnGqjH%2B3gwMsmGBHCgF9fTK1UaFSeAaOBw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
