CRUD operations for placements
Endpoints
Method | Endpoint | Description |
POST | /placements | Create a new placement |
GET | /placements/[id] | Get details for a specific placement |
PUT | /placements/[id] | Update a specific placement |
Get Placement
Method: GET
Endpoint: /placements/[id]
Example
Response
{ "data": { "id": 1122110, "name": "test", "section_id": 602314, "status": "inactive", "is_previewable": true, "location": "right_rail", "devices": ["desktop", "mobile", "tablet"], "dfp_settings": { "rendering_mode": "default", "parent_count": 1 }, "injection_mode": "before", "mapping_value": "1122110", "position": 0, "priority": 1, "selector": null, "enable_video": true, "video_devices": [ "desktop", "mobile", "tablet" ], "ifu_id": 40049, "clp_id": null, "pub_network_clp_id": null, "display_sizes": [{ "id": "300x50", "devices": ["mobile", "tablet", "desktop"] }, { "id": "320x50", "devices": ["desktop"] }] } }
Create Placement
Method: POST
Endpoint: /placements/
Parameters
Parameter | Type | Description |
| integer | ID of the placement. |
| string | Name of the advertiser. Max: 500 |
| integer | ID of the section the placement will belong to. |
| string | Used to denote where on the publication website the placement will render. Options include |
| integer | Location within the feed where the ad is replacing or injecting. Max: 100 |
| string | Options include Defaults to |
| string | Options include Defaults to Field is only available to some users. |
| integer | ID of the exchange/supply partner. Defaults to |
| list | List of supported devices. Defaults to all devices. |
| boolean | Defaults to |
| list | Similar to Requires Defaults to all devices. |
| integer | Defines the order in which ads will be injected onto the page. This is only relevant to sections with multiple placements. Defaults to |
| string | Unique ID, class, or pattern used to target ad location on page. Required if publication uses (dfp ad server or exchange or mraid) AND Max: 500 |
| string | Determines how ads will be rendered on the page. Required if Defaults to |
| string | A custom value placed directly in the publisher page to allow Nativo to identify the correct placement. Max: 100 |
| Required if publication uses dfp ad server or exchange. | |
| boolean | Enables preview while placement is inactive. Defaults to |
| integer | ID of the In-Feed Unit |
| integer | ID of the default Content Landing Page . |
| integer | ID of the Publisher Direct Content Landing Page. |
| List of displays sizes with devices. See DisplaySizesSchema |
DfpSettingsSchema
Parameter | Type | Description |
| string | How Nativo should identify the location on the page to render the ad. |
| integer | The count of parent divs that Nativo should climb once broken out of the iframe to inject the ad. Required if |
DisplaySizesSchema
Parameter | Type | Description |
| string | Width by height dimension in the format |
| list | List of supported devices. |
POST Example with the required fields for creation
Payload
{ "section_id": 602314, "location": "right_rail", "position": 0, "name": "test", "dfp_settings": { "rendering_mode": "default" } }
Response
{ "data": { "id": 1122110, "name": "test", "section_id": 602314, "status": "inactive", "is_previewable": true, "location": "right_rail", "devices": [ "desktop", "mobile", "tablet" ], "dfp_settings": { "rendering_mode": "default", }, "injection_mode": "before", "mapping_value": "1122110", "position": 0, "priority": 1, "selector": null, "enable_video": true, "video_devices": [ "desktop", "mobile", "tablet" ] "ifu_id": null, "clp_id": null, "pub_network_clp_id": null, } }
Update Placement
Method: PUT
Endpoint: /placements/[id]
Example
Update the Mapping Value.
Payload
{ "mapping_value": "1234" }
Response
{ "data": { "id": 1122110, "name": "test", "section_id": 602314, "status": "inactive", "is_previewable": true, "location": "right_rail", "devices": [ "desktop", "mobile", "tablet" ], "dfp_settings": { "rendering_mode": "default", }, "injection_mode": "before", "mapping_value": "1234", "position": 0, "priority": 1, "selector": null, "enable_video": true, "video_devices": [ "desktop", "mobile", "tablet" ] "ifu_id": null, "clp_id": null, "pub_network_clp_id": null, } }