Muokkaa

Jaa


BingAdsAccountStats

Contains the methods for accessing an account's performance data.

Example usage:

    var account = AccountsApp.accounts()
        .forDateRange("LAST_WEEK")
        .get()
        .next();

    var stats = account.getStats();
    var conversionRate = stats.getConversionRate();
    var convertedClicks = stats.getConversions();
    // etc.

Methods

Method Name Return Type Description
getClickConversionRate double (Use the getConverionRate() method instead.)
getClicks long Gets the number of clicks.
getConversionRate double Gets the conversion rate for clicks.
getConversions long Gets the number of clicks that were converted.
getConvertedClicks long (Use the getConverions() method instead.)
getCost double Gets the cost (spend) in the account's currency.
getCtr double Gets the click through rate.
getImpressions long Gets the number of impressions.
getReturnOnAdSpend long Gets the return on ad spend.
getRevenue long Gets the advertiser-reported revenue.

getClickConversionRate

Gets the conversion rate for clicks.

Note

Because this method may be deprecated in a future release, use the getConversionRate method instead.

Returns

Type Description
double The conversion rate for clicks, in the range 0..1.

getClicks

Gets the number of clicks.

Returns

Type Description
long The number of clicks.

getConversionRate

Gets the conversion rate for clicks.

Returns

Type Description
double The conversion rate for clicks, in the range 0..1.

getConversions

Gets the number of clicks that were converted.

Returns

Type Description
long The number of clicks that were converted.

getConvertedClicks

Gets the number of clicks that converted.

Note

Because this method may be deprecated in a future release, use the getConversions method instead.

Returns

Type Description
long The number of clicks that converted.

getCost

Gets the cost (spend) in the account's currency.

Returns

Type Description
double The cost in the account's currency.

getCtr

Gets the click-through rate.

Returns

Type Description
double The click-through rate, in the range 0..1.

getImpressions

Gets the number of impressions.

Returns

Type Description
long The number of impressions.

getReturnOnAdSpend

Gets the return on ad spend.

Returns

Type Description
double The return on ad spend, which is calculated as (revenue / spend) * 100.

getRevenue

Gets the advertiser-reported revenue.

Returns

Type Description
double The revenue reported by the advertiser.

See also