/experimental/retail-media/line-items/{line-item-id}
curl --request GET \
--url https://api.criteo.com/experimental/retail-media/line-items/{line-item-id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.criteo.com/experimental/retail-media/line-items/{line-item-id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.criteo.com/experimental/retail-media/line-items/{line-item-id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.criteo.com/experimental/retail-media/line-items/{line-item-id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.criteo.com/experimental/retail-media/line-items/{line-item-id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.criteo.com/experimental/retail-media/line-items/{line-item-id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.criteo.com/experimental/retail-media/line-items/{line-item-id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"attributes": {
"core": {
"budgetStatus": "Unknown",
"campaignId": "<string>",
"conquestingSettings": {
"conquestingAdStrategyEnabled": true,
"defensiveAdStrategyEnabled": true,
"isAdStrategyLocked": true,
"neutralAdStrategyEnabled": true
},
"effectiveFlightDates": {
"endDate": "2023-11-07T05:31:56Z",
"startDate": "2023-11-07T05:31:56Z"
},
"isPaused": true,
"lineItemId": "<string>",
"name": "<string>",
"onsiteDisplayDetails": {
"auctionDetails": {
"isDynamicMatch": true
},
"frequencyCapping": {
"cappingCount": 123,
"cappingDurationType": "Unknown"
}
},
"retailerId": "<string>",
"serveToOptOutUser": true,
"type": "Unknown"
},
"adContent": {
"creatives": {
"creatives": [
{
"approvalStatus": "Unknown",
"creative": {
"id": "<string>",
"modifiedAt": "2023-11-07T05:31:56Z"
},
"creativeProductCollections": [
{
"isMandatory": true,
"products": [
{
"approvalStatus": "Unknown",
"id": "<string>"
}
]
}
],
"creativePreviewCode": "<string>"
}
],
"mediaType": "Unknown"
},
"products": {
"displayProductDetails": [
{
"approvalStatus": "Unknown",
"productId": "<string>"
}
],
"productType": "Unknown",
"sponsoredProductDetails": [
{
"productId": "<string>",
"status": "Active"
}
]
}
},
"bidding": {
"cpm": {
"bidStrategy": "Standard",
"adaptiveBiddingSettings": {
"maxBid": 123
},
"standardBiddingSettings": {
"auctionBids": [
{
"bid": 123,
"pageType": "Unknown"
}
]
}
}
},
"targeting": {
"targets": [
{
"approvalStatus": "Unknown",
"bidMultiplier": 123,
"categoryTargetDetails": {
"categoryId": "<string>",
"includeChildren": true
},
"geographyTargetDetails": {
"geoLocationId": "<string>"
},
"manualKeywordTargetDetails": {
"keywordInput": "<string>",
"matchType": "Broad"
},
"negative": true,
"pageTypeTargetDetails": {
"pageType": "Unknown"
},
"targetType": "Unknown"
}
]
}
},
"id": "<string>",
"type": "<string>"
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"source": {},
"stackTrace": "<string>",
"title": "<string>",
"traceId": "<string>",
"traceIdentifier": "<string>",
"type": "unknown"
}
],
"warnings": [
{
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"source": {},
"stackTrace": "<string>",
"title": "<string>",
"traceId": "<string>",
"traceIdentifier": "<string>",
"type": "unknown"
}
]
}/experimental/retail-media/line-items/{line-item-id}
Retrieves a consolidated line item view from the line item domain services.
GET
/
experimental
/
retail-media
/
line-items
/
{line-item-id}
/experimental/retail-media/line-items/{line-item-id}
curl --request GET \
--url https://api.criteo.com/experimental/retail-media/line-items/{line-item-id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.criteo.com/experimental/retail-media/line-items/{line-item-id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.criteo.com/experimental/retail-media/line-items/{line-item-id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.criteo.com/experimental/retail-media/line-items/{line-item-id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.criteo.com/experimental/retail-media/line-items/{line-item-id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.criteo.com/experimental/retail-media/line-items/{line-item-id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.criteo.com/experimental/retail-media/line-items/{line-item-id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"attributes": {
"core": {
"budgetStatus": "Unknown",
"campaignId": "<string>",
"conquestingSettings": {
"conquestingAdStrategyEnabled": true,
"defensiveAdStrategyEnabled": true,
"isAdStrategyLocked": true,
"neutralAdStrategyEnabled": true
},
"effectiveFlightDates": {
"endDate": "2023-11-07T05:31:56Z",
"startDate": "2023-11-07T05:31:56Z"
},
"isPaused": true,
"lineItemId": "<string>",
"name": "<string>",
"onsiteDisplayDetails": {
"auctionDetails": {
"isDynamicMatch": true
},
"frequencyCapping": {
"cappingCount": 123,
"cappingDurationType": "Unknown"
}
},
"retailerId": "<string>",
"serveToOptOutUser": true,
"type": "Unknown"
},
"adContent": {
"creatives": {
"creatives": [
{
"approvalStatus": "Unknown",
"creative": {
"id": "<string>",
"modifiedAt": "2023-11-07T05:31:56Z"
},
"creativeProductCollections": [
{
"isMandatory": true,
"products": [
{
"approvalStatus": "Unknown",
"id": "<string>"
}
]
}
],
"creativePreviewCode": "<string>"
}
],
"mediaType": "Unknown"
},
"products": {
"displayProductDetails": [
{
"approvalStatus": "Unknown",
"productId": "<string>"
}
],
"productType": "Unknown",
"sponsoredProductDetails": [
{
"productId": "<string>",
"status": "Active"
}
]
}
},
"bidding": {
"cpm": {
"bidStrategy": "Standard",
"adaptiveBiddingSettings": {
"maxBid": 123
},
"standardBiddingSettings": {
"auctionBids": [
{
"bid": 123,
"pageType": "Unknown"
}
]
}
}
},
"targeting": {
"targets": [
{
"approvalStatus": "Unknown",
"bidMultiplier": 123,
"categoryTargetDetails": {
"categoryId": "<string>",
"includeChildren": true
},
"geographyTargetDetails": {
"geoLocationId": "<string>"
},
"manualKeywordTargetDetails": {
"keywordInput": "<string>",
"matchType": "Broad"
},
"negative": true,
"pageTypeTargetDetails": {
"pageType": "Unknown"
},
"targetType": "Unknown"
}
]
}
},
"id": "<string>",
"type": "<string>"
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"source": {},
"stackTrace": "<string>",
"title": "<string>",
"traceId": "<string>",
"traceIdentifier": "<string>",
"type": "unknown"
}
],
"warnings": [
{
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"source": {},
"stackTrace": "<string>",
"title": "<string>",
"traceId": "<string>",
"traceIdentifier": "<string>",
"type": "unknown"
}
]
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
FlowAuthorization Code
- Authorization URL
- https://api.criteo.com/oauth2
- Token URL
- https://api.criteo.com/oauth2/token
FlowClient Credentials
- Token URL
- https://api.criteo.com/oauth2/token
Scopes1
RetailMedia_Campaign_Read
Grants Read access to the capabilities from the Campaign domain, for RetailMedia applications
Path Parameters
The line item identifier.
Response
200 - application/json
Success
A top-level object that encapsulates a Criteo API response for a single entity.
Was this page helpful?