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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 03/06/19 23:52:36 maks.mamy...@avana.asia 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 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/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 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/1avo9ho0000000010mv13a002m5egcz6smjacph70o30c1g68qj8e9i%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • BudgetS... maks . mamytov
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Maksat Mamytov

Reply via email to