Skip to content

Target settings: nova_share.advertising_target_settings ​

One row per keyword or product target of your account with its settings today, traffic or not.

At a glance ​

One rowseller × marketplace × ad_product × target_kind × target, current state
Holdsevery target, with its campaign and ad group, its state, its bid and the bid in force. A live keyword that never serves is a row
Not herethe traffic of a target: advertising (SP) and advertising_targets (SB, SD). What you block: advertising_negative_targets. The campaign's settings: advertising_campaign_settings
Per ad productSponsored Products and Sponsored Display: every enabled or paused target, with every setting. Sponsored Brands and SB video: every target. A keyword carries its state and bid, a product target neither
Historynone: the current state. settings_as_of is the day of the latest read that carried the row
Refreshhourly. The Sponsored Products and Sponsored Display settings change once a day, with Amazon's lists
Movesa target leaves the table when Amazon stops listing it: an archived SP or SD target, an SB target absent for 30 days. A re-bid or paused target reads its new setting
Signbids in the marketplace's currency (marketplace_currency), never converted
Sync keyseller_partner_id, marketplace_id, ad_product, target_kind, target_id

Sponsored Brands and SB video are one id space

A Sponsored Brands campaign can read sponsored_brands here and sponsored_brands_video on another table. Join the two together: ad_product IN ('sponsored_brands', 'sponsored_brands_video') on both sides, then target_kind and the target's id.

Columns ​

The target ​

ColumnMeaning
seller_partner_id, seller_name, org_keyYour account.
marketplace_id, marketplace_name, stock_regionThe marketplace of the ads profile.
ad_productsponsored_products, sponsored_brands, sponsored_brands_video or sponsored_display.
campaign_id, campaign_nameThe target's campaign (BIGINT) and its name today. The name is NULL when no campaign read carries it.
ad_group_id, ad_group_nameThe target's ad group (BIGINT) and its name today.
target_id, target_kindThe key with ad_product: the target's id (BIGINT) and keyword or product_target. target_id is advertising.keyword_id and advertising_targets.target_id.
settings_as_ofThe day of the latest read that carried the row. On SP and SD, the day of the account's latest list: an old day means stale settings.
channelSELLER or VENDOR: the Vendor Central targets are rows too, on their own account.

What it targets ​

ColumnMeaning
keyword_text, match_typeA keyword's text, and EXACT, PHRASE or BROAD. THEME on an SB theme target. NULL on a product target.
target_expression_typeProduct targets only. SP: MANUAL or AUTO. SB: TARGETING_EXPRESSION. SD: PRODUCT, PRODUCT_CATEGORY, PRODUCT_AUDIENCE, AUDIENCE or THEME, Amazon's own type.
target_expressionProduct targets only. SP and SD: Amazon's expression, in JSON. SB: the report's text, like asin="B0XXXXXXXX" or category="...".

The state and the bids ​

ColumnMeaning
target_stateENABLED or PAUSED on SP and SD. ARCHIVED or DELETED too on SB keywords. NULL on an SB product target.
target_serving_statusAmazon's reason the target serves or not. SP: TARGETING_CLAUSE_STATUS_LIVE, TARGETING_CLAUSE_PAUSED, AD_GROUP_PAUSED, CAMPAIGN_OUT_OF_BUDGET... It inherits the blocker above it: see advertising. SD: DELIVERING or NOT_DELIVERING. NULL on SB.
target_bidThe bid set on the target. NULL on an SP or SD target that sets none and inherits its ad group's. NULL on SB product targets.
ad_group_default_bidThe ad group's default bid. SP and SD.
target_effective_bidThe bid in force: target_bid, or the ad group's default when the target sets none. Never NULL on SP and SD. Equal to target_bid on SB keywords.
marketplace_currencyThe currency of the three bids.

Read it ​

sql
-- The enabled Sponsored Products targets with no impression in 14 days, and what they bid
SELECT s.campaign_name, s.ad_group_name, s.target_kind, s.keyword_text, s.match_type,
       s.target_effective_bid, s.marketplace_currency, s.target_serving_status
FROM nova_share.advertising_target_settings s
LEFT JOIN (SELECT keyword_id, target_kind, SUM(impressions) AS impressions
           FROM nova_share.advertising
           WHERE seller_partner_id = 'A1XXXXXXXXXXXX' AND ad_product = 'sponsored_products'
             AND metric_date >= CURDATE() - INTERVAL 14 DAY
           GROUP BY keyword_id, target_kind) a
  ON a.keyword_id = s.target_id AND a.target_kind = s.target_kind
WHERE s.seller_partner_id = 'A1XXXXXXXXXXXX' AND s.ad_product = 'sponsored_products'
  AND s.target_state = 'ENABLED' AND s.settings_as_of >= CURDATE() - INTERVAL 2 DAY
  AND COALESCE(a.impressions, 0) = 0
ORDER BY s.target_effective_bid DESC;
sql
-- One campaign's keywords and product targets, with the bid each one bids today
SELECT ad_group_name, target_kind, keyword_text, match_type, target_expression,
       target_state, target_bid, ad_group_default_bid, target_effective_bid
FROM nova_share.advertising_target_settings
WHERE seller_partner_id = 'A1XXXXXXXXXXXX' AND ad_product = 'sponsored_products'
  AND campaign_id = 123456789012345
ORDER BY ad_group_name, target_kind, keyword_text;
sql
-- The enabled Sponsored Products targets by serving status: what Amazon says blocks them
SELECT target_serving_status, COUNT(*) AS targets
FROM nova_share.advertising_target_settings
WHERE seller_partner_id = 'A1XXXXXXXXXXXX' AND ad_product = 'sponsored_products'
  AND target_state = 'ENABLED' AND settings_as_of >= CURDATE() - INTERVAL 2 DAY
GROUP BY target_serving_status ORDER BY targets DESC;
sql
-- The Sponsored Display targets that serve today, and what they bid
SELECT campaign_name, ad_group_name, target_expression_type, target_expression,
       target_bid, ad_group_default_bid, target_effective_bid, marketplace_currency
FROM nova_share.advertising_target_settings
WHERE seller_partner_id = 'A1XXXXXXXXXXXX' AND ad_product = 'sponsored_display'
  AND target_serving_status = 'DELIVERING' AND settings_as_of >= CURDATE() - INTERVAL 2 DAY
ORDER BY target_effective_bid DESC;

Sync ​

  • Pull the whole table and replace it: one row per target, current state.
  • dataset_freshness: the advertising_target_settings row, daily.