Hi,

I'm trying to create a campaign with MAXIMIZE_CONVERSIONS Bid strategy Type.

When i try to add budget to this campaign i have this error:

[BiddingErrors.BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET @ 
operations[0].operand.budget]

I'm using this piece of code to add budget: 

        $budgetService = $adWordsServices->get($session, 
BudgetService::class);

        // Create a budget, which can be shared by multiple campaigns.
        $sharedBudget = new Budget();
        $sharedBudget->setName($budgetName . uniqid());
        $money = new Money();
        $money->setMicroAmount($budgetMicroAmount);
        $sharedBudget->setAmount($money);
        $sharedBudget->setDeliveryMethod($budgetDeliveryMethod);

        // Create a budget operation.
        $operation = new BudgetOperation();
        $operation->setOperand($sharedBudget);
        $operation->setOperator(Operator::ADD);

        // Create the budget on the server.
        $result = $budgetService->mutate([$operation]);
        $sharedBudget = $result->getValue()[0];

        return $sharedBudget;

Is there another method that works to add budget to this campaigns?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/36e1ecf3-60f9-4d95-9a5b-afce455c6388%40googlegroups.com.

Reply via email to