In the new API the currency field is a required parameter in the request body. In the old MAPI the field was optional - "If not set, the user's preference setting will be used". How do I get the "user's preference setting" via new API? I want to preserve the currency that they have been use before migration.
Posted by Amichy 3 days ago
Morning! I'm trying to migrate the old API (https://api.criteo.com/marketing/v1/statistics) to the new one (https://api.criteo.com/2021-01/statistics/report) but I'm having some issues with the metrics. Previously I had some of them that seems are currently splitted, for example: I had SalesPC, but now I see that we have many of them (SalesPc30d,SalesAllPc30d). Same happens with ConversionRate and RevenueGeneratedPc, but I don't know which one exactly is from the new list for each one. I've tried each one, but I don't get the same value I got with the old API. Can anyone help me? Thanks in advance!
Posted by Alberto García 3 days ago
Hello! I get data from https://api.criteo.com/marketing/v1/budgets , all ok, data are. Then I try to get data from https://api.criteo.com/2021-01/marketing-solutions/ad-sets/adSetId, https://api.criteo.com/2021-01/marketing-solutions/ad-sets/search, https://api.criteo.com/2021-01/marketing-solutions/ad-sets. but return empty response, data = [] or data = null. How can I get data from budget for new version API (2021-01)?
Posted by Nina Tokareva 7 days ago
Hello, I am a developer who provides one system to multiple companies. Until now, the Criteo API used an access token (client_id, secret) associated with the advertiser to call the API. I don't have my own Criteo ad account, so I haven't tried the new authentication yet. However, from reading references and guides, I believe that the new Criteo API uses only the APP's own access token (client_id,secret) to call the API. What happens when one APP is authorized to connect to several different companies' ad accounts? For example, if company A asks the APP to make some kind of request with the ID of an ad account owned by company B, won't it be executed? I'm very curious because if it does, it's a very serious problem for my system. Thank you.
Posted by Ysuke Aruga 9 days ago
Hello! I have generated the new URL for Application. When I try to open this URL I get the error: "Empty portfolio". Then I click to "Consent dashboard" and move to https://consent.criteo.com/. Then I choose "Marketing Solutions" and move to https://marketing.criteo.com/campaigns/dashboard/ad-sets. I have the empty list and when I try to type text and save it - nothing happens. How do I resolve these two problems? Help me please.
Posted by Nina Tokareva 10 days ago
Hello, I am trying to retrieve a data report from the statistics endpoint daily, and i am often returned a 500 response. My params are not that demanding (2 dimensions, 13 metrics, one day) and it appears to work sometimes, so I am a bit confused about it. Here is the request: url : "http://api.criteo.com/2020-10/statistics/report" headers: { "Authorization": "Bearer ACCESS_TOKEN", "Content-Type": "application/*+json", "Accept": "application/json" } params: { "currency": "EUR", "format": "JSON", "metrics": [ "Clicks", "Displays", "AdvertiserCost", "SalesPc30d", "SalesAllPc30d", "SalesPv24h", "SalesPc30dPv24h", "RevenueGeneratedPc30d", "RevenueGeneratedPv24h", "RevenueGeneratedPc30dPv24h", "ExposedUsers", "Audience", "Reach" ], "dimensions": ["AdvertiserId", "CategoryId", "Advertiser", "Category"], "startDate": "2021-02-02", "endDate": "2021-02-02" }
Posted by Giovanni Dall'ava 16 days ago
Hello, 1. Where's normal oauth flow? Why do you need to have this insane "send auth link from dashboard" thing? Can't you be a normal tech company and implement standards such as oauth authentication? 2. Your api is GA just recently and you are deprecating old api in ONE MONTH. What kind of responsible company does that?
Posted by Josh Smith about a month ago
We got API ERROR from yesterday we have used criteo report api but from yesterday we got api error " Max retries exceeded with url: /marketing/v1/portfolio (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f1cc16127f0>: Failed to establish a new connection: [Errno -2] Name or service not known',)) " "Name or service not known" -> your api URL deprecated?
Posted by seongmin kim about a month ago
Hello, I set up Criteo tags through Google Tag Manager. Currently they all work but I have two problems: - Conversion Tag: see at the end of the code there is an "@" that should be removed, otherwise we don't have a match with the feed IDs. I would need to know how to remove "@" from the product code from the transaction. - Listing Page Data layer: what needs to be done to update the data layer of the category pages to add the "code" variable that does not appear? * If you need attachments I can send them
Posted by Angel about a month ago
We are noticing a lot of failures in reporting on the Statistics v1 API It seems that the endpoint https://api.criteo.com/marketing/v1/statistics is returning a 500 error. From the changelog we see that the deprecation of statistics v1 won’t happen before April 2021. https://developers.criteo.com/marketing-solutions/changelog/upgrading-to-statistics-v2 Is this issue currently being addressed? Please let us know soon. Sample cURL request - curl -X POST --data '{"reportType":"TransactionID","advertiserIds”:”xxx”,”endDate":"2021-01-13","format":"Json","metrics":["Clicks","Displays","AdvertiserCost","SalesPc","SameSalesPc","SalesPcNd","SalesPv","SalesPvNd","SalesPcPv","SalesAllPc","RevenueGeneratedPc","RevenueGeneratedPv","RevenueGeneratedPcPv","RevenueGeneratedPcNd","RevenueGeneratedPvNd","ExposedUsers","OverallCompetitionWin","Audience","Reach","AverageCart","ClickThroughRate","ConversionRate","ConversionRatePv","ECos","ECosPv","ECosPcPv","CostPerOrder","CostPerOrderPv","CostPerOrderPcPv","ECpc","ECpm","ReturnOnAdvertisingSpending","AdvertiserValue","CostOfAdvertiserValue"],"startDate":"2021-01-12","dimensions":["CampaignId","Category","Day"]}' -H 'Authorization: Bearer xxx’ -H 'Content-Type: application/json' -H 'Accept: application/octet-stream' -A 'Jersey/2.31' 'https://api.criteo.com/marketing/v1/statistics' Response- HTTP/2 500 cache-control: private content-length: 36 content-type: text/html server: Kestrel x-aspnet-version: 4.0.30319 date: Wed, 13 Jan 2021 16:46:54 GMT {"Message":"An error has occurred."}
Posted by Fivetran Developers about a month ago
Hi, We are seeing a mismatch when comparing the UI vs the API. We have tried changing time zone and adding the flag 'ignoreXDevice' but we're still getting the same numbers from the API. We are using the old API, is the UI using the new and could that be the reason for the mismatch? Thanks!
Posted by andreas 2 months ago
We are noticing a lot of failures in reporting on the Statistics APIs. It seems that the endpoint https://api.criteo.com/v1/statistics is returning a 404. The new beta endpoint https://apigateway.criteo.com/preview/statistics/report does not recognize "CampaignId" as a valid dimension. Is this issue currently being addressed? Is there some other endpoint we should be using? Are endpoints going to be sunsetted in the future without notice?
Posted by Andy Parkerson 3 months ago