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 <[email protected]> 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 > <https://developers.google.com/adwords/api/docs/appendix/codes-formats#currency-codes> > 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 <[email protected]> > 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 <[email protected]> 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, <[email protected]> >>> 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 <[email protected]> >>>> 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 <[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. >>>>>> >>>>> > > -- > > > > Adam Ohren > Developer Advocate > Ads Developer Relations, Singapore > [email protected] | +65 6521 8830 > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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%2Bx0c4b11B80SfJ5i_NKBMfG5%2BYFJPZ%2Bbf0HQTsMaR22-_o4Lw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
