Shopify App Store ads

Four endpoints return the performance of your app's Shopify App Store ads: an overview with KPIs, the funnel and one row per campaign, a daily or weekly trend, keyword performance, and the search terms that triggered your ads. They read the same figures as the Ads pages in Ranksy and the Ranksy MCP ads tools. A fifth endpoint lists the changes made to your campaigns and keywords between syncs.


Common behaviour

Permissions

All four endpoints, and changes, require the traffic.ads permission (App Store Ads), on the key and on the member who created it. See Permissions.

Revenue and ROAS also need the revenue.overview or revenue.earnings permission, on the key and on the member who created it. Without either one, the endpoints still answer, but Ranksy removes the revenue and roas fields everywhere in the response. Spend, CPC, CPI, and CAC are always returned. A member who can't see revenue figures in Ranksy can't read ad revenue through the API either.

A key created before permissions also needs the metrics:read scope for revenue and ROAS. See Older keys without metrics:read.

Shared query parameters

  • Name
    start_date
    Type
    string
    Description

    YYYY-MM-DD. First day of the period, inclusive. Default: 29 days before end_date, so that the period is 30 days long.

  • Name
    end_date
    Type
    string
    Description

    YYYY-MM-DD. Last day of the period, inclusive. Must be on or after start_date. Default: yesterday, because ads data arrives as whole days. If you send only a start_date that is later than yesterday, end_date defaults to start_date.

  • Name
    campaign
    Type
    string
    Description

    Narrows the response to one campaign of the app. Pass the Shopify campaign id or the exact campaign name; the name match ignores case. Ranksy tries the id first, then the name. A campaign that the app does not have returns 404 resource_not_found with param: "campaign". With campaign set, ad_type is ignored, and archived campaigns are included.

  • Name
    ad_type
    Type
    string
    Description

    Narrows the response to one ad type: search, category, or homepage. Campaigns from CSV uploads have no ad type and count as search. Any other value returns 422.

Without campaign, archived campaigns are left out of every figure. The overview reports what they spent in hidden_archived.

Response header

Each of the four endpoints returns a single object. It starts with the same four fields, followed by the fields of the endpoint (changes has its own parameters and returns a paginated list):

  • Name
    object
    Type
    string
    Description

    shopify_ads_overview, shopify_ads_trend, shopify_ads_keywords, or shopify_ads_search_terms.

  • Name
    period
    Type
    object
    Description

    The period that was read: start_date and end_date, YYYY-MM-DD, after defaults.

  • Name
    campaign
    Type
    object
    Description

    The campaign the response is narrowed to: id (Ranksy campaign id), shopify_campaign_id, and name. null without campaign.

  • Name
    ad_type
    Type
    string
    Description

    The ad_type filter that was applied, or null. Always null when campaign is set.

Units

Money values (spend, cpc, cpi, cac, bid, daily_budget, revenue) are in the currency of your Shopify Partners ads account, rounded to two decimals. Rates (ctr, install_rate, paid_rate, share_of_spend) are percentages: 2.5 means 2.5%. roas is revenue divided by spend: 1.6 means 1.60 of revenue per 1.00 spent. avg_position is the average ad position, weighted by impressions, or null when the data has no positions.


GET/api/v1/apps/:app/shopify-ads/overview

Overview

Returns the KPIs of the period, the funnel from impressions to paying customers, and one row per campaign. Campaigns without activity in the period are included with zeros, so a paused campaign stays visible. Campaign rows are sorted by spend, highest first.

With compare=true, the response also has the previous period of the same length, which ends the day before start_date: the KPIs in kpis.previous, the change of each funnel step, and previous on each campaign row.

Path parameter

  • Name
    app
    Type
    string
    Description

    The team app's ULID, e.g. 01JN4HKQX0000000000000000.

Query parameters

The shared parameters, plus:

  • Name
    compare
    Type
    boolean
    Description

    Adds the previous period. Accepts true/false/1/0/yes/no. Default false.

Permission

traffic.ads. Revenue and ROAS also need revenue.overview or revenue.earnings, and on older keys the metrics:read scope.

Request

GET
/api/v1/apps/:app/shopify-ads/overview
curl -G https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/shopify-ads/overview \
  -H "Authorization: Bearer rk_live_..." \
  -d compare=true

Response

{
  "object": "shopify_ads_overview",
  "period": { "start_date": "2026-09-19", "end_date": "2026-10-18" },
  "campaign": null,
  "ad_type": null,
  "data_range": { "start": "2026-03-02", "end": "2026-10-18" },
  "kpis": {
    "current": {
      "impressions": 48210,
      "clicks": 1205,
      "installs": 142,
      "spend": 1820.5,
      "customers": 31,
      "revenue": 2945.0,
      "ctr": 2.5,
      "install_rate": 11.78,
      "cpc": 1.51,
      "cpi": 12.82,
      "roas": 1.62,
      "avg_position": 3.4
    },
    "previous": {
      "impressions": 41980,
      "clicks": 1130,
      "installs": 118,
      "spend": 1690.2,
      "customers": 30,
      "revenue": 2610.0,
      "ctr": 2.69,
      "install_rate": 10.44,
      "cpc": 1.5,
      "cpi": 14.32,
      "roas": 1.54,
      "avg_position": 3.7
    }
  },
  "funnel": {
    "stages": [
      { "key": "impressions", "label": "Impressions", "count": 48210 },
      { "key": "clicks", "label": "Clicks", "count": 1205 },
      { "key": "installs", "label": "Installs", "count": 142 },
      { "key": "customers", "label": "Paying customers", "count": 31 }
    ],
    "steps": [
      {
        "key": "ctr",
        "label": "CTR",
        "from": "impressions",
        "to": "clicks",
        "base": 48210,
        "rate": 2.5,
        "little_data": false,
        "previous_rate": 2.69,
        "delta_points": -0.19
      },
      {
        "key": "install_rate",
        "label": "Install rate",
        "from": "clicks",
        "to": "installs",
        "base": 1205,
        "rate": 11.78,
        "little_data": false,
        "previous_rate": 10.44,
        "delta_points": 1.34
      },
      {
        "key": "paid_rate",
        "label": "Paid rate",
        "from": "installs",
        "to": "customers",
        "base": 142,
        "rate": 21.83,
        "little_data": false,
        "previous_rate": 25.42,
        "delta_points": -3.59
      }
    ],
    "stage_costs": { "cpc": 1.51, "cpi": 12.82, "cac": 58.73 },
    "previous_stage_costs": { "cpc": 1.5, "cpi": 14.32, "cac": 56.34 },
    "weakest_step": null
  },
  "campaigns": [
    {
      "id": 412,
      "shopify_campaign_id": "9876543",
      "name": "Search - core keywords",
      "ad_type": "search",
      "subsurface": null,
      "status": "active",
      "is_archived": false,
      "daily_budget": 60.0,
      "bid": 1.2,
      "avg_daily_spend": 50.01,
      "budget_pacing": 0.8335,
      "share_of_spend": 82.4,
      "spend": 1500.3,
      "impressions": 40100,
      "clicks": 1010,
      "installs": 126,
      "customers": 29,
      "ctr": 2.52,
      "install_rate": 12.48,
      "paid_rate": 23.02,
      "cpc": 1.49,
      "cpi": 11.91,
      "cac": 51.73,
      "avg_position": 3.1,
      "revenue": 2700.0,
      "roas": 1.8,
      "biggest_leak": null,
      "previous": { "spend": 1402.1, "installs": 104, "cpi": 13.48 }
    },
    {
      "id": 415,
      "shopify_campaign_id": "9876551",
      "name": "Category - Marketing",
      "ad_type": "category",
      "subsurface": null,
      "status": "active",
      "is_archived": false,
      "daily_budget": 15.0,
      "bid": 0.8,
      "avg_daily_spend": 10.67,
      "budget_pacing": 0.7113,
      "share_of_spend": 17.6,
      "spend": 320.2,
      "impressions": 8110,
      "clicks": 195,
      "installs": 16,
      "customers": 2,
      "ctr": 2.4,
      "install_rate": 8.21,
      "paid_rate": 12.5,
      "cpc": 1.64,
      "cpi": 20.01,
      "cac": 160.1,
      "avg_position": 5.1,
      "revenue": 245.0,
      "roas": 0.77,
      "biggest_leak": {
        "step": "paid_rate",
        "label": "Paid rate",
        "ratio": 0.57,
        "rate": 12.5,
        "account_rate": 21.83,
        "hint": "Installs do not pay"
      },
      "previous": { "spend": 288.1, "installs": 14, "cpi": 20.58 }
    }
  ],
  "hidden_archived": null,
  "excluded_csv_reports": []
}

Overview fields

  • Name
    data_range
    Type
    object
    Description

    start and end, the first and last day of any ads data the app has, whatever the period and filters. null when the app has no ads data.

  • Name
    kpis.current
    Type
    object
    Description

    Totals of the period: impressions, clicks, installs, spend, customers (paying customers), revenue, ctr, install_rate, cpc, cpi, roas, and avg_position. A rate or cost without volume is 0, for example cpi when there are no installs.

  • Name
    kpis.previous
    Type
    object
    Description

    The same totals for the previous period. null without compare=true.

  • Name
    funnel.stages
    Type
    array
    Description

    The four funnel stages, impressions, clicks, installs, and customers, each with key, label, and count.

  • Name
    funnel.steps
    Type
    array
    Description

    The three steps between the stages: ctr (impressions to clicks), install_rate (clicks to installs), and paid_rate (installs to paying customers). Each has key, label, from, to, base (the count of the from stage), and rate, the percentage, or null when base is 0. little_data is true when base is too small for the rate to mean much: under 200 impressions, 20 clicks, or 10 installs. With compare=true, each step also has previous_rate and delta_points, the change in percentage points.

  • Name
    funnel.stage_costs
    Type
    object
    Description

    cpc, cpi, and cac: spend per click, per install, and per paying customer. Each is null when its stage count is 0.

  • Name
    funnel.previous_stage_costs
    Type
    object
    Description

    The same costs for the previous period. null without compare=true.

  • Name
    funnel.weakest_step
    Type
    object
    Description

    With compare=true: the step whose rate fell furthest below its rate in the previous period, when it is below 85% of it. Same shape as biggest_leak, with the previous period's rate in account_rate. null without compare=true, or when no step fell that far.

  • Name
    campaigns
    Type
    array
    Description

    One row per campaign. See Campaign row.

  • Name
    hidden_archived
    Type
    object
    Description

    count and spend of the archived campaigns that had activity in the period and are left out of the figures. null when there are none, and always null with campaign set.

  • Name
    excluded_csv_reports
    Type
    array
    Description

    Uploaded CSV reports that overlap the period but do not fit inside it, so their figures are left out: id, ad_name, start_date, and end_date of each. A CSV report has one total for its whole date range, so Ranksy cannot split it by day. Pick a period that covers the full report to include it.

  • Name
    message
    Type
    string
    Description

    Only when the period has no impressions and no spend, for example "No ads activity in this period. Ads data covers 2026-03-02 to 2026-10-18.".

Campaign row

  • Name
    id
    Type
    integer
    Description

    Ranksy campaign id.

  • Name
    shopify_campaign_id
    Type
    string
    Description

    The Shopify campaign id. Pass it as campaign to narrow any of the four endpoints to this campaign.

  • Name
    name
    Type
    string
    Description

    Campaign name.

  • Name
    ad_type
    Type
    string
    Description

    search, category, or homepage.

  • Name
    subsurface
    Type
    string
    Description

    The placement within the ad type, as Shopify reports it, or null.

  • Name
    status
    Type
    string
    Description

    The campaign status as last synced from Shopify, for example active.

  • Name
    is_archived
    Type
    boolean
    Description

    Whether the campaign is archived. Archived campaigns appear only with campaign set.

  • Name
    daily_budget
    Type
    number
    Description

    The campaign's daily budget, or null.

  • Name
    bid
    Type
    number
    Description

    The campaign's bid, or null.

  • Name
    avg_daily_spend
    Type
    number
    Description

    Synced spend divided by the days the campaign had synced data in the period. null when it had none.

  • Name
    budget_pacing
    Type
    number
    Description

    avg_daily_spend divided by daily_budget, as a ratio: 0.83 means the campaign spends 83% of its budget per day. null without both values.

  • Name
    share_of_spend
    Type
    number
    Description

    The campaign's share of the period's spend, in percent.

  • Name
    spend, impressions, clicks, installs, customers
    Type
    number
    Description

    Totals of the period.

  • Name
    ctr, install_rate, paid_rate
    Type
    number
    Description

    The rate of each funnel step, in percent, or null when the step's base is 0.

  • Name
    cpc, cpi, cac
    Type
    number
    Description

    Spend per click, per install, and per paying customer, or null when the count is 0.

  • Name
    avg_position
    Type
    number
    Description

    Average ad position, or null.

  • Name
    revenue, roas
    Type
    number
    Description

    Revenue attributed to the campaign, and revenue divided by spend. Only with revenue.overview or revenue.earnings, and on older keys metrics:read.

  • Name
    biggest_leak
    Type
    object
    Description

    The funnel step where the campaign falls furthest below the totals of all campaigns, when it is below 85% of the total rate: step, label, ratio (campaign rate divided by total rate), rate, account_rate, and hint. Only steps with enough volume count (see little_data above). null when no step is that far below.

  • Name
    previous
    Type
    object
    Description

    With compare=true: spend, installs, and cpi of the campaign in the previous period. Otherwise null.


GET/api/v1/apps/:app/shopify-ads/trend

Trend

Returns performance over time, one point per day or per week. A week is labelled with the date of its Monday. Days with no synced ads data are not in the series, so fill the gaps with zeros if you chart it.

Path parameter

  • Name
    app
    Type
    string
    Description

    The team app's ULID.

Query parameters

The shared parameters, plus:

  • Name
    grouping
    Type
    string
    Description

    day or week. Default: day, or week when the period is longer than 120 days. Any other value returns 422.

Permission

traffic.ads. Revenue and ROAS also need revenue.overview or revenue.earnings, and on older keys the metrics:read scope.

Fields

  • Name
    grouping
    Type
    string
    Description

    The grouping that was applied, after the default.

  • Name
    series
    Type
    array
    Description

    One point per day or week, oldest first: date (YYYY-MM-DD), spend, impressions, clicks, installs, ctr (null without impressions), cpi (null without installs), avg_position, revenue, and roas.

Request

GET
/api/v1/apps/:app/shopify-ads/trend
curl -G https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/shopify-ads/trend \
  -H "Authorization: Bearer rk_live_..." \
  -d start_date=2026-10-16 \
  -d end_date=2026-10-18 \
  -d grouping=day

Response

{
  "object": "shopify_ads_trend",
  "period": { "start_date": "2026-10-16", "end_date": "2026-10-18" },
  "campaign": null,
  "ad_type": null,
  "grouping": "day",
  "series": [
    {
      "date": "2026-10-16",
      "spend": 61.2,
      "impressions": 1620,
      "clicks": 41,
      "installs": 5,
      "ctr": 2.53,
      "cpi": 12.24,
      "avg_position": 3.3,
      "revenue": 98.0,
      "roas": 1.6
    },
    {
      "date": "2026-10-17",
      "spend": 58.75,
      "impressions": 1544,
      "clicks": 38,
      "installs": 0,
      "ctr": 2.46,
      "cpi": null,
      "avg_position": 3.5,
      "revenue": 0.0,
      "roas": 0.0
    },
    {
      "date": "2026-10-18",
      "spend": 63.4,
      "impressions": 1702,
      "clicks": 44,
      "installs": 6,
      "ctr": 2.59,
      "cpi": 10.57,
      "avg_position": 3.2,
      "revenue": 120.0,
      "roas": 1.89
    }
  ]
}

GET/api/v1/apps/:app/shopify-ads/keywords

Keywords

Returns the performance of each keyword you bid on.

  • Without campaign (level: "app"): each keyword combined across all campaigns in scope.
  • With campaign (level: "campaign"): the keywords of that campaign, with bid, match type, status, the suggested bid range, and flags. Keywords that earned traffic in the period but are no longer in the campaign are included, with status: "removed".

Category and homepage campaigns have no keywords: with such a campaign, keywords is an empty list.

Path parameter

  • Name
    app
    Type
    string
    Description

    The team app's ULID.

Query parameters

The shared parameters, plus:

  • Name
    sort_by
    Type
    string
    Description

    spend (default), installs, or impressions, highest first, or cpi, lowest first, with keywords that have no installs last. Ties are sorted by spend. Any other value returns 422.

  • Name
    limit
    Type
    integer
    Description

    The most keywords to return, 1 to 200. Default 50.

Permission

traffic.ads. Revenue and ROAS (app level only) also need revenue.overview or revenue.earnings, and on older keys the metrics:read scope.

Fields

  • Name
    level
    Type
    string
    Description

    app or campaign.

  • Name
    sort_by
    Type
    string
    Description

    The sort that was applied.

  • Name
    total_count
    Type
    integer
    Description

    The number of keywords before limit.

  • Name
    keywords
    Type
    array
    Description

    The keyword rows, sorted. See Keyword row.

Request

GET
/api/v1/apps/:app/shopify-ads/keywords
curl -G https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/shopify-ads/keywords \
  -H "Authorization: Bearer rk_live_..." \
  -d campaign=9876543 \
  -d sort_by=spend \
  -d limit=2

Response

{
  "object": "shopify_ads_keywords",
  "period": { "start_date": "2026-09-19", "end_date": "2026-10-18" },
  "campaign": {
    "id": 412,
    "shopify_campaign_id": "9876543",
    "name": "Search - core keywords"
  },
  "ad_type": null,
  "level": "campaign",
  "sort_by": "spend",
  "total_count": 37,
  "keywords": [
    {
      "keyword": "email marketing",
      "match_type": "exact",
      "status": "active",
      "in_campaign": true,
      "bid": 1.4,
      "suggested_bid_lower": 1.1,
      "suggested_bid_upper": 1.9,
      "bid_position": "within",
      "relevance_category": null,
      "impressions": 15400,
      "clicks": 402,
      "installs": 51,
      "spend": 588.2,
      "ctr": 2.61,
      "install_rate": 12.69,
      "cpc": 1.46,
      "cpi": 11.53,
      "avg_position": 2.8,
      "share_of_spend": 39.2,
      "flags": []
    },
    {
      "keyword": "newsletter app",
      "match_type": "exact",
      "status": "active",
      "in_campaign": true,
      "bid": 0.9,
      "suggested_bid_lower": 1.2,
      "suggested_bid_upper": 2.0,
      "bid_position": "below",
      "relevance_category": null,
      "impressions": 2300,
      "clicks": 48,
      "installs": 0,
      "spend": 61.4,
      "ctr": 2.09,
      "install_rate": 0.0,
      "cpc": 1.28,
      "cpi": null,
      "avg_position": 4.6,
      "share_of_spend": 4.1,
      "flags": ["spend_no_installs", "bid_below_suggested_range"]
    }
  ]
}

Keyword row

Both levels return keyword, match_type (null at app level when unknown), impressions, clicks, installs, spend, ctr, install_rate, cpc (null without clicks), cpi (null without installs), avg_position (null at app level when the data has no positions), and flags.

App level adds:

  • Name
    customers
    Type
    integer
    Description

    Paying customers from the keyword.

  • Name
    avg_visibility
    Type
    number
    Description

    Average visibility of the keyword's ads.

  • Name
    unique_search_terms
    Type
    integer
    Description

    How many different searches the keyword matched.

  • Name
    revenue, roas
    Type
    number
    Description

    Only with revenue.overview or revenue.earnings, and on older keys metrics:read.

  • Name
    flags
    Type
    array
    Description

    spend_no_installs when the keyword spent and earned no install. Otherwise empty.

Campaign level adds:

  • Name
    status
    Type
    string
    Description

    The keyword status as last synced from Shopify, or removed when the keyword is no longer in the campaign.

  • Name
    in_campaign
    Type
    boolean
    Description

    Whether the keyword is still in the campaign.

  • Name
    bid
    Type
    number
    Description

    The keyword's bid, or null.

  • Name
    suggested_bid_lower, suggested_bid_upper
    Type
    number
    Description

    Shopify's suggested bid range for the keyword, or null.

  • Name
    bid_position
    Type
    string
    Description

    below, within, or above the suggested range. null without a bid and both ends of the range.

  • Name
    relevance_category
    Type
    string
    Description

    The relevance category that Shopify reports for the keyword, or null.

  • Name
    share_of_spend
    Type
    number
    Description

    The keyword's share of the campaign's keyword spend, in percent.

  • Name
    flags
    Type
    array
    Description

    Zero or more of: removed_from_campaign, spend_no_installs (spent, no install), no_impressions (active, but no impressions in the period), bid_below_suggested_range, and bid_above_suggested_range.

Campaign-level rows have no revenue or roas.


GET/api/v1/apps/:app/shopify-ads/search-terms

Search terms

Returns the searches that triggered your ads, sorted by spend, highest first. Each term has the keyword it matched and flags that compare it with the keywords you bid on.

  • Without campaign (level: "app"): Ranksy looks at the 500 terms with the most impressions across all campaigns in scope, then filters and sorts them. A term is not_a_keyword when no campaign of the app bids on it.
  • With campaign (level: "campaign"): the complete list of the campaign's terms. A term is not_a_keyword when that campaign does not bid on it. A term that matched more than one keyword or match type has one row for each.

Category and homepage campaigns have no search terms: with such a campaign, search_terms is an empty list.

Path parameter

  • Name
    app
    Type
    string
    Description

    The team app's ULID.

Query parameters

The shared parameters, plus:

  • Name
    flag
    Type
    string
    Description

    Returns only the terms that are not_a_keyword, that spent and earned no install (no_installs), or that earned at least one install (converting). Any other value returns 422.

  • Name
    limit
    Type
    integer
    Description

    The most terms to return, 1 to 100. Default 50.

Permission

traffic.ads.

Fields

  • Name
    level
    Type
    string
    Description

    app or campaign.

  • Name
    flag
    Type
    string
    Description

    The flag filter that was applied, or null.

  • Name
    total_count
    Type
    integer
    Description

    The number of matching terms before limit. At app level, at most 500.

  • Name
    search_terms
    Type
    array
    Description

    The term rows. Each has search_term, keyword, match_type (null at app level), impressions, clicks, installs, spend, ctr, install_rate, cpc (null without clicks), cpi (null without installs), avg_position, and three flags: not_a_keyword (you do not bid on the term itself), spending_no_installs (spent, no install), and converting_not_yet_keyword (earned installs and is not_a_keyword: a candidate to add as a keyword).

Request

GET
/api/v1/apps/:app/shopify-ads/search-terms
curl -G https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/shopify-ads/search-terms \
  -H "Authorization: Bearer rk_live_..." \
  -d limit=2

Response

{
  "object": "shopify_ads_search_terms",
  "period": { "start_date": "2026-09-19", "end_date": "2026-10-18" },
  "campaign": null,
  "ad_type": null,
  "level": "app",
  "flag": null,
  "total_count": 214,
  "search_terms": [
    {
      "search_term": "email marketing",
      "keyword": "email marketing",
      "match_type": null,
      "impressions": 9800,
      "clicks": 260,
      "installs": 35,
      "spend": 380.5,
      "ctr": 2.6531,
      "install_rate": 13.46,
      "cpc": 1.46,
      "cpi": 10.87,
      "avg_position": 2.6,
      "not_a_keyword": false,
      "spending_no_installs": false,
      "converting_not_yet_keyword": false
    },
    {
      "search_term": "abandoned cart email",
      "keyword": "email marketing",
      "match_type": null,
      "impressions": 1840,
      "clicks": 52,
      "installs": 4,
      "spend": 71.4,
      "ctr": 2.8261,
      "install_rate": 7.69,
      "cpc": 1.37,
      "cpi": 17.85,
      "avg_position": 3.9,
      "not_a_keyword": true,
      "spending_no_installs": false,
      "converting_not_yet_keyword": true
    }
  ]
}

GET/api/v1/apps/:app/shopify-ads/changes

Changes

Returns the change log of the app's ads, newest first: campaign settings (for example bid, status, daily budget, or targeting), keyword bids, status, and match type, and keywords and negative keywords that were added or removed. Shopify exposes only the current settings, so Ranksy records a change by comparing two syncs: it happened between previous_synced_at and observed_at. The log starts with the first ranksy ads sync; the first sync of a campaign only stores its baseline.

Unlike the four performance endpoints, the response is a paginated object: "list", with the applied filters echoed in metadata.filters.

Path parameter

  • Name
    app
    Type
    string
    Description

    The team app's ULID.

Query parameters

  • Name
    campaign
    Type
    string
    Description

    The Shopify campaign id (max 32 characters). Unlike the performance endpoints, names are not matched, and a campaign the app does not have returns an empty list, not 404.

  • Name
    subject_type
    Type
    string
    Description

    campaign, keyword, or negative_keyword. Any other value returns 422.

  • Name
    from
    Type
    string
    Description

    Date. Only changes observed on or after this day.

  • Name
    to
    Type
    string
    Description

    Date, on or after from. Only changes observed on or before this day.

  • Name
    page
    Type
    integer
    Description

    The page to return. Default 1.

  • Name
    per_page
    Type
    integer
    Description

    Rows per page. Default 50, maximum 100.

Permission

traffic.ads. Older keys need the ads:read scope.

Fields

Each entry in data has:

  • Name
    id
    Type
    integer
    Description

    Change id.

  • Name
    campaign_id, campaign_name
    Type
    string
    Description

    The Shopify campaign id and the name of the campaign the change belongs to.

  • Name
    subject_type
    Type
    string
    Description

    campaign, keyword, or negative_keyword.

  • Name
    subject_id
    Type
    string
    Description

    The Shopify id of the campaign, keyword, or negative keyword that changed.

  • Name
    label
    Type
    string
    Description

    The campaign name or the keyword text, for display.

  • Name
    event
    Type
    string
    Description

    created, updated, or removed.

  • Name
    field
    Type
    string
    Description

    The field that changed in an updated event, for example bid, status, daily_budget, or targeting. null for created and removed.

  • Name
    old_value, new_value
    Type
    string
    Description

    The value before and after the change, as a string: decimals with two places, booleans as true/false, dates and times in ISO 8601 UTC, and targeting as JSON. null when there is no value.

  • Name
    description
    Type
    string
    Description

    The change in plain language.

  • Name
    observed_at
    Type
    string
    Description

    When the sync that saw the change ran, ISO 8601 UTC.

  • Name
    previous_synced_at
    Type
    string
    Description

    When the previous value was last seen, ISO 8601 UTC. null for created events.

Request

GET
/api/v1/apps/:app/shopify-ads/changes
curl -G https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/shopify-ads/changes \
  -H "Authorization: Bearer rk_live_..." \
  -d subject_type=keyword \
  -d per_page=1

Response

{
  "object": "list",
  "url": "/api/v1/apps/01JN4HKQX0000000000000000/shopify-ads/changes",
  "page": 1,
  "per_page": 1,
  "total_count": 23,
  "has_more": true,
  "metadata": {
    "filters": { "campaign": null, "subject_type": "keyword", "from": null, "to": null }
  },
  "data": [
    {
      "id": 42,
      "campaign_id": "9876543",
      "campaign_name": "Search - core keywords",
      "subject_type": "keyword",
      "subject_id": "2378996",
      "label": "email marketing",
      "event": "updated",
      "field": "bid",
      "old_value": "1.20",
      "new_value": "1.40",
      "description": "Bid on \"email marketing\" 1.20 → 1.40",
      "observed_at": "2026-10-16T08:00:00Z",
      "previous_synced_at": "2026-10-15T08:00:00Z"
    }
  ]
}

Older keys without metrics:read

Revenue and ROAS need two things: the revenue.overview or revenue.earnings permission (on the key and on the member who created it), and, for a key created before permissions, the metrics:read scope. When either is missing, for example a key with traffic.ads and no revenue permission, or an older key with the ads:read scope and not metrics:read, the response has no revenue and no roas field, at any level: not in kpis, the campaign rows, the trend points, or the keyword rows. Every other field stays. For example, kpis.current of the overview becomes:

kpis.current without revenue and ROAS

{
  "impressions": 48210,
  "clicks": 1205,
  "installs": 142,
  "spend": 1820.5,
  "customers": 31,
  "ctr": 2.5,
  "install_rate": 11.78,
  "cpc": 1.51,
  "cpi": 12.82,
  "avg_position": 3.4
}

Errors

Beyond the universal 401, 402, 403, 422, and 429 (see Errors):

  • 403 insufficient_permissions: the key, or the member who created it, does not have traffic.ads, or an older key does not have the ads:read scope.
  • 404 resource_not_found: the app does not exist or is not tracked by your team, or the app has no campaign that matches campaign (param is campaign). On changes, an unknown campaign returns an empty list instead.
  • 422 validation_failed: a date that is not YYYY-MM-DD, an end_date before start_date, an unknown ad_type, grouping, sort_by, or flag, or a limit out of range. On changes: an unknown subject_type, a to before from, or a per_page over 100.

These endpoints do not return 409: they read the ads data stored in Ranksy, not the Shopify Partner API.