AdsApp.BillingAccount
Stay organized with collections
Save and categorize content based on your preferences.
Represents an account to which invoices are sent in
consolidated
billing.
Methods:
getId()
Returns the ID of the billing account.
Return values:
Type | Description |
String |
The ID of the billing account. |
getName()
Returns the name of the billing account.
Return values:
Type | Description |
String |
Name of the billing account. |
getPrimaryBillingId()
Returns the primary billing ID.
Return values:
Type | Description |
String |
The primary billing ID. |
getResourceName()
Returns the resource name of the billing account.
Return values:
Type | Description |
String |
The resource name of the billing account. |
getSecondaryBillingId()
Returns the secondary billing ID or
null
if there is no
secondary billing account.
Return values:
Type | Description |
String |
The secondary billing ID or null if there is no
secondary billing account. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-25 UTC.
[null,null,["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eBillingAccount represents an account used for sending invoices, especially in consolidated billing scenarios.\u003c/p\u003e\n"],["\u003cp\u003eThis object provides methods to retrieve key information like the billing account's ID, name, primary billing ID, resource name, and optional secondary billing ID.\u003c/p\u003e\n"],["\u003cp\u003eEach method returns a string value containing the requested information, with the exception of \u003ccode\u003egetSecondaryBillingId()\u003c/code\u003e which may return null.\u003c/p\u003e\n"],["\u003cp\u003eYou can access the billing account's details using methods like \u003ccode\u003egetId()\u003c/code\u003e, \u003ccode\u003egetName()\u003c/code\u003e, \u003ccode\u003egetPrimaryBillingId()\u003c/code\u003e, \u003ccode\u003egetResourceName()\u003c/code\u003e, and \u003ccode\u003egetSecondaryBillingId()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# AdsApp.BillingAccount\n\nRepresents an account to which invoices are sent in [consolidated\nbilling](//support.google.com/google-ads/answer/2375371).\n\n### Methods:\n\n| Member | Type | Description |\n|---------------------------------------------------|----------|--------------------------------------------------------------------------------------|\n| [getId()](#getId) | `String` | Returns the ID of the billing account. |\n| [getName()](#getName) | `String` | Returns the name of the billing account. |\n| [getPrimaryBillingId()](#getPrimaryBillingId) | `String` | Returns the primary billing ID. |\n| [getResourceName()](#getResourceName) | `String` | Returns the resource name of the billing account. |\n| [getSecondaryBillingId()](#getSecondaryBillingId) | `String` | Returns the secondary billing ID or `null` if there is no secondary billing account. |\n\n`getId()`\n---------\n\nReturns the ID of the billing account.\n\n### Return values:\n\n| Type | Description |\n|----------|--------------------------------|\n| `String` | The ID of the billing account. |\n\n`getName()`\n-----------\n\nReturns the name of the billing account.\n\n### Return values:\n\n| Type | Description |\n|----------|------------------------------|\n| `String` | Name of the billing account. |\n\n`getPrimaryBillingId()`\n-----------------------\n\nReturns the primary billing ID.\n\n### Return values:\n\n| Type | Description |\n|----------|-------------------------|\n| `String` | The primary billing ID. |\n\n`getResourceName()`\n-------------------\n\nReturns the resource name of the billing account.\n\n### Return values:\n\n| Type | Description |\n|----------|-------------------------------------------|\n| `String` | The resource name of the billing account. |\n\n`getSecondaryBillingId()`\n-------------------------\n\nReturns the secondary billing ID or `null` if there is no secondary billing account.\n\n### Return values:\n\n| Type | Description |\n|----------|------------------------------------------------------------------------------|\n| `String` | The secondary billing ID or `null` if there is no secondary billing account. |"]]