Accept ad offer OAuth Scope: posts:write

<Note title="Currently in beta" icon="b"> This feature is currently in beta and the API is subject to change.<br/> </Note> Draft and accept an ad offer, then insert the resulting advertisement opportunity into a post.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

publicationIdstringRequiredformat: "^(pub_[0-9a-fA-F\-]+)$"
The prefixed ID of the publication object

Request

This endpoint expects an object.
offer_idstringRequired
The ID of the ad offer to accept.
advertisement_idstringRequired
The ID of the advertisement creative to use.
post_idstringRequired
The ID of the post where the advertisement should be inserted.

Response

Created
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error