Skip to main content

SPAPlacementResponse

The ads and pagination cursor FCC returns for a single requested placement.

placementstringrequired

The request placement id this response corresponds to.

Example: SEARCH
ads object[]required

The list of ads for this placement. FCC returns an empty array if no matching ads could be found.

  • Array [
  • positionintegerrequired

    The relative position of the ad in the response. This position begins with the offset of the ad request. Earlier positions indicate more relevant ads.

    skustringrequired

    The sku id (listing id) of the sponsored product ad.

    Example: 7109947_123
    product_idstringrequired

    The product id of the sponsored product ad.

    Example: 7109947
    product_group_idstring

    The product group id corresponding to the product ad.

    Example: 98745421
    tracking objectrequired

    The FCC Ad Manager tracking URLs for this ad. Contains the impression, view, and click URLs with placeholders for event-time substitution.

    impressionUrlstringrequired

    URL to fire on an impression. Replace [EVENTTIME] with epoch milliseconds before firing. see the Engagement Events API.

    Example: https://<tracker-domain>/v3/tr/impression?pl=...&iet=[EVENTTIME]
    viewUrlstringrequired

    URL to fire when the ad is viewable per publisher defined criteria. Replace [STARTTIME] with the view start epoch milliseconds and [ENDTIME] with the view end epoch milliseconds. see the Engagement Events API.

    Example: https://<tracker-domain>/v3/tr/view?pl=...&vst=[STARTTIME]&vet=[ENDTIME]
    clickUrlstringrequired

    URL to fire on a click. Replace [EVENTTIME] with epoch milliseconds before firing. see the Engagement Events API.

    Example: https://<tracker-domain>/v3/tr/click?pl=...&cet=[EVENTTIME]
  • ]
  • last_offsetintegerrequired

    Pagination cursor for the next request. To request the next page, increment the returned last_offset by 1 in the subsequent request.

    FCC returns -1 only when the request for the first page does not serve any ads. For all subsequent pages, if no new ads are found, last_offset remains at its previous value to indicate the end of the data stream.

    SPAPlacementResponse
    {
    "placement": "SEARCH",
    "ads": [
    {
    "position": 0,
    "sku": "7109947_123",
    "product_id": "7109947",
    "product_group_id": "98745421",
    "tracking": {
    "impressionUrl": "https://<tracker-domain>/v3/tr/impression?pl=...&iet=[EVENTTIME]",
    "viewUrl": "https://<tracker-domain>/v3/tr/view?pl=...&vst=[STARTTIME]&vet=[ENDTIME]",
    "clickUrl": "https://<tracker-domain>/v3/tr/click?pl=...&cet=[EVENTTIME]"
    }
    }
    ],
    "last_offset": 0
    }