Hello,

We are trying to set the daily budget via Adwords API but api call is 
getting failed.

Here are below Details

$daily_budget = 33.51;
$micro_amount = (float) ($daily_budget  * 1000000);

so if we convert to micro amount it becomes (33.51 * 1000000) = 33510000

But API throws error [BudgetError.NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT @ 
operations[0].operand.amount].We also type casted to float but still gives 
same problem.Please check below Money object.

object(Google\AdsApi\AdWords\v201809\cm\Money)#790 (3) {

  ["microAmount":protected]=>

  float(33510000)

  ["ComparableValueType":protected]=>

  NULL

  
["parameterMap":"Google\AdsApi\AdWords\v201809\cm\ComparableValue":private]=>

  array(1) {

    ["ComparableValue.Type"]=>

    string(19) "ComparableValueType"

  }

}

We are using PHP client library v201809 and PHP version 7

Please check

Thanks,
Ronak

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f0abd617-d72f-4099-81c9-9d91b4a76e9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Adwords... Ronak Shah
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Ronak Shah
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to