Skip to main content

Campaign Metrics

This section provides detailed information about campaign metrics report in Retail Media.

Overview

Campaign metrics provide insights into the performance of your retail media campaigns. These metrics help you track and analyze the effectiveness of your advertising campaigns across various dimensions.

API Endpoint

Method: GET

URL: https://<PA_RM_END_POINT>/retail-media/supplier/{supplierId}/retailers/{retailerId}/campaign-metrics

info

Please refer to the Supplier API documentation for detailed instructions on how to retrieve the supplierId and Retailer API for retailer.

Request Header

NameValue
Content-Typeapplication/json
AuthorizationBearer ACCESS_TOKEN
info

Please refer to the Authentication API documentation for bearer token.

Request Parameters

ParameterTypeDescription
retailerIdstringGet the retailer ID from the Retailer API
supplierIdstringGet the supplier ID from the Supplier API

Request Query Parameters

ParameterTypeDescription
fromDatestringStart date for the report (YYYY-MM-DD).
toDatestringEnd date for the report (YYYY-MM-DD).
pageintegerThe page number of the campaign list. Defaults to 1 if not specified.
limitintegerThe number of campaigns to return per page. Defaults to 10 but can be set as needed up to a maximum of 100.

Response Payload

Success Response

  • Status Code: 200 OK
  • Payload: Returns list of campaigns with the metrics in JSON format
{
"status": "Success",
"message": "Data retrieved successfully",
"errorCode": "",
"data": [
{
"id": "96fe9637-6704-f011-acff-06be30a1c1a7",
"name": "Fixed HERO",
"startDate": "2025-03-19T02:09:32",
"totalBudget": 0.00,
"dailyCap": 0.00,
"spentCredits": 0.00,
"sponsoredUnit": 0,
"sponsoredRevenue": 0,
"dailySpentCredits": 0.00,
"isRunning": true,
"hasActiveAdSet": false,
"campaignStatus": "Paused",
"remainingBudget": 0.00,
"attributedClicks": 0,
"clicks": 0,
"impressions": 0,
"salesCount": 0,
"salesValue": 0,
"spent": 0,
"roas": 0,
"avgCTR": 0,
"avgCPC": 0,
"avgCOS": 0,
"avgCPM": 0
}
],
"pagination": {
"totalItems": 56,
"totalPages": 1,
"currentPage": 1,
"pageSize": 100,
"hasPreviousPage": false,
"hasNextPage": false
},
"metadata": {
"requestId": "3815d57c-f68e-4ba4-a370-279b52c7ddf5",
"timestamp": "2025-04-04T03:33:47.7496744Z"
}
}

Available Metrics

The campaign metrics API provides comprehensive data about your campaigns, including performance indicators and financial metrics. Here's a detailed breakdown of the available metrics:

MetricDescriptionType
idUnique identifier for the campaignstring
nameName of the campaignstring
startDateCampaign start date and timedatetime
totalBudgetTotal budget allocated for the campaigndecimal
dailyCapDaily spending limit for the campaigndecimal
spentCreditsTotal credits spent on the campaigndecimal
sponsoredUnitUnit sales attributed to retail media ad sets.integer
sponsoredRevenueRetailer revenue attributed to sponsored ad campaigns.decimal
dailySpentCreditsCredits spent on the current daydecimal
isRunningCurrent running status of the campaignboolean
hasActiveAdSetWhether campaign has active ad setsboolean
campaignStatusHuman-readable campaign statusstring
remainingBudgetRemaining budget for the campaigndecimal
attributedClicksNumber of attributed clicksinteger
clicksClicks refer to the number of times sponsored product/content is clicked on by a viewer.integer
impressionsImpressions refer to the number of times your sponsored product/content is displayed to a viewer.integer
salesCountNumber of sales attributed to the campaigninteger
salesValueTotal value of salesdecimal
spentTotal Advertising Spend. This represents total spend across all CPC and CPM campaigns.decimal
roasReturn on ad spend (ROAS) measures how much revenue an ad campaign generates relative to the cost of the campaign.
Use ROAS to determine which campaigns generate the best return and which are less successful.
ROAS = Sponsored Revenue / Advertising Spend
decimal
avgCTRClick-through rate (CTR) is the ratio of clicks to impressions for an ad.
CTR = Number of clicks / Number of impressions
decimal
avgCPCCost-per-click (CPC) refers to how much each click on an ad costs.decimal
avgCOSCost of Sales (COS) measures the performance and success of pay-per-click (PPC) advertising campaigns related to Sponsored Products.
COS employs the same metrics as ROAS, but it is represented differently.
COS = Total Advertising Spend / Sponsored Revenue
decimal
avgCPMCost Per Mille (CPM) measures the cost per 1,000 impressions when any content/ad is displayed to a viewer.decimal

Understanding the Metrics

The campaign metrics provide insights into various aspects of your campaign performance:

Performance Metrics

  • Impressions: Total number of times your ads were displayed
  • Clicks: Total number of clicks received
  • CTR (Click-Through Rate): Ratio of clicks to impressions
  • CPC (Cost per Click): Average cost for each click
  • CPM (Cost per Mille): Cost per thousand impressions

Financial Metrics

  • Total Budget: Total allocated budget for the campaign
  • Spent: Total amount spent on the campaign
  • Remaining Budget: Available budget remaining
  • ROAS (Return on Ad Spend): Return on investment for the campaign

Sales Metrics

  • Sales Count: Number of sales attributed to the campaign
  • Sales Value: Total value of sales generated
  • COS (Cost of Sale): Cost per sale

Example Usage (JavaScript)

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "BEARER YOUR_ACCESS_TOKEN");

var urlencoded = new URLSearchParams();

var requestOptions = {
method: 'GET',
headers: myHeaders,
body: urlencoded,
redirect:'follow'
};

fetch("https://<PA_RM_END_POINT>/retail-media/supplier/{supplierId}/retailers/{retailerId}/campaign-metrics?page=1&limit=100", requestOptions)
.then(response => response.json())
.then(result=> {
console.log(result);
})
.catch(error => console.log('error', error));

Best Practices

  1. Regular Monitoring: Check campaign metrics daily to ensure optimal performance
  2. Budget Management: Monitor spent credits and remaining budget to prevent overspending
  3. Performance Analysis: Use CTR and CPC metrics to optimize ad performance
  4. ROAS Tracking: Monitor ROAS to ensure campaign profitability
  5. Daily Cap Monitoring: Keep track of daily spent credits against daily caps
  6. Status Tracking: Regularly check campaign status to ensure active campaigns are running as expected