Did anyone ever resolve this? I'm experiencing the same issue. Using the 
adwords API PHP SDK. If I attempt to update the budget of a campaign thats 
set to 'pay for conversions' I get the same error: 

faultMessage=[BiddingErrors.NOT_COMPATIBLE_WITH_PAYMENT_MODE @ 
operations[0].operand.budget; trigger:'BUDGET_TYPE_ADWORDS'] 

On Thursday, May 9, 2019 at 4:09:42 PM UTC-5, David Grau wrote:
>
> Hi,
> i tried to change daily budget for my campaigns with CampaignService and 
> BudgetService but it fails when the campaign is  on "Pay for conversions 
> mode".
>
>         $budgetService = $adWordsServices->get($session, 
>> BudgetService::class);
>>         $operations = [];
>>         $budget = new Budget();
>>         $budget->setName($name." - ".$date." - ".uniqid());
>>         $money = new Money();
>>         $money->setMicroAmount($amount*1000000);
>>         $budget->setAmount($money);
>>         $budget->setDeliveryMethod(BudgetBudgetDeliveryMethod::STANDARD);
>>         $operation = new BudgetOperation();
>>         $operation->setOperand($budget);
>>         $operation->setOperator(Operator::ADD);
>>         $operations[] = $operation;
>>         // Create the budget on the server.
>>         $result = $budgetService->mutate($operations);
>>         $budget = $result->getValue()[0];
>>         $campaignService = $adWordsServices->get($session, 
>> CampaignService::class);
>>         $operations = [];
>>         $campaign = new Campaign($campaignId);
>>         $campaign->getBudget()->setBudgetId($budget->getBudgetId());
>>         $operation = new CampaignOperation();
>>         $operation->setOperand($campaign);
>>         $operation->setOperator(Operator::SET);
>>         $operations[] = $operation;
>>         $result = $campaignService->mutate($operations);
>
>
> The error is:
>
> Fatal error: Uncaught exception 
>> 'Google\AdsApi\AdWords\v201809\cm\ApiException' with message 
>> '[BiddingErrors.NOT_COMPATIBLE_WITH_PAYMENT_MODE @ 
>> operations[0].operand.budget; trigger:'BUDGET_TYPE_ADWORDS']' in 
>> /var/www/html/apis/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43
>>  
>> Stack trace: #0 
>> /var/www/html/apis/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43):
>>  
>> ReflectionClass->newInstanceArgs(Array) #1 
>> /var/www/html/apis/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(203):
>>  
>> Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', 
>> '[BiddingErrors....') #2 
>> /var/www/html/apis/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164):
>>  
>> Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
>>  
>> #3 /var/www/html/apis/adwords/vendor/googleads/ in 
>> /var/www/html/apis/adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php
>>  
>> on line 43
>
>
> what should I do to change the daily budget in "Pay for conversions" 
> campaigns?
>
> Thanks!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a84411f2-e1d4-402a-8dce-feeae0d4bb86o%40googlegroups.com.

Reply via email to