Permissions problem while trying to set up Billing to new accounts using API

41 views
Skip to first unread message

Sergej Vukovic

unread,
Dec 28, 2017, 2:30:03 AM12/28/17
to AdWords API Forum
Hi , I'm getting permissions error when trying to add billing to new accounts created and i keep getting CUSTOMER_NOT_WHITELISTED_FOR_API ?

Can somebody please check if I'm doing something wrong in my code :


            //create Billing for account


            $session
= $this->createSession($customer->getCustomerId());


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


            $newBudget
= new BudgetOrder();


           
//USD billing account
            $newBudget
->setBillingAccountId('xxxx-xxxx-xxxx-xxxx');
            $newBudget
->setPrimaryBillingId('xxxx-xxxx-xxxx');
           


            $BudgetOperation
= new BudgetOrderOperation();
       
            $BudgetOperation
->setOperator(Operator::ADD);
            $BudgetOperation
->setOperand($newBudget);




            $res
= $BudgetService->mutate([$BudgetOperation]);


Milind Sankeshware (AdWords API Team)

unread,
Dec 28, 2017, 2:40:50 PM12/28/17
to AdWords API Forum
Hi Sergej,

The MCC account is not in the white list of BudgetOrderService. You will need to contact your Google account manager in order to get back to being whitelisted. For more information please check this guide.

Thanks,
Milind, AdWords API Team.

Sergej Vukovic

unread,
Dec 29, 2017, 6:19:29 AM12/29/17
to AdWords API Forum
Thank you for the info. :) 
Reply all
Reply to author
Forward
0 new messages