Accept ad offer
create_ad_network_offerAccepts an ad network offer and inserts the selected advertisement into a publication post; set confirm=true to authorize this state-changing action.
Instructions
Accept ad offer. Changes account state and requires confirm=true for the user-requested action. OAuth integrations require posts:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Named private account from BEEHIIV_ACCOUNTS. Defaults to BEEHIIV_DEFAULT_ACCOUNT or the first configured account. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| payload | No | Complete JSON body instead of individual body flags. Supports nullable fields and nested bulk structures. Cannot be combined with body flags or payload_file. | |
| post_id | No | The ID of the post where the advertisement should be inserted. | |
| offer_id | No | The ID of the ad offer to accept. | |
| custom_intro | No | ||
| payload_file | No | Local JSON request body file, at most 5 MB. Contents are validated before the API call and are never logged. | |
| publication_id | Yes | The prefixed ID of the publication object | |
| advertisement_id | No | The ID of the advertisement creative to use. |