API

Create an ad

Creates a new ad in draft status.

POST/v1/hq/ads
AuthorizationBearer <token>

The Noona HQ API uses Bearer token for authentication.

Endpoints that return generic information that does not contain sensitive data do not require authentication. Endpoints that require authentication are specifically marked in the documentation.

Authorization: Bearer your-token

In: header

Query Parameters

select?array<string>
expand?array<string>

Request Body

application/json

company_id*string
name?string
creative?|
action?|||
language?string
placement?

Response Body

application/json

curl -X POST "https://api.noona.is/v1/hq/ads" \  -H "Content-Type: application/json" \  -d '{    "company_id": "string"  }'
{
  "id": "string",
  "company_id": "string",
  "name": "string",
  "status": "draft",
  "creative": {
    "type": "image",
    "image": {
      "thumb": "https://placekitten.com/200/200",
      "image": "https://placekitten.com/200/300",
      "public_id": "https://placekitten.com/200/300",
      "type": "thumbnail",
      "provider": "cloudinary",
      "width": 200,
      "height": 300,
      "bytes": 95849
    }
  },
  "language": "string",
  "placement": {
    "type": "discovery",
    "discovery": {
      "ad_placement_id": "string"
    }
  },
  "action": {
    "type": "company"
  },
  "rejection_reason": "string",
  "reviewed_by": "string",
  "reviewed_at": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
Empty
Empty
Empty
Empty