GuidesAPI ReferenceChangelogDiscussions
GuidesAPI ReferenceChangelogLog In

Discussions

Ask a Question

403 error, access-control, when searching campaigns

When running this: -- start code -- # get all advertisers url = 'https://api.criteo.com/2022-10/advertisers/me' headers = { 'Authorization': 'Bearer ' + access_token, 'Accept': 'text/plain', 'Content-Type': 'application/*+json' } response = requests.get(url, headers=headers, data=payload) print(response) response.json() -- end code -- I get the following output: <Response [200]> {'data': [], 'errors': [], 'warnings': []} OK, so we have the correct access. When running this code to get campaigns: -- start code -- # get all campaigns url = 'https://api.criteo.com/2022-10/marketing-solutions/campaigns/search' payload={ "filters": {} } headers = { 'Authorization': 'Bearer ' + access_token, 'Accept': 'text/plain', 'Content-Type': 'application/*+json' } response = requests.get(url, headers=headers, data=payload) print(response) response.json() -- end code-- I get this out put: <Response [403]> {'data': None, 'warnings': [], 'errors': [{'traceIdentifier': '0HMM3BKOTTRGJ:00000001', 'type': 'access-control', 'code': 'insufficient-permissions', 'instance': '/v21q2/campaigns/search', 'title': 'Access control error', 'detail': None, 'source': None}]} We verified we have all read rights on Audiences, Analytics, Campaigns, Catalogs, and Creatives on the app we created. How can get the correct permissions? Or is there something else we are doing wrong? Our goal is to get campaign statistics per day (costs, clicks, impressions for example) Thanks in advance, Michael

Content Security Policy for scripts created by criteo scripts

Does Criteo script have ability to pass csp nonce so it will be used for scripts that created by https://static.criteo.net/js/ld/ld.js? Currently we have a problem, that this script https://sslwidget.criteo.com/event is created without csp nonce so it's blocked by CSP.

What are the rows in Analytics?

I want to withdraw metrics at Ads level, but there is not an endpoint for ads, and the lowest levelavailable seems to be Adsets. Therefore, I'm using the endpoint statistics/report in analytics to get information on Ads level, given that there is an AdId and Ad (name). But what are the rows exactly? If I receive a 115 rows response, for example, 28 of them have as AdId and empty string, other 28 of them have -1 as AdId and then number also repeated 28 times, then there are just a few unique values. What is the api actually returning me on rows? It doesn't seem to be Ads, then what is it? Thank you.

"ConnectTimeoutError" when trying to connect to "rm-api.criteo.com/retailmedia/oauth2/token"

Hi, hope you have a great week. Please, could you help with the question about the Criteo Retail Media API? We used Criteo Retail Media API, but now we are getting "ConnectTimeoutError" when trying to connect to "rm-api.criteo.com/retailmedia/oauth2/token". We also see that the Swagger UI is currently not available: https://rm-api.criteo.com/retailmedia/swagger/ui/index#!/Authentication/OAuth2TokenPost and documentation is also unavailable: https://support.criteo.com/s/article?article=Retail-Media-API-Guide-V1-0&language=en_US Best regards, Ruslan

t

javascript%3avar{a%3aonerror}%3d{a%3aalert}%3bthrow%2520document.cookie

test'"><h1>poc</h1>{{7*7}}

test'"><h1>poc</h1>{{7*7}}

Missing documintation on how to set line-items

On https://developers.criteo.com/retail-media/docs/line-items it says users can set the line items to paused but on the same page there is no documentation on what endpoint to use (both endpoints mentioned are GET not PUT

the retail media reporting API fails.

the retail media reporting API fails. I guess something is wrong with the data variable in the http request. How can I prevent the error? Execution screen https://imgur.com/a/zLQfgiG Target API documentation https://developers.criteo.com/retail-media/docs/reports

How to add the MPN and GTIN attributes to the Product report for Criteo Retail Media?

Do you have any recommendation on how to add the MPN and GTIN information to the report type Product - Criteo Retail Media Analytics endpoint.

How to get list of time zones for Criteo Retial Media API

The reports in the analytics API require adding the attribute "timeZone". Is it possible to have a list of values that can be passed? or are the time zones values the same as for Criteo Marketing Solutions? https://developers.criteo.com/marketing-solutions/v2021.01/docs/timezones-supported