have an INVALID_BILLING_ACCOUNT exception while creating a budgetOrder using the same billing account as usual.

52 views
Skip to first unread message

Atienon Offlcial

unread,
Jun 11, 2019, 6:54:06 AM6/11/19
to AdWords API and Google Ads API Forum
I have an INVALID_BILLING_ACCOUNT exception while creating a budgetOrder using the same billing account as usual. 

I can retrieve the billing account without any pb.

Would someone help me?



<?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/billing/v201809">
            <ns2:clientCustomerId xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809">4105198503</ns2:clientCustomerId>
            <ns3:developerToken xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201809">REDACTED</ns3:developerToken>
            <ns4:userAgent xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201809">lnk-mcc300 (AwApi-Java, AdWords-Axis/4.1.0, Common-Java/4.1.0, Axis/1.4, Java/1.8.0_111, maven)</ns4:userAgent>
            <ns5:validateOnly xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201809">false</ns5:validateOnly>
            <ns6:partialFailure xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201809">false</ns6:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <operations>
                <ns7:operator xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201809">ADD</ns7:operator>
                <operand>
                    <billingAccountId>0595-4797-3956-3267</billingAccountId>
                    <primaryBillingId>2513-2327-4359</primaryBillingId>
                    <spendingLimit>
                        <ns8:microAmount xmlns:ns8="https://adwords.google.com/api/adwords/cm/v201809">100000000</ns8:microAmount>
                    </spendingLimit>
                    <startDateTime>20190612 000001 Europe/Paris</startDateTime>
                    <endDateTime>20190614 235959 Europe/Paris</endDateTime>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>

[main] INFO com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger - SOAP response:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
            <requestId>00058af82c5d15ea0ac14e46130bac35</requestId>
            <serviceName>BudgetOrderService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>423</responseTime>
        </ns2:ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[BudgetOrderError.INVALID_BILLING_ACCOUNT @ operations[0].operand]</faultstring>
            <detail>
                <ns2:ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809" xmlns:ns2="https://adwords.google.com/api/adwords/billing/v201809">
                    <message>[BudgetOrderError.INVALID_BILLING_ACCOUNT @ operations[0].operand]</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:BudgetOrderError">
                        <fieldPath>operations[0].operand</fieldPath>
                        <fieldPathElements>
                            <field>operations</field>
                            <index>0</index>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>operand</field>
                        </fieldPathElements>
                        <trigger/>
                        <errorString>BudgetOrderError.INVALID_BILLING_ACCOUNT</errorString>
                        <ApiError.Type>BudgetOrderError</ApiError.Type>
                        <ns2:reason>INVALID_BILLING_ACCOUNT</ns2:reason>
                    </errors>
                </ns2:ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Google Ads API Forum Advisor Prod

unread,
Jun 11, 2019, 3:46:00 PM6/11/19
to adwor...@googlegroups.com
Hello Atienon,

Could you please confirm whether the account 4105198503 or any of its manager accounts are associated with the billing account: 0595-4797-3956-3267? You could fin that by running BudgetOrderService.getBillingAccounts() and confirm if the BillingAccountId is returned? If the operation doesn't return the account ID you specified, you might have to follow this guide to add the account for consolidated billing. Please let me know if you have any further questions?

Regards,
Sai Teja, Google Ads API Team

 

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