AdsApp.​BillingAccount

  • BillingAccount represents an account used for sending invoices, especially in consolidated billing scenarios.

  • This object provides methods to retrieve key information like the billing account's ID, name, primary billing ID, resource name, and optional secondary billing ID.

  • Each method returns a string value containing the requested information, with the exception of getSecondaryBillingId() which may return null.

  • You can access the billing account's details using methods like getId(), getName(), getPrimaryBillingId(), getResourceName(), and getSecondaryBillingId().

Represents an account to which invoices are sent in consolidated billing.

Methods:

MemberTypeDescription
getId() String Returns the ID of the billing account.
getName() String Returns the name of the billing account.
getPrimaryBillingId() String Returns the primary billing ID.
getResourceName() String Returns the resource name of the billing account.
getSecondaryBillingId() String Returns the secondary billing ID or null if there is no secondary billing account.

getId()

Returns the ID of the billing account.

Return values:

TypeDescription
String The ID of the billing account.

getName()

Returns the name of the billing account.

Return values:

TypeDescription
String Name of the billing account.

getPrimaryBillingId()

Returns the primary billing ID.

Return values:

TypeDescription
String The primary billing ID.

getResourceName()

Returns the resource name of the billing account.

Return values:

TypeDescription
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:

TypeDescription
String The secondary billing ID or null if there is no secondary billing account.