CRUD Operations for Budgets
Endpoints
Method | Endpoint | Description |
POST | /v3/budgets | Create a new budget |
GET | /v3/budgets/[id] | Get details for a budget |
PUT | /v3/budgets/[id] | Update a budget |
Get Budget
Method: GET
Endpoint: /v3/budgets/[id]
Example
Response
{ "data": { "ad_server_type": "nativo", "amount": 1000.0, "allowed_ad_types": ["native_article"], "bid_type": "fixed", "campaign_id": 2001, "delivery_type": "impressions", "flight_date_end": "2021-02-01T00:00:00", "flight_date_start": "2021-01-01T00:00:00", "id": 3001, "is_enabled": true, "marketplace": "nativo_premium", "name": "Budget X", "placements": {}, "rate": 3.5, "rate_type": "viewable_cpm", "serving_status": "in_flight", "spend_schedule": "lifetime", "targeting": { "brand_safety": [ { "id": 1, "include_type": "exclude", "name": "Adult Content" }, { "id": 5, "include_type": "exclude", "name": "Drugs" }, { "id": 6, "include_type": "exclude", "name": "Fake News" }, { "id": 7, "include_type": "exclude", "name": "Hate Speech" }, { "id": 9, "include_type": "exclude", "name": "Obscenity" }, { "id": 10, "include_type": "exclude", "name": "Terrorism" }, { "id": 11, "include_type": "exclude", "name": "Tobacco" } ] }, "tracking_tags": [ { "devices": [ "desktop", "mobile", "tablet" ], "tags": "<img>", "type": "primary_impression" } ] } }
Create Budget
Method: POST
Endpoint: /v3/budgets/
Parameters
Parameter | Type | Description |
| integer | Name of the budget. |
| integer | ID of campaign the budget will belong to. |
| datetime string | Date the budget will begin spending. |
| datetime string | Date the budget will conclude spending. |
| string | Marketplace the budget will be flighted into. Options include Not all marketplaces are available to all accounts. |
| string | Rate type of the budget. Options include |
| string | Schedule at which the budget amount will be applied. Lifetime aims to spend the budget amount once during the duration of the budget while daily aims to spend the entire budget amount once per day through the duration of the budget. Options include |
| string |
|
| string[] | The ad-types allowed by the budget. |
| float | The total goal of the budget. This can be a number of impressions or a dollar amount. If |
| string | Determines how rate bidding will be applied. Field access is limited by rate card configuration. Options include |
| string | Determines how the value set in |
| object | See budget targeting documentation here |
| array | See budget tracking documentation here |
| boolean | The current enabled status of the budget. Set to |
| string | Indicates the ad serving state of the budget. Options include: |
| float | Rate at which the rate type of the budget will be charged. |
| string | For owned & operated budgets. Options include: Only selectable for organizations that uses "Nativo and 3rd Party" ad servers. |
| string | This tag contains Nativo JS and budget information for budgets serving via 3rd party ad server within this budget. To use this tag, input into your 3rd party ad server. |
| integer | The On POST, the rate_option_id will be inferred from the |
| integer |
The |
Example
Payload
{ "amount": 1000, "campaign_id": 2001, "delivery_type": "impressions", "flight_date_start": "2021-01-01T00:00:00", "flight_date_end": "2021-02-01T00:00:00", "marketplace": "nativo_premium", "name": "Budget X", "rate_type": "viewable_cpm", "rate": 3.5, "ad_type": "native_display" }
Response
β
Response
{ "data": { "amount": 1000, "allowed_ad_types": [ "native_article", "native_display" ], "bid_type": "fixed", "campaign_id": 2001, "delivery_type": "impressions", "flight_date_end": "2021-02-01T00:00:00", "flight_date_start": "2021-01-01T00:00:00", "id": 3001, "is_enabled": true, "marketplace": "nativo_premium", "marketplace_id": 1, "name": "Budget X", "placements": {}, "rate": 3.5, "rate_option_id": 3, "rate_type": "viewable_cpm", "serving_status": "not_ready", "spend_schedule": "lifetime", "targeting": { "brand_safety": [ { "id": 1, "include_type": "exclude", "name": "Adult Content" }, { "id": 5, "include_type": "exclude", "name": "Drugs" }, { "id": 6, "include_type": "exclude", "name": "Fake News" }, { "id": 7, "include_type": "exclude", "name": "Hate Speech" }, {
PUT Budget
Method: PUT
Endpoint: /v3/budgets/[id]
Example
Increase the impression amount to 50,000
PayloadResponse
{ "amount": 50000 }