Muokkaa

Jaa


BingAdsAccount

Contains the methods used to get account information such as name, customer ID, and account-level performance data.

Methods

Method Name Return Type Description
getAccountId string Gets this account's ID.
getAccountNumber string Gets this account's account number.
getCurrencyCode string Gets this account's currency code.
getCustomerId string Gets the ID of the customer that owns this account.
getEntityType string Gets this entity's type.
getName string Gets this account's name.
getStats BingAdsAccountStats Gets the performance data for this account.
getTimeZone string Gets this account's time zone.

getAccountId

Gets this account's ID.

Returns

Type Description
string The ID that uniquely identifies this account.

getAccountNumber

Gets this account's account number.

Returns

Type Description
string The account's account number used to identify the account in the Microsoft Advertising web application.

getCurrencyCode

Gets this account's currency code.

Returns

Type Description
string The currency currency that this account uses. For example, USD for United States dollar.

getCustomerId

Gets the ID of the customer that owns this account.

Returns

Type Description
string The ID of the customer that owns this account.

getEntityType

Gets this entity's type.

Returns

Type Description
string This entity's type, which is ManagedAccount.

getName

Gets this managed account's name.

Returns

Type Description
string The name of this managed account.

getStats

Gets the performance data for this managed account.

To call this method, you must include one of the forDateRange methods in the account selector's chain.

Returns:

Type Description
BingAdsAccountStats The performance data for this managed account.

getTimeZone

Gets this account's time zone.

Returns

Type Description
string The preferred time zone to use for campaigns in this account. For a list of time zones, see Account time zones.

See also