Discard

Criteo Marketing Solutions API

Questions

Ask A Question
1
ANSWERED

API Individual Account Access Issues

Greetings, I'm with SegMetrics - a marketing analytics platform company. We have a few clients who use Criteo and we'd been using the MAPI connection method for quite some time. We've recently learned about the new API requirements and are working to update our systems to accommodate. I'm successfully generating the Consent URL, getting the right permissions, even getting the access_token as expected. The issue is that the access granted is to ALL Criteo accounts who've granted consent to our app. This is problematic for us as we'd expect some method to differentiate between them. Normally, we'd get access, pull a list of the Advertisers/Portfolios, the customer chooses which account(s) they need data for, and we pull in their campaigns, sets, ads, and performance so they can better track their ad spend and ROAS on that. But with no ability to isolate requests to a particular user/account, this is simply unworkable. I read on another post here that you're working on a more "normal" OAuth2 implementation that would generate an access_key that would scope all subsequent requests to that user/account. That sounds precisely like what we need. Do you have any ideas on what that may be available? I'm happy to try a beta version if necessary. Also, I was surprised to see that you're not using a refresh_token at all to generate updated access_tokens, but that may be part of the updated OAuth2 setup that you're working on. Right now, none of our mutual customers can get their Criteo data in to examine, so the sooner the better obviously. πŸ˜ƒ Thanks!

Posted by Bill Wheeler 24 days ago

0

API Response coming in a different language

Hi, this is regarding Criteo API Response not coming in the English language, even after passing the right language headers. Just wanted to confirm if this is an issue from criteo's end and if there is any way to localise the API response? Request Headers Content-Type:"application/json; charset=UTF-8", Accept-Charset:"utf-8, iso-8859-1;q=0.7", Accept-Language:"en-US,en;q=0.5", user-agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36"] Criteo Response Response received from Service:<200,η¬€ΰ¨€β€€β€€βˆ€ζ΄€ζ”€η€ζ„€ζ€ζ„€η€ζ„€βˆ€γ¨€β€€η¬€ΰ¨€β€€β€€β€€β€€βˆ€η€ζΌ€η€ζ„€ζ°€δ€€η€ζ”€ζ΄€ηŒ€δ„€ζŒ€ηˆ€ζΌ€ηŒ€ηŒ€δ„€ζ°€ζ°€ε€€ζ„€ζœ€ζ”€ηŒ€βˆ€γ¨€β€€γˆ€β°€ΰ¨€β€€β€€β€€β€€βˆ€ζŒ€η”€ηˆ€ηˆ€ζ”€ζΈ€η€ε€€ζ„€ζœ€ζ”€εŒ€ζ€€η¨€ζ”€βˆ€γ¨€β€€γˆ€β°€ΰ¨€β€€β€€β€€β€€βˆ€ζŒ€η”€ηˆ€ηˆ€ζ”€ζΈ€η€ε€€ζ„€ζœ€ζ”€δ€€ζΈ€ζ€ζ”€η €βˆ€γ¨€β€€γ€€β°€ΰ¨€β€€β€€β€€β€€βˆ€η€ζΌ€η€ζ„€ζ°€ε€€ζ„€ζœ€ζ”€ηŒ€βˆ€γ¨€β€€γ„€ΰ¨€β€€β€€η΄€β°€ΰ¨€β€€β€€βˆ€ζ€ζ„€η€ζ„€βˆ€γ¨€β€€ε¬€ΰ¨€β€€β€€β€€β€€η¬€ΰ¨€β€€β€€β€€β€€β€€β€€βˆ€ζ€€ζ€βˆ€γ¨€β€€βˆ€γœ€γœ€γŒ€γŒ€γ€γ˜€γœ€γ€€βˆ€β°€ΰ¨€β€€β€€β€€β€€β€€β€€βˆ€η€η€€η€€ζ”€βˆ€γ¨€β€€βˆ€εˆ€ζ”€η€ζ„€ζ€€ζ°€δ΄€ζ”€ζ€ζ€€ζ„€ε€€ηˆ€ζΌ€ζ΄€ζΌ€η€ζ”€ζ€ε€€ηˆ€ζΌ€ζ€η”€ζŒ€η€βˆ€β°€ΰ¨€β€€β€€β€€β€€β€€β€€βˆ€ζ„€η€η€ηˆ€ζ€€ζˆ€η”€η€ζ”€ηŒ€βˆ€γ¨€β€€η¬€ΰ¨€β€€β€€β€€β€€β€€β€€β€€β€€βˆ€ζˆ€ζ€€ζ€δΌ€η˜€ζ”€ηˆ€ηˆ€ζ€€ζ€ζ”€βˆ€γ¨€β€€γ€€βΈ€γ”€γ€€γ€€γ€€γ€€γ€€γ€€γ€€ΰ¨€β€€β€€β€€β€€β€€β€€η΄€ΰ¨€β€€β€€β€€β€€η΄€β°€ΰ¨€β€€β€€β€€β€€η¬€ΰ¨€β€€β€€β€€β€€β€€β€€βˆ€ζ€€ζ€βˆ€γ¨€β€€βˆ€γœ€γœ€γŒ€γŒ€γ€γ˜€γ˜€γœ€βˆ€β°€ΰ¨€β€€β€€β€€β€€β€€β€€βˆ€η€η€€η€€ζ”€βˆ€γ¨€β€€βˆ€εˆ€ζ”€η€ζ„€ζ€€ζ°€δ΄€ζ”€ζ€ζ€€ζ„€ε€€ηˆ€ζΌ€ζ΄€ζΌ€η€ζ”€ζ€ε€€ηˆ€ζΌ€ζ€η”€ζŒ€η€βˆ€β°€ΰ¨€β€€β€€β€€β€€β€€β€€βˆ€ζ„€η€η€ηˆ€ζ€€ζˆ€η”€η€ζ”€ηŒ€βˆ€γ¨€β€€η¬€ΰ¨€β€€β€€β€€β€€β€€β€€β€€β€€βˆ€ζˆ€ζ€€ζ€δΌ€η˜€ζ”€ηˆ€ηˆ€ζ€€ζ€ζ”€βˆ€γ¨€β€€γ€€βΈ€γ”€γ€€γ€€γ€€γ€€γ€€γ€€γ€€ΰ¨€β€€β€€β€€β€€β€€β€€η΄€ΰ¨€β€€β€€β€€β€€η΄€ΰ¨€β€€β€€ε΄€ΰ¨€η΄€,[date:"Mon, 02 Aug 2021 05:49:14 GMT", content-type:"application/json; charset=utf-16", server:"Kestrel", content-length:"874", access-control-expose-headers:"X-JWT-Token", link:"<https://api.criteo.com/preview/retail-media/line-items/193293755391266816/products?pageIndex=0&pageSize=2>; rel=first,<https://api.criteo.com/preview/retail-media/line-items/193293755391266816/products?pageIndex=0&pageSize=2>; rel=last", x-jwt-token:"Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6Ilg1YUQ1YmpiOWF3cUM1Z3ZXNTJidkRoRE1BTFJIOVRCZHh6SjloQnlvNU0iLCJ0eXAiOiJKV1QifQ.eyJleHAiOjE2Mjc5Njk3NTMsImlhdCI6MTYyNzg4MzM1MywiaXNzIjoiY3JpdGVvLWNlcmJlcnVzIiwiY3R4OmFwcGxpY2F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I6IiIsIkxhc3ROYW1lIjoiIn0sIk1hcHBlZEFjY291bnRJZGVudGlmaWVycyI6W3siRXh0ZXJuYWxJZCI6MTUzMTc1Nzk5OTkzNzEyNjQwLCJJbnRlcm5hbElkIjo3MjN9XX0sInN1YiI6InU6ZTphcGktcHJvZ3JhbS11c2VyQDRkOTBjZWIzMDdkNDRlNzM4ZDBmYmY0ODI1Mzk1ZjE2LmNvbSIsImFjdGl2ZSI6IlRydWUiLCJjdHg6b3JnYW5pemF0aW9uOmlkIjoiMTYyNiJ9.m9MpnUc_gqfLa2VQiApnd8-6lQJbl8suI7o0_I8utPSGQMn7_zXMqZy1l_QeiYfKZ8cMyM35HhqQzTiY7t75mec1xtaiGZgT6GCxS-EGKUZ_T0p1vglmTF7M6jRjv3Zb84Voehu4iMPjypRvwnla-LzIjfn4VtN4WbqoSYYNlTbiW1cGX0014Dj-pSOWPV0lilwGXm6qjbGBqAWQyBc2VS8sO74zLoDT5aye30HBXXChp3Bys3-gWF-Q5CvfQMCLDLN99X1sLMmjh5fHINexTjxJya6iJ9bPImVD1Wq6wi2GwMmS8iPT5TYr8WGjuvSHFmtu-HNqH49-TeStIl7CpQ", x-ratelimit-limit:"100", x-ratelimit-remaining:"99"]>

Posted by Ishank S about a month ago

1
ANSWERED

statistics/report returns two objects for the same list of dimensions

Hello! We execute a request to statistics report: curl -X POST --data '{ "advertiserIds":"<advertiser_id>", "endDate":"2021-07-25", "format":"Json", "currency":"EUR", "metrics":[ "AdvertiserCost", "SalesAllClientAttribution", "RevenueGeneratedAllClientAttribution" ], "startDate": "2021-07-01", "dimensions": [ "AdsetID", "Category", "Day" ]}' -H 'Authorization: Bearer <auth_token>' -H 'Content-Type: application/json' -H 'Accept: application/octet-stream' -A 'Jersey/2.31' 'https://api.criteo.com/2021- 01/statistics/report' And we've noticed that the report has two objects for the same list of dimensions. For example: { "AdsetId": "<adset_id>", "Adset": "<adset_name>", "CategoryId": "0", "Category": "", "Day": "2021-07-04", "Currency": "EUR", "AdvertiserCost": "1.6", "SalesAllClientAttribution": "0", "RevenueGeneratedAllClientAttribution": "0" }, { "AdsetId": "<adset_id>", "Adset": "<adset_name>", "CategoryId": "0", "Category": "", "Day": "2021-07-04", "Currency": "EUR", "AdvertiserCost": "90.0163", "SalesAllClientAttribution": "7", "RevenueGeneratedAllClientAttribution": "371.31" } Here, we have two objects with the same AdsetId, Adset, CategoryId, Day. But we have different values for AdvertiserCost, SalesAllClientAttribution and RevenueGeneratedAllClientAttribution. Why do we have more one object for requested dimensions? We cannot sum them, since the report contains averages (Average cart).

Posted by Nina about a month ago