Re: (Avana)Re: BudgetService NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT

24 views
Skip to first unread message

Maksat Mamytov

unread,
Mar 8, 2019, 2:01:17 PM3/8/19
to Adam Ohren, Tammy Phan, googleadsapi...@google.com, AdWords API and Google Ads API Forum, Saikat Bose, adwordsapi-support
Hi Adam,

thanks for help. Just realized that documentation part is expandable. A bit confusing because other sections of documentation going with 'Download CSV' without expanding section. That's why I thought minimum unit for all currencies is 10000. 

Thanks again,
Maks 

On Fri, Mar 8, 2019 at 7:36 PM Adam Ohren <aoh...@google.com> wrote:
Hi Maks,

I think the issue here is the currency value in the request, 34756100000. It specifies an amount that is smaller than the minimum allowable increment for IDR currency. In general, each currency has a smallest increment that's supported by Google Ads. It varies for each currency. We have a table defining this smallest increments for each currency code in our API documentation.  

In this case, the account uses IDR which has a minimum unit of 1000000. So the budget value 34756100000 will need to be rounded to the nearest increment of 1000000. Try setting 34756000000 to see if that resolves the error. If so, I don't think this is related to the client library or anything else lower level. 

You'll need to add some validation logic on your client side to make sure that all currency values are increments of the minimum unit allowed for a given account's currency. 

On Fri, Mar 8, 2019 at 12:36 AM Maksat Mamytov <maks.m...@avana.asia> wrote:
Hi API Support Team,

as mentioned below I already tried the fix suggested here https://github.com/googleads/googleads-php-lib/issues/559 but it still doesn't work. Also please refer to SOAP request XML for details of request. How I can resolve this issue?

Thanks,
Maks

On Fri, Mar 8, 2019 at 11:28 AM Tammy Phan <tamm...@google.com> wrote:
Hi API support team

Our partner Avana has an API question below. Can you please help deep dive and reply to Maks from our partner?


Thanks




On Fri, 8 Mar 2019, 1:00 PM Maksat Mamytov, <maks.m...@avana.asia> wrote:
Hi Support Team,

any resolution to this issue? This issue is pretty urgent as it's blocking us from properly creating campaigns.

Thanks,
Maks

On Thu, Mar 7, 2019 at 3:23 PM Maksat Mamytov <maks.m...@avana.asia> wrote:
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 <adwor...@googlegroups.com> wrote:
Hi Maks,

The error NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT 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 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

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.m...@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: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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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...@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.
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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...@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.


--
 
 
  
Adam Ohren
Developer Advocate
Ads Developer Relations, Singapore
aoh...@google.com | +65 6521 8830
 
 

Maksat Mamytov

unread,
Mar 8, 2019, 2:01:34 PM3/8/19
to Tammy Phan, googleadsapi...@google.com, AdWords API and Google Ads API Forum, Adam Ohren, Saikat Bose, adwordsapi-support
Reply all
Reply to author
Forward
0 new messages