Maximize Conversion Campaign with Budget

289 views
Skip to first unread message

Traipler SEM

unread,
Nov 11, 2019, 5:59:39 AM11/11/19
to AdWords API and Google Ads API Forum
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?

Google Ads API Forum Advisor Prod

unread,
Nov 11, 2019, 2:03:45 PM11/11/19
to traipl...@gmail.com, adwor...@googlegroups.com

Hi,

 

Thank you for reaching out. The MAXIMIZE_CONVERSIONS bidding strategy requires that the campaign have its own budget. Please set isExplicitlyShared for the budget to false if you would like to use it for this campaign.

 

Regards,

Mitchell

Google Ads API Team



ref:_00D1U1174p._5001UJaFnA:ref
Reply all
Reply to author
Forward
0 new messages