Quote a page for an ad
soclo_ad_pages_quoteFree. Reads the ad (or takes a draft’s words) and returns the credit price for a matching page on the owner’s Soclo website, whether a page for this exact ad version already exists (then it costs nothing), and whether the website is ready. When the website is full, makeRoom lists the oldest ad pages Soclo made for ads; offer them to the owner and remove one only on their say-so. Show the owner the price before create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad | No | The ad words. Required for a draft ad; for a live ad they only fill gaps. | |
| adId | No | A live ad id. Soclo reads the ad itself; the page matches its headline, offer and button. | |
| draftId | No | An id for an ad still being written, so the same draft maps to the same page. | |
| platform | Yes | The ad platform, as soclo_ads_* tools name it (for example facebook, google, tiktok). For a draft ad, the platform it will run on. | |
| accountId | No | Connected ads account id (from soclo_ads_* tools). Required with adId. | |
| adAccountId | No | Advertiser / ad account id, when the platform has one. | |
| libraryAssetId | No | Optional: a picture already in the owner’s Library to show on the page. A new picture is never made here. |