Skip to main content

Get campaign statistics, for date range

GET 
/v1/campaigns/:campaignId/stats

Gets campaign statistics for a date range. Use the startDate and endDate query parameters to specify the date range. The date range between startDate and endDate is limited to 366 days at a time.

If the merge parameter is set to false, then this endpoint returns individual campaign statistics for each day in the date range. If set to true, this endpoint returns a single entry with aggregated statistics for the date range.

If the startDate and endDate are omitted, campaign statistics for the last 30 days are returned.

Notes:

  • If no campaign statistics exist for the requested date range, CurrencyCode is set to null
  • If the currency of the employer has changed in the requested date range, CurrencyCode is set to null
OAuth scopeAccess token type
employer.advertising.campaign_report.read

Access token that represents an employer. See Get access token that represents employer.

Request

Path Parameters

    campaignId stringrequired

    Campaign ID.

Query Parameters

    startDate date

    Start of the date range, inclusive, in YYYY-MM-DD format.

    endDate date

    End of the date range, exclusive, in YYYY-MM-DD format. End date must be at least one day after the start date.

    start string

    Start date in YYYY-MM-DD format. Lists campaign stats starting with the start date, inclusive. This parameter is only meant for pagination; for all other purposes startDate must be used.

    merge boolean

    Indicates whether to merge the campaign statistic results. Possible values are true and false. The default is false. If the merge parameter is set to false, then this endpoint returns individual campaign statistics for each day in the date range. If set to true, this endpoint returns a single entry with aggregated statistics for the date range.

    perPage integer

    Maximum number of entries to appear on one page. Default value is 10 for backward compatibility but we recommend using perPage=366 to avoid pagination and improve performance.

Responses

Success

Schema

    meta

    object

    Response-related metadata.

    status int32

    HTTP status code of the response.

    errors

    object[]

    Any errors that prevented successful processing of the request. If there were no errors, the value is null.

  • Array [

  • type string

    Name of the error.

    description string

    Human-readable description of the problem.

  • ]

  • rootLocation string

    Base URL of the Sponsored Jobs API.

    perPage int32

    For endpoints that return paginated results, the effective maximum number of entries returned on one page. The value may be smaller than the maximum you requested with the perPage parameter. If the endpoint returns a single result or doesn't paginate, the value is null.

    links

    object[]

    Resources related to the requested resource.

  • Array [

  • rel string

    The relationship between the requested resource and the related resource. These values are commonly used:

    • up: The related resource is a collection that contains the requested resource, or an entity that the requested resource is attached to.
    • next: The next page of entries in a paginated result.
    • prev: The previous page of entries in a paginated result.

    However, the value may also be an arbitrary string describing the relationship, such as Campaign Info.

    href string

    Endpoint URL of the related resource. Can contain query string parameters. To get the complete URL, append the href to rootLocation.

  • ]

  • data

    object

    oneOf

    entries

    object[]

  • Array [

  • Name string

    Campaign name.

    Id string

    Campaign ID.

    Date date

    Date of the recorded campaign traffic statistics. Follows the ISO 8601 YYYY-MM-DD format in US Central Time.

    Clicks int32

    Number of sponsored clicks for the campaign on the specified day.

    Impressions int32

    Number of people who viewed the sponsored campaign on that day.

    Conversions int32

    Number of apps resulting from direct clicks on your ad campaign on the specified day.

    OrganicClicks int32

    Number of unpaid clicks a campaign had on that day.

    OrganicImpressions int32

    Number of unpaid views of a campaign had on that day.

    CurrencyCode string

    ISO 4217 currency code of the employer.

    Cost number

    Amount of the job's campaign budget that is already consumed.

    Applystarts integer

    Number of times the Apply button was clicked for a sponsored job campaign on a specific day.

    OrganicApplystarts integer

    Number of unpaid apply starts a campaign had on that day.

  • ]

Loading...

Was this page helpful?