List Invoices - BILLING_SETUP_NOT_APPROVED

164 views
Skip to first unread message

Koeppel Direct

unread,
Jun 8, 2021, 12:08:09 PM6/8/21
to AdWords API and Google Ads API Forum
Hello,

I'm getting the follow error when trying to list invoices. I think I have the login, customer, and billing setup IDs all correct. Can someone please help?

{
    "message": "The caller does not have permission",
    "code": 7,
    "status": "PERMISSION_DENIED",
    "details": [
        {
            "@type": 0,
            "data": "type.googleapis.com\/google.ads.googleads.v7.errors.GoogleAdsFailure"
        },
        {
            "@type": 0,
            "data": [
                {
                    "errorCode": {
                        "invoiceError": "UNKNOWN"
                    },
                    "message": "The error code is not in this version.",
                    "details": {
                        "unpublishedErrorCode": "InvoiceError.BILLING_SETUP_NOT_APPROVED"
                    }
                },
                {
                    "errorCode": {
                        "authorizationError": "ACTION_NOT_PERMITTED"
                    },
                    "message": "The user does not have permission to perform this action on the resource or call a method."
                }
            ]
        },
        {
            "@type": 0,
            "data": "I2tdux_xnammkOQ6REJa-A"
        }
    ]
}

Koeppel Direct

unread,
Jun 9, 2021, 8:59:58 AM6/9/21
to AdWords API and Google Ads API Forum
UPDATE:

This issue was due to having incorrect Billing Setup ID. The Payment Profile ID (previously Billing ID) in the UI/Invoice is not the same as the Billing Setup ID. I used the query example at the following URL, which helped me identify the correct Billing Setup ID:

Google Ads API Forum Advisor

unread,
Jun 9, 2021, 12:12:23 PM6/9/21
to koep...@gmail.com, adwor...@googlegroups.com

Hi Koeppel,

Thank you for reaching out. Glad to know that you found what the issue was. Let us know if you have any further questions or concerns.

Thanks and regards,
Xiaoming, Google Ads API Team


Google Logo
Xiaoming
Google Ads API Team
 


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