curl --request POST \ --url https://api.adclear.ai/v1/evaluate/text \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "content": "Get 50% off your first order! Limited time offer.", "product_id": "123e4567-e89b-12d3-a456-426614174000", "adtype_id": "123e4567-e89b-12d3-a456-426614174001", "country_id": "123e4567-e89b-12d3-a456-426614174002"}'
Copy
{ "evaluation_id": "eval_123e4567-e89b-12d3-a456-426614174003", "timestamp": "2024-01-15T10:30:00.000Z", "status": "success", "review_required": true, "issues": [ { "suggestion": "Add clear terms and conditions link for the discount offer", "explanation": "Promotional claims require accessible terms and conditions to comply with advertising standards and ensure transparency for consumers." } ]}
Evaluation
Evaluate Text
Evaluates the provided text content against advertising guidelines and returns an assessment with any issues found.
POST
/
v1
/
evaluate
/
text
Evaluate Text Content
Copy
curl --request POST \ --url https://api.adclear.ai/v1/evaluate/text \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "content": "Get 50% off your first order! Limited time offer.", "product_id": "123e4567-e89b-12d3-a456-426614174000", "adtype_id": "123e4567-e89b-12d3-a456-426614174001", "country_id": "123e4567-e89b-12d3-a456-426614174002"}'
Copy
{ "evaluation_id": "eval_123e4567-e89b-12d3-a456-426614174003", "timestamp": "2024-01-15T10:30:00.000Z", "status": "success", "review_required": true, "issues": [ { "suggestion": "Add clear terms and conditions link for the discount offer", "explanation": "Promotional claims require accessible terms and conditions to comply with advertising standards and ensure transparency for consumers." } ]}
Evaluate text content against advertising compliance guidelines and regulations. This endpoint requires you to specify the product, ad type, and country context to ensure the correct rules are applied during evaluation.You’ll need to obtain the required IDs using the resource endpoints: