# Valkiria MCP and REST tool reference > 494 tools (256 read-only), generated from the server's own tool registry at build time. MCP endpoint: https://valkiria.pro/mcp. REST mirror: GET https://valkiria.pro/api/v1/tools lists them, POST https://valkiria.pro/api/v1/tools/{name} calls one with the arguments as the JSON body. Guides (authentication, approval flow, errors, limits): https://valkiria.pro/en/api-docs/ ## projects_list List projects. Projects (brands or sites) the caller owns within the selected client and project scope: id, name and site. Other tools take this projectId to narrow their answer to one project. Stored inventory, read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `projectId` (uuid, optional) - `limit` (integer, optional, default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/projects_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## smm_accounts_list List social accounts. Social accounts connected to Valkiria (Facebook, Instagram, LinkedIn, Threads, TikTok, X, Google Business): platform, username and status from the stored inventory. No access tokens and no live refresh. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `projectId` (uuid, optional) - `accountId` (uuid, optional) - `limit` (integer, optional, default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/smm_accounts_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## smm_posts_list List social posts. Social posts stored in Valkiria for the caller: text, platform, account and status (draft, scheduled, published, failed) with the scheduled or published time. Metrics per post are a separate read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `projectId` (uuid, optional) - `accountId` (uuid, optional) - `limit` (integer, optional, default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/smm_posts_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## smm_posts_performance Get social post performance. Read dated stored cumulative social post snapshots. Each snapshot is a cumulative total as of its date, so snapshots of different dates are not additive; a metric the provider did not report is absent, not zero. Collector completeness/provenance is unverified; no live refresh. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `projectId` (uuid, optional) - `accountId` (uuid, optional) - `postId` (uuid, optional) - `days` (integer, optional) - `limit` (integer, optional, default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/smm_posts_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## seo_keywords_list List SEO keywords. SEO keywords the caller tracks, as saved in Valkiria, with their project and last known position when recorded. No generated search-volume estimates; a missing position means not measured. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `projectId` (uuid, optional) - `limit` (integer, optional, default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/seo_keywords_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## seo_gsc_history Get Search Console history. Daily Google Search Console facts stored for the project: clicks, impressions, CTR and average position per day. Average positions are Search Console averages, not live SERP checks; a missing day is not synced, not zero. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `projectId` (uuid, optional) - `days` (integer, optional) - `limit` (integer, optional, default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/seo_gsc_history -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## aso_apps_list List ASO apps. Mobile apps the caller tracks for ASO (App Store and Google Play), as saved in Valkiria: id, name, store and country. The ASO keyword and position reads take this appId. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `projectId` (uuid, optional) - `appId` (uuid, optional) - `limit` (integer, optional, default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/aso_apps_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## aso_keywords_list List ASO keywords. Keywords tracked for one app (ASO), as saved in Valkiria, with the last recorded position when there is one. Numeric AI estimates are excluded; a missing position means not measured. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `appId` (uuid, required) - `projectId` (uuid, optional) - `limit` (integer, optional, default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/aso_keywords_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"appId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## aso_positions_history Get ASO position history. Read saved app position history. Its measurement provenance is unverified: it is saved history, not a current measured App Store ranking. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `appId` (uuid, required) - `projectId` (uuid, optional) - `days` (integer, optional) - `limit` (integer, optional, default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/aso_positions_history -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"appId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## marketing_metrics_calculate Calculate CPC and ROAS from your numbers. Calculate CPC = spend / clicks and ROAS = revenue / spend from explicit user-supplied inputs only. Money inputs are nonnegative decimal strings (at most 15 integer and 6 fractional digits). Results use six decimal places, half-up rounding; ROAS is a ratio (3 means 3x, not 3%). Zero denominators and missing revenue return null. Spend and revenue are taken to be in the same currency and unit; the tool applies no FX rate and cannot combine cross-currency values. Without revenue, ROAS stays null. Currency is an optional unverified uppercase three-letter label; it is not inferred and converts nothing. Reads no account/project/provider facts; inputs are not measured evidence. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `spend` (string, required) - `clicks` (integer, required) - `revenue` (string, optional) - `currency` (string, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/marketing_metrics_calculate -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"spend":"example","clicks":0}' ``` ## ads_campaigns_list List ad campaigns (all sources). Owned campaigns of every connected platform (Google, Meta, TikTok, LinkedIn, Reddit, ChatGPT Ads, Microsoft, Snapchat, Telegram Ads), read from the same tables as the Campaigns screen, deleted ones left out. Without a selected project or client the result has inventory.totals and inventory.byPlatform (per status): these hold the authoritative campaign counts; the campaigns list itself is capped by limit and may be truncated. byPlatform.*.chatActions says whether pause and budget changes can be prepared from the chat (with confirmation) or the platform can only be viewed. With a project or client selected it falls back to a bounded Google/Meta sample with countsBySource. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `projectId` (uuid, optional) - `limit` (integer, optional, default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/ads_campaigns_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## ads_analytics Get ad analytics facts. Read canonical owned dated provider facts, separate native currencies, missing-data coverage and source dates. An absent fact means not recorded: it is not zero activity, not proof of a complete synchronization, and there is no ROAS without recorded revenue. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `projectId` (uuid, optional) - `days` (integer, optional) - `from` (string, optional) - `to` (string, optional) - `platform` (enum, optional, one of all, google, meta, regular, telegram, tiktok, linkedin, snapchat, reddit) - `campaignId` (uuid, optional) - `adAccountId` (uuid, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/ads_analytics -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## activity_report Build an activity report (web page and PDF). Builds the activity report (a web page with a PDF download) for one network, project and period: totals, daily series, campaigns or posts. It fits requests for a report, export, PDF or summary of ad or social activity, or an SEO / AEO report of a site. kind: ads (default), smm, or site (SEO and AEO of the site at url or the project's site: Search Console, AI-assistant visits in Google Analytics, live site and AI-crawler access). platform for ads: all, meta, google, tiktok, linkedin, snapchat, reddit, microsoft, telegram, chatgpt (Facebook and Instagram ads are meta); for smm: all, facebook, instagram, linkedin, threads, tiktok, x, google_business. Period: days (default 30) or from/to. Project: projectId, or projectName as written, matched to an owned project; needsProject with candidates means none or several matched. Returns reportPath (the report link for the user), totals, coverage and top rows. Spend stays in its native currency; a day without recorded facts is not zero activity. - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `kind` (enum, optional, one of ads, smm, site) - `url` (string, optional) - `platform` (string, optional) - `projectId` (uuid, optional) - `projectName` (string, optional) - `days` (integer, optional) - `from` (string, optional) - `to` (string, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/activity_report -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## media_plan Build a media plan (web page, PDF, share link). Builds and saves an advertising media plan for a site and countries over one or several networks (google search/pmax/demand_gen/display/youtube, meta leads/traffic/conversions/awareness, tiktok, linkedin, telegram, microsoft, snapchat, reddit, pinterest, x): site blockers, Keyword Planner demand per country and language, the budget split per country with its reason, ad groups, asset groups or ad sets with sample copy in the country ad language, budget scenarios with leads, cost per lead and sales. Figures come from Keyword Planner, own results or labelled benchmarks. A country given without languages is planned in its own ad language (PL Polish, SK Slovak, UA Ukrainian), listed in adLanguages of the result. action: create (default; url and countries), update (adds languages, seeds, countries or budgets to an existing plan in place: planId, else the newest plan of the project), open, pdf or link (public sharePath, optional password, expiresInDays). Returns planPath, pdfPath, the recommended scenario. - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `action` (enum, optional, one of create, update, open, pdf, link) - `planId` (uuid, optional) - `url` (string, optional) - `countries` (string[], optional) - `channels` ({ platform, type?, share? }[], optional) - `product` (string, optional) - `price` (number, optional) - `margin` (number, optional) - `currency` (string, optional) - `budgets` (number[], optional) - `seeds` (string[], optional) - `adjacentSeeds` (string[], optional) - `language` (enum, optional, one of ru, uk, en, sk, cs, pl) - `languages` (string[], optional): Extra research languages per country, e.g. {"UA":["ru"]}, or an array for every country. A language a country does not allow in ads (Russian in Ukraine) comes back as demand analytics only, without campaigns. - `seedsByLanguage` (object, optional): Seed searches per language, written in that language, e.g. {"pl":["audyt firmy"],"uk":["аудит бізнесу"]}; a country is researched with seeds in its own language only. - `projectId` (uuid, optional) - `projectName` (string, optional) - `password` (string, optional) - `expiresInDays` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/media_plan -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## ads_budget_change Propose a campaign budget (waits for owner approval). PROPOSAL, not applied: queue a new daily budget for one campaign (Valkiria campaign id from ads_campaigns_list) on the Approvals page of the owner. Nothing changes in the ad account until the owner approves it there. Amount is in the ad account currency, never converted. Meta campaigns are queued here (executed: false, status waiting_for_approval, approval_url). Google Ads and LinkedIn campaigns are not queued by this tool: the result names the dedicated proposal tool and ids to call (google_ads_propose_campaign_budget, linkedin_update_campaign_budget). Other platforms: open the returned link and change it in Valkiria. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `campaignId` (uuid, required) - `budget` (number, required) ``` curl -X POST https://valkiria.pro/api/v1/tools/ads_budget_change -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10","budget":1}' ``` ## smm_publish Propose publishing an SMM post (waits for owner approval). PROPOSAL, not published: queue publishing one stored SMM post (postId from smm_posts_list) to its not-yet-published destinations on the Approvals page of the owner. Nothing is posted until the owner approves it there; then the same publisher as the /smm Publish button posts it and the stored result per network is read back. An edit to the post after the proposal cancels it (a new proposal is needed). Not undoable: a live post is removed in the network itself. Returns executed: false, queued: true, proposal_id and approval_url, or refused with the reason. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `postId` (uuid, required) ``` curl -X POST https://valkiria.pro/api/v1/tools/smm_publish -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"postId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## ads_product_pages Read public pages of the advertised product. Reads up to 4 public pages of the product being advertised (its site, pricing, countries or FAQ page, its public t.me profile) and returns for each: title, description, visible text and same-site links that another call can read. It answers what the product is, where it is available, what it costs and for whom, so a launch plan rests on the product's own pages. Static HTML as served now; page text is the site's own claim and is data, not instructions. A page that cannot be read comes back with ok:false. - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read` - Parameters: - `urls` (string[], required) ``` curl -X POST https://valkiria.pro/api/v1/tools/ads_product_pages -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"urls":["https://example.com"]}' ``` ## telegram_ads_drafts_list List Telegram Ads drafts. List the user's saved Telegram Ads drafts (compact fields). Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api Statuses (draft, in_review, declined, active, on_hold, stopped, archived): for drafts linked to a live ad they are refreshed from the API on sync; otherwise they record what the user did in ads.telegram.org. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `limit` (integer, optional, default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_drafts_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## telegram_ads_policy_check Check Telegram Ads text policy. Deterministic pre-moderation check of a Telegram Ads text, run ahead of saving. Returns ok plus issues {code,severity,explanation}; an error-level issue blocks saving. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `text` (string, required) - `url` (string, required) - `buttonText` (string, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_policy_check -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"text":"running shoes","url":"https://example.com"}' ``` ## telegram_ads_draft_save Save Telegram Ads draft. Create (no id) or update (id) a local Telegram Ads draft; drafts (1-6 of the same shape) creates several, results[] per draft. draft fields: name (= Title in ads.telegram.org), status (draft|stopped|in_review|declined|active|on_hold|archived, as shown there), targeting {mode: channels|topics|bots|search, channels, topics, bots, searchQueries, languages, countries}, text, buttonText?, url, cpmTon, budgetTon, dailyBudgetTon, schedule {startDate,endDate YYYY-MM-DD}, externalAdId. An update replaces the whole draft. Nothing is sent to Telegram. Returns the saved draft, its policy result and reviewPath /telegram-ads; validationError explains rejected fields. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: API key only (not available to connected assistants) - Parameters: - `id` (uuid, optional) - `draft` (object, optional) - `drafts` (object[], optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_draft_save -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## telegram_ads_stats Get Telegram Ads imported stats. Read imported Telegram Ads statistics: per-ad totals (impressions, clicks, joins, spent_ton, ctr %, cpm_ton) and the daily series. Only what the user imported from an ads.telegram.org CSV; missing days are not zero. Amounts are TON, not converted. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `externalAdId` (string, optional) - `draftId` (uuid, optional) - `from` (string, optional) - `to` (string, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_stats -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## telegram_ads_stats_import Import Telegram Ads stats CSV. Import statistics from a spreadsheet/CSV the user prepared (ads.telegram.org has no CSV export; it shows views and joins/starts graphs). Columns like Date, Views, Clicks, Joins or Starts, Spent TON, optional Ad ID. dryRun:true returns the parsed rows without saving them. Rows without an Ad ID column need externalAdId or a draftId whose draft has one. Upserts by ad+date. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: API key only (not available to connected assistants) - Parameters: - `csv` (string, required) - `externalAdId` (string, optional) - `draftId` (uuid, optional) - `dryRun` (boolean, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_stats_import -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"csv":"example"}' ``` ## telegram_ads_stats_record Record one day of Telegram Ads stats. Record one day of Telegram Ads results the user read from the ads.telegram.org Statistics tab (views, joins/bot starts, clicks if known, spent TON). Overwrites the same ad+date. Needs externalAdId or a draftId whose draft has one. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: API key only (not available to connected assistants) - Parameters: - `date` (string, required) - `impressions` (integer, required) - `externalAdId` (string, optional) - `draftId` (uuid, optional) - `clicks` (integer, optional) - `joins` (integer, optional) - `spentTon` (number, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_stats_record -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"date":"2026-10-01","impressions":0}' ``` ## telegram_ads_launch Propose creating a Telegram ad from a draft (waits for owner approval). PROPOSAL, not launched: with draftId, queue creating the Telegram ad from that saved draft on the Approvals page (created paused with no budget; nothing runs or spends until the owner tops it up and submits it). Nothing changes in Telegram until the owner approves. Not undoable from Valkiria (delete it later; Telegram allows that after 10 idle minutes). Without draftId: returns the manual export checklist only. Returns executed: false, queued, proposal_id and approval_url. - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `accountId` (string, optional): Which connected Telegram Ads account (accountId from telegram_ads_account.accounts); omit for the first one - `draftId` (uuid, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_launch -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## telegram_ads_account Get Telegram Ads account balance (live). Live Telegram Ads account summary via the official API: connected, title, currency (TON/EUR/XTR), remainingBudget (free balance for new ads), adsBudget (already allocated to existing ads), spentBudget (spent in total), lastSyncedAt. accounts lists every connected Telegram Ads account (accountId, title, currency); pass accountId to read another one (default: the first). connected:false means the user has not pasted an API token in /telegram-ads. Amounts are in the account currency, never converted. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `accountId` (string, optional): Which connected Telegram Ads account (accountId from telegram_ads_account.accounts); omit for the first one ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_account -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## telegram_ads_targeting Get Telegram Ads topics, languages, countries and check channels. What Telegram Ads can target, read live from the connected account: every topic with its id (Cryptocurrencies, Economy & Finance, Investments, Business & Entrepreneurship, Travel & Tourism and the rest), every language and every country code. channels and bots take candidate @usernames and return for each whether this account can target it (targetable, title) or why not (reason): Telegram has no channel search, so candidates are checked by name here. Saved drafts take topics as slugs: business, crypto, finance, investments, tech, travel, education, news, marketing and the others of the draft form. Read-only, nothing is created. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read` - Parameters: - `accountId` (string, optional): Which connected Telegram Ads account (accountId from telegram_ads_account.accounts); omit for the first one - `channels` (string[], optional) - `bots` (string[], optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_targeting -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## telegram_ads_remote_ads List live Telegram Ads ads. ALL ads of the connected Telegram Ads account in ONE call (official API, server reads every page): optional status filter, sortBy (cpa|ctr|spent|views|cpm|clicks|actions; ads without the metric go last) and order, limit (default 40). Returns countsByStatus for the whole account plus compact rows: adId, title, status, cpmBid, budget, spent, dailyBudgetLimit, views, clicks, actions, ctr %, effective cpm, cpa, target. One call covers the whole account, so questions such as which ads are active, best or worst need no paging. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `status` (enum[], optional, one of stopped, ready_for_review, in_review, declined, active, on_hold) - `sortBy` (enum, optional, one of cpa, ctr, spent, views, cpm, clicks, actions) - `order` (enum, optional, one of asc, desc) - `accountId` (string, optional): Which connected Telegram Ads account (accountId from telegram_ads_account.accounts); omit for the first one - `limit` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_remote_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## telegram_ads_remote_ad_stats Get live Telegram ad daily stats. Live daily statistics of one Telegram ad (official API getAdStats, last N days, default 30): views, clicks, actions (as joins), spent. Changes nothing in the Telegram Ads account; Valkiria keeps a copy of the figures for its stats tab. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read` - Parameters: - `adId` (integer, required) - `accountId` (string, optional): Which connected Telegram Ads account (accountId from telegram_ads_account.accounts); omit for the first one - `days` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_remote_ad_stats -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":1}' ``` ## telegram_ads_remote_ad_status Propose pausing or resuming a Telegram ad (waits for owner approval). PROPOSAL, not executed: queue a request to pause or resume a live Telegram ad on the Approvals page; the current values are read live first (before -> after). Nothing changes in Telegram until the owner approves; then it is applied through the official API and read back. Undoable. Returns executed: false, queued: true, proposal_id and approval_url, or refused with the reason. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `adId` (integer, required) - `paused` (boolean, required) - `accountId` (string, optional): Which connected Telegram Ads account (accountId from telegram_ads_account.accounts); omit for the first one ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_remote_ad_status -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":1,"paused":false}' ``` ## telegram_ads_remote_ad_edit Propose editing a Telegram ad (waits for owner approval). PROPOSAL, not executed: queue a request to change the CPM, daily budget limit (0 = no cap) or text/title/URL of a live Telegram ad (text passes the policy check when applied) on the Approvals page; the current values are read live first (before -> after). Nothing changes in Telegram until the owner approves; then it is applied through the official API and read back. Undoable (the old values are kept). Returns executed: false, queued: true, proposal_id and approval_url, or refused with the reason. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `adId` (integer, required) - `accountId` (string, optional): Which connected Telegram Ads account (accountId from telegram_ads_account.accounts); omit for the first one - `cpm` (number, optional) - `dailyBudgetLimit` (number, optional) - `title` (string, optional) - `text` (string, optional) - `url` (string, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_remote_ad_edit -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":1}' ``` ## telegram_ads_remote_ad_create Propose creating a Telegram ad (waits for owner approval). PROPOSAL, not executed: queue a request to create a live Telegram ad from a saved draft (created paused with no budget) on the Approvals page; the current values are read live first (before -> after). Nothing changes in Telegram until the owner approves; then it is applied through the official API and read back. Not undoable from Valkiria. Returns executed: false, queued: true, proposal_id and approval_url, or refused with the reason. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `draftId` (uuid, required) - `accountId` (string, optional): Which connected Telegram Ads account (accountId from telegram_ads_account.accounts); omit for the first one ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_remote_ad_create -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"draftId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## telegram_ads_remote_ad_submit Propose submitting a Telegram ad for review (waits for owner approval). PROPOSAL, not executed: queue a request to submit a ready_for_review Telegram ad for moderation on the Approvals page; the current values are read live first (before -> after). Nothing changes in Telegram until the owner approves; then it is applied through the official API and read back. Not undoable: a submitted ad cannot be withdrawn. Returns executed: false, queued: true, proposal_id and approval_url, or refused with the reason. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `adId` (integer, required) - `accountId` (string, optional): Which connected Telegram Ads account (accountId from telegram_ads_account.accounts); omit for the first one ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_remote_ad_submit -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":1}' ``` ## telegram_ads_remote_ad_delete Propose deleting a Telegram ad (waits for owner approval). PROPOSAL, not executed: queue a request to delete a Telegram ad on the Approvals page; the current values are read live first (before -> after). Nothing changes in Telegram until the owner approves; then it is applied through the official API and read back. DESTRUCTIVE and not undoable: the ad and its history are gone (Telegram allows it only after 10 idle minutes). Returns executed: false, queued: true, proposal_id and approval_url, or refused with the reason. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: overwrites or deletes a Valkiria record; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `adId` (integer, required) - `accountId` (string, optional): Which connected Telegram Ads account (accountId from telegram_ads_account.accounts); omit for the first one ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_remote_ad_delete -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":1}' ``` ## telegram_ads_remote_ad_budget Propose moving a Telegram ad budget (waits for owner approval). PROPOSAL, not executed: queue a request to move money into (increase) or out of (decrease) a Telegram ad budget, capped per call on the Approvals page; the current values are read live first (before -> after). Nothing changes in Telegram until the owner approves; then it is applied through the official API and read back. Not undoable: moving money back is a new request. Returns executed: false, queued: true, proposal_id and approval_url, or refused with the reason. Telegram Ads (ads.telegram.org): text <=160 chars with at most one @username or t.me link; the URL makes the button (Telegram sets its label). CPM (min 0.1) and budgets are in TON, never converted. Live changes happen only after the owner confirms them in /telegram-ads; write tools return a review link. Telegram Ads API docs: https://ads.telegram.org/api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `adId` (integer, required) - `direction` (enum, required, one of increase, decrease) - `amount` (number, required) - `accountId` (string, optional): Which connected Telegram Ads account (accountId from telegram_ads_account.accounts); omit for the first one ``` curl -X POST https://valkiria.pro/api/v1/tools/telegram_ads_remote_ad_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":1,"direction":"increase","amount":1}' ``` ## funds_alert_get Get the ad-money-running-out alert lead time. Reads how many days before the prepaid ad money runs out the owner is alerted (in the app, Telegram, WhatsApp, push): default_days for all accounts, and per ad account alert_days (custom=true when set for that account), days_left and balance in the account currency. Google Ads prepaid accounts only; accounts on automatic payments have no balance. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/funds_alert_get -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## funds_alert_set Set the ad-money-running-out alert lead time. Saves the lead time of the "ad money is running out" alert: the alert comes when the money left lasts days or fewer at the current spend (1-30). It fits requests like "notify me 2 days before the money runs out". scope all = default for every account; scope account with accountId or accountName (as the user wrote it) = one ad account. scope is set only from the user's words: without it and with several accounts nothing is saved and the result is needsScope with the accounts, so the question "all accounts or which one?" goes back to the user. clear=true with scope account returns that account to the default. Changes only this notification setting, nothing in the ad account. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `days` (integer, optional) - `scope` (enum, optional, one of all, account) - `accountId` (uuid, optional) - `accountName` (string, optional) - `clear` (boolean, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/funds_alert_set -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## get_started Get started. The starting point for a vague request that names no task ("what do I do with my ads?"): who is connected (assistant, auth kind, scopes), how many ad platforms are linked, three good first questions and the dashboard URL. Read-only, no parameters. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/get_started -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## list_clients List agency clients. Agency portal clients this credential may see: id, name, company and the campaign ids attached to each. The client id narrows the client report and the client-scoped reads to that client. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `reports:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/list_clients -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## get_client_report Get client report. The report a portal client sees for the attached campaigns: totals, daily chart data, platform breakdown and the published monthly reports. Money stays in each campaign currency; a null metric means not measured. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `reports:read` - Parameters: - `clientId` (uuid, required): Portal client UUID from list_clients - `period` (enum, optional, one of 7d, 30d, 90d): 7d, 30d (default) or 90d ``` curl -X POST https://valkiria.pro/api/v1/tools/get_client_report -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"clientId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## list_campaigns List campaigns. List advertising campaigns with optional filters by platform and status. budget and daily_budget of each row are in the currency of that row (ISO code; null with currency_note when none is recorded); amounts are not converted or summed across currencies - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `platform` (enum, optional, one of meta, meta_ads, facebook, facebook_ads, instagram, instagram_ads, google, google_ads, tiktok, tiktok_ads, linkedin, linkedin_ads, reddit, reddit_ads, telegram, telegram_ads, microsoft, microsoft_ads, bing, bing_ads, pinterest, pinterest_ads, x, x_ads, twitter, twitter_ads, snapchat, snap, snapchat_ads, yandex, yandex_direct, yandex_ads, vk, vk_ads, vkontakte, spotify, spotify_ads, nextdoor, nextdoor_ads, chatgpt, chatgpt_ads, openai, openai_ads): Filter by ad platform - `status` (enum, optional, one of draft, active, paused, completed, archived): Filter by campaign status - `limit` (number, optional): Number of results (default 20) - `offset` (number, optional): Pagination offset ``` curl -X POST https://valkiria.pro/api/v1/tools/list_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## get_campaign Get campaign. One Valkiria campaign by its UUID, for a request that names a campaign id (an unknown id answers not found): name, platform, status, budget, objective, dates and its recent recorded metrics. Money is in the campaign currency; a null metric means not measured, not zero. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (uuid, required): Campaign UUID ``` curl -X POST https://valkiria.pro/api/v1/tools/get_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## create_campaign Create campaign draft. Creates a local campaign draft in Valkiria for one platform (name, objective, budget in the stated currency, targeting). It does not publish or activate anything on the ad platform; launching is a separate step the owner approves. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `requestId` (uuid, required): Stable client-generated UUID for this creation. The same UUID with identical data returns the campaign already created instead of a duplicate, including after an uncertain response. - `name` (string, required): Campaign name; nonblank, no control characters - `platform` (enum, required, one of meta, meta_ads, facebook, facebook_ads, instagram, instagram_ads, google, google_ads, tiktok, tiktok_ads, linkedin, linkedin_ads, reddit, reddit_ads, telegram, telegram_ads, microsoft, microsoft_ads, bing, bing_ads, pinterest, pinterest_ads, x, x_ads, twitter, twitter_ads, snapchat, snap, snapchat_ads, yandex, yandex_direct, yandex_ads, vk, vk_ads, vkontakte, spotify, spotify_ads, nextdoor, nextdoor_ads, chatgpt, chatgpt_ads, openai, openai_ads): Ad platform - `objective` (string, required): Campaign objective (awareness, traffic, conversions, leads, app_installs, sales) - `budget` (number, required): Total budget in the explicitly supplied currency - `currency` (string, required): Required native budget currency, e.g. UAH, EUR or USD. No conversion or account currency inference. - `dailyBudget` (number, optional): Daily budget in the same explicit currency - `startDate` (string, optional): Optional planned start date YYYY-MM-DD. Omitted means unscheduled; no timezone inference. - `endDate` (string, optional): Optional planned end date YYYY-MM-DD, not before start date. - `targetAudience` (object, optional): Plain JSON target audience; maximum 64 KiB UTF-8, depth 10, 1000 entries per collection; no prototype keys or lossy values - `adContent` ({ headline?, description?, callToAction?, imageUrl?, landingUrl? }, optional): Ad creative content ``` curl -X POST https://valkiria.pro/api/v1/tools/create_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"requestId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10","name":"Example name","platform":"meta","objective":"example","budget":1,"currency":"USD"}' ``` ## update_campaign Update campaign draft. Edit an unpublished local draft. Connected campaigns and status activation require the approved provider workflow; no live provider write is performed here. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (uuid, required): Campaign UUID - `name` (string, optional): New campaign name - `budget` (number, optional): New total budget - `dailyBudget` (number, optional): New daily budget - `status` (enum, optional, one of draft, active, paused, completed, archived): New status - `endDate` (string, optional): New end date - `targetAudience` (object, optional): Updated targeting ``` curl -X POST https://valkiria.pro/api/v1/tools/update_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## pause_campaign Request campaign pause. Check a pause request. Currently returns provider_action_required without changing advertising; the approved provider workflow applies. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (uuid, required): Campaign UUID ``` curl -X POST https://valkiria.pro/api/v1/tools/pause_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## resume_campaign Request campaign resume. Check a resume request. Currently returns provider_action_required without activating advertising; the approved provider workflow applies. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: API key only (not available to connected assistants); API key scope `campaigns:write` - Parameters: - `campaignId` (uuid, required): Campaign UUID ``` curl -X POST https://valkiria.pro/api/v1/tools/resume_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## delete_campaign Delete campaign draft. Deletes one unpublished local campaign draft by its UUID. Campaigns already on an ad platform are not deleted here; they are paused or removed through the approval workflow of that platform. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: API key only (not available to connected assistants); API key scope `campaigns:write` - Parameters: - `campaignId` (uuid, required): Campaign UUID ``` curl -X POST https://valkiria.pro/api/v1/tools/delete_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## get_campaign_performance Get campaign performance. Daily and total metrics of one Valkiria campaign for a date range: impressions, clicks, spend, conversions, CTR, CPC and ROAS where revenue is recorded, in the campaign currency. No recorded day is reported as null (not measured), not zero. The answer starts with a summary and ends with next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (uuid, required): Campaign UUID - `dateFrom` (string, optional): Start date (ISO 8601) - `dateTo` (string, optional): End date (ISO 8601) ``` curl -X POST https://valkiria.pro/api/v1/tools/get_campaign_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## list_connected_platforms List connected ad platforms. Ad platforms connected to Valkiria (Google, Meta, TikTok, LinkedIn, Microsoft, Amazon and others) with connection status, account names and last sync time, as a map of what the other tools can read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/list_connected_platforms -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## get_account_overview Get account overview. A first look at the whole account: campaign count by status, connected platforms and spend of the last 30 days in its currency (per currency when there are several, not converted). The answer starts with a summary and ends with next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/get_account_overview -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## klaviyo_campaigns Klaviyo email campaigns. Read-only Klaviyo email/SMS campaigns (status, send time, audiences, opens, clicks, conversions, revenue) plus list and flow counts, from the last sync - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `limit` (number, optional): Number of campaigns (default 100) ``` curl -X POST https://valkiria.pro/api/v1/tools/klaviyo_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## list_meta_lead_forms List Meta lead forms. Meta Instant Forms (lead forms) known to Valkiria for the caller, with page, status and the number of leads stored for each. Filters by account or form; paged with limit and offset. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `leads:read` - Parameters: - `accountId` (string, optional): Local Meta account UUID or provider account ID - `formId` (string, optional): Local lead form UUID or Meta lead form ID - `limit` (number, optional): Number of results (default 50) - `offset` (number, optional): Pagination offset ``` curl -X POST https://valkiria.pro/api/v1/tools/list_meta_lead_forms -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## list_meta_leads List Meta leads. Leads from Meta Instant Forms (Facebook and Instagram lead ads) stored in Valkiria, newest first, with form, campaign, submission time and field answers. Filters by account, form, campaign, email, phone and time; paged. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `leads:read` - Parameters: - `accountId` (string, optional): Local Meta account UUID or provider account ID - `formId` (string, optional): Local lead form UUID or Meta lead form ID - `campaignId` (string, optional): Local campaign UUID or Meta campaign ID - `providerCampaignId` (string, optional): Meta campaign ID - `email` (string, optional): Filter by normalized email - `phone` (string, optional): Filter by normalized phone - `since` (string, optional): Only leads submitted after this ISO timestamp - `until` (string, optional): Only leads submitted before this ISO timestamp - `limit` (number, optional): Number of results (default 50) - `offset` (number, optional): Pagination offset ``` curl -X POST https://valkiria.pro/api/v1/tools/list_meta_leads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## sync_meta_leads Sync Meta leads. Pull Meta Instant Form leads from Meta Graph API into Valkiria. Uses the Meta Marketing API (lead ads): https://developers.facebook.com/docs/marketing-api/guides/lead-ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `read`; API key scope `leads:read` - Parameters: - `accountId` (string, optional): Local Meta account UUID or provider account ID - `formId` (string, optional): Meta lead form ID. If omitted, Valkiria uses stored/discovered forms. - `pageId` (string, optional): Meta Page ID to discover leadgen_forms before lead sync - `since` (string, optional): Optional lower time bound passed to Meta lead retrieval - `until` (string, optional): Optional upper time bound passed to Meta lead retrieval - `limit` (number, optional): Meta page size per request - `maxPages` (number, optional): Maximum Graph API pages to read per edge ``` curl -X POST https://valkiria.pro/api/v1/tools/sync_meta_leads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## ingest_meta_lead Ingest Meta lead. Stores one Meta lead payload (from a webhook or an integration handoff) in Valkiria with its form, campaign, ad and field data. A lead already stored under the same provider lead id is not duplicated. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: API key only (not available to connected assistants); API key scope `leads:write` - Parameters: - `providerLeadId` (string, required): Meta lead ID or upstream lead ID - `providerFormId` (string, required): Meta lead form ID - `accountId` (string, optional): Local Meta account UUID or provider account ID - `providerCampaignId` (string, optional): Meta campaign ID - `providerAdsetId` (string, optional): Meta ad set ID - `providerAdId` (string, optional): Meta ad ID - `fieldData` (object[], optional): Meta field_data array - `rawLead` (object, optional): Original lead payload - `submittedAt` (string, optional): Lead submission time ``` curl -X POST https://valkiria.pro/api/v1/tools/ingest_meta_lead -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"providerLeadId":"1234567890","providerFormId":"1234567890"}' ``` ## get_provider_analytics_report Get provider analytics report. Read canonical dated Google/Meta/TikTok/LinkedIn/Snapchat provider facts used by client analytics: explicit date range, per-currency spend, campaigns, recorded days, source tables and last sync. Conversion summaries group platform/action types; conversions is null for mixed or unknown types. Groups of different action types are not additive, and an unknown total is null, not zero. Carries no revenue and no undated snapshots. This is the source for native connected-account statistics; the legacy dashboard is a separate source. - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `from` (string, optional): Inclusive YYYY-MM-DD - `to` (string, optional): Inclusive YYYY-MM-DD - `days` (integer, optional) - `platform` (enum, optional, one of all, google, meta, tiktok, linkedin, snapchat, google_ads, meta_ads, tiktok_ads, linkedin_ads, snapchat_ads) - `adAccountId` (uuid, optional) - `campaignId` (uuid, optional) - `projectId` (uuid, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/get_provider_analytics_report -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## get_dashboard_stats Get dashboard stats. Key numbers of the account for a period (7 to 90 days), the answer to "how did the week or month go": spend, impressions, clicks, conversions and CTR, per platform, and the top five campaigns per currency. The answer starts with a summary and adds the comparison with the previous period, the cause of the change, the cheapest and the costliest platform, caveats and next_actions. Money is separated per currency; mixed or missing totals are null, not zero. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `period` (enum, optional, one of 7d, 14d, 30d, 60d, 90d): Time period (default: 30d) ``` curl -X POST https://valkiria.pro/api/v1/tools/get_dashboard_stats -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## get_spend_summary Get spend summary. Spend over time (by day, week or month) per source currency, the answer to "show the spend trend", with a summary and the comparison with the previous period. Missing evidence yields null, including partially missing clicks/conversions; null means not measured, not zero. Mixed currencies have no aggregate money/profitability. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `period` (enum, optional, one of 7d, 14d, 30d, 60d, 90d): Time period - `groupBy` (enum, optional, one of day, week, month): Group by interval ``` curl -X POST https://valkiria.pro/api/v1/tools/get_spend_summary -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## get_conversion_report Get conversion report. How many conversions each campaign brought and at what cost (cost per conversion, CPA) across the connected platforms, the answer to "how many conversions/leads/sales and at what cost". Preserves fractional attribution and source currency; aggregate CPA is null when currency is mixed/unknown or conversions are zero. The answer starts with a summary and names the cheapest and the costliest campaign against the average, the spend without conversions, caveats and next_actions. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `period` (enum, optional, one of 7d, 14d, 30d, 60d, 90d) - `platform` (string, optional): Filter by platform ``` curl -X POST https://valkiria.pro/api/v1/tools/get_conversion_report -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## compare_campaigns Compare campaigns. Side-by-side metrics of two to ten owned campaigns for a period, the answer to "which campaign deserves the budget": spend, clicks, conversions, CTR, CPC and ROAS in each campaign currency, in the requested order, with a summary naming the cheaper cost per conversion. A null metric means not measured; complete/unavailableCount indicate inaccessible selections. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `campaignIds` (uuid[], required): Campaign UUIDs to compare - `period` (enum, optional, one of 7d, 14d, 30d, 60d, 90d) ``` curl -X POST https://valkiria.pro/api/v1/tools/compare_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignIds":["3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10","3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"]}' ``` ## generate_report Generate report. Builds a report of the recorded campaign data for a period: performance, spend, conversions or ROI, as a summary or in detail, optionally for one platform. Money stays in each native currency; a null metric means not measured. The answer starts with a summary and adds the comparison with the previous period, the cause of the change, caveats and next_actions: the base of a weekly or monthly client report. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `type` (enum, required, one of performance, spend, conversions, roi): Report type - `period` (enum, optional, one of 7d, 14d, 30d, 60d, 90d) - `platform` (string, optional) - `format` (enum, optional, one of summary, detailed) ``` curl -X POST https://valkiria.pro/api/v1/tools/generate_report -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"type":"performance"}' ``` ## generate_ad_copy Generate ad copy (AI). Writes paid-ad copy (ad headlines, primary texts, descriptions) for Google, Meta, TikTok and other ad platforms, the answer to "write ad headlines/ad text". One platform, tone, audience and language. It returns text only; nothing is created in an ad account. Organic social posts are smm_generate_post_draft. Spends one AI call. - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `ai:generate` - Parameters: - `product` (string, required): Product or service description - `platform` (string, required): Target ad platform (meta, google, tiktok, etc.) - `tone` (string, optional): Writing tone (professional, casual, urgent, fun) - `targetAudience` (string, optional): Target audience description - `language` (string, optional): Output language code, e.g. uk, pl or de (default: the account language) - `count` (integer, optional): Number of variants ``` curl -X POST https://valkiria.pro/api/v1/tools/generate_ad_copy -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"product":"example","platform":"example"}' ``` ## get_campaign_recommendations Get campaign recommendations. AI commentary on locally recorded campaign statistics (an AI call, can take up to a minute). Recommendations on connected ad cabinets are a separate list - Access: read-only; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `ai:generate` - Parameters: - `campaignId` (uuid, optional): Specific campaign (or all if omitted) - `limit` (integer, optional): Max number of campaigns to analyze ``` curl -X POST https://valkiria.pro/api/v1/tools/get_campaign_recommendations -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## optimize_budget Suggest budget allocation. Splits a total budget across the active campaigns by their recorded ROAS for a recent period, in their native currency (no conversion; campaigns in another currency are left out). It returns a suggestion only and changes no campaign. A campaign without recorded revenue has a null ROAS, not zero. - Access: read-only; free read - Authorization: OAuth scope `propose`; API key scope `ai:generate` - Parameters: - `totalBudget` (number, required): Total budget to allocate across campaigns - `currency` (string, optional): Native campaign currency; required when active campaigns use multiple currencies. No conversion is performed. - `period` (enum, optional, one of 7d, 14d, 30d): Historical period to base optimization on ``` curl -X POST https://valkiria.pro/api/v1/tools/optimize_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"totalBudget":1}' ``` ## generate_campaign_idea Generate campaign idea (AI). Writes a full campaign plan with AI from a product description and a goal: platforms, audiences, structure, budget split in the stated currency and ad copy. It returns a plan only; nothing is created in an ad account. Spends one AI call. - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `ai:generate` - Parameters: - `product` (string, required): Product or service to advertise - `goal` (string, required): Campaign goal (e.g., "increase signups by 30%") - `budget` (number, optional): Available budget in the explicit currency; currency is required when budget is provided - `currency` (string, optional): Native budget currency, e.g. UAH, EUR or USD; no implicit conversion - `language` (string, optional): Output language tag, e.g. uk, en-US or de; default: the account language; independent of target market - `targetMarket` (string, optional): Explicit country or region to target; never inferred from language or currency - `platforms` (string[], optional): Preferred platforms; unique names, maximum 10 ``` curl -X POST https://valkiria.pro/api/v1/tools/generate_campaign_idea -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"product":"example","goal":"example"}' ``` ## create_rule Create automation rule. Creates an automation rule: conditions on campaign metrics over a lookback window (CTR, CPC, CPA, ROAS, spend and others, money conditions in one stated currency) and actions (pause, resume, budget change, notify). The rule is checked on its interval and respects its cooldown. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: API key only (not available to connected assistants); API key scope `rules:write` - Parameters: - `name` (string, required): Rule name - `conditions` ({ metric, operator, value, value2?, currency?, lookbackDays? }[], required): Conditions that must ALL be true - `actions` ({ type, value?, notifyChannel? }[], required): Actions to take when conditions are met - `description` (string, optional) - `scopeType` (enum, optional, one of all, platform, campaign): Which campaigns this rule applies to - `scopePlatforms` (string[], optional): Platforms (if scopeType=platform) - `scopeCampaignIds` (string[], optional): Campaign IDs (if scopeType=campaign) - `checkIntervalMinutes` (number, optional): How often to check (default: 60 min) - `cooldownMinutes` (number, optional): Minimum time between triggers (default: 360 min) ``` curl -X POST https://valkiria.pro/api/v1/tools/create_rule -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","conditions":[{"metric":"ctr","operator":"gt","value":10}],"actions":[{"type":"pause"}]}' ``` ## list_rules List automation rules. Automation rules of the account, newest first: name, enabled state, conditions, actions, check interval, cooldown and last trigger time. Filters by enabled; default 100 rules, max 500. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `rules:read` - Parameters: - `enabled` (boolean, optional): Filter by enabled/disabled - `limit` (integer, optional): Default 100 ``` curl -X POST https://valkiria.pro/api/v1/tools/list_rules -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## update_rule Update automation rule. Changes one automation rule: name, enabled state, conditions, actions, check interval or cooldown. Only the fields passed change; expectedConditions rejects the edit when the rule was changed in the meantime. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: API key only (not available to connected assistants); API key scope `rules:write` - Parameters: - `ruleId` (uuid, required) - `name` (string, optional) - `enabled` (boolean, optional) - `conditions` (any[], optional) - `actions` (any[], optional) - `checkIntervalMinutes` (number, optional) - `cooldownMinutes` (number, optional) - `expectedConditions` (any[], optional): Original conditions snapshot; reject stale edits without overwriting newer conditions ``` curl -X POST https://valkiria.pro/api/v1/tools/update_rule -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"ruleId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## delete_rule Delete automation rule. Deletes one automation rule by its id, for good. Its execution history stays readable; a rule can also be switched off instead (enabled=false) and kept. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: API key only (not available to connected assistants); API key scope `rules:write` - Parameters: - `ruleId` (uuid, required) ``` curl -X POST https://valkiria.pro/api/v1/tools/delete_rule -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"ruleId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## get_rule_templates Get rule templates. Ready automation rule templates (pause low CTR, pause high CPA, scale high ROAS, budget alerts and others) with their conditions and actions, as a starting point for a new rule. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `rules:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/get_rule_templates -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## get_rule_history Get rule history. Execution history of one automation rule, newest first: when it ran, whether the conditions matched, which campaigns it acted on, the action taken and its result or error. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `rules:read` - Parameters: - `ruleId` (uuid, required) - `limit` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/get_rule_history -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"ruleId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## get_campaign_health Get campaign health. Health score (0-100) and grade of one Valkiria campaign with its issues ranked by severity (critical, warning, info), each with the impact and a recommendation, from the recorded metrics and settings. The answer starts with a summary and the three issues to fix first. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `health:read` - Parameters: - `campaignId` (uuid, required) ``` curl -X POST https://valkiria.pro/api/v1/tools/get_campaign_health -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## get_account_health Get account health. Account health: the average score (0-100) and grade over active and paused campaigns, every campaign with its score (weakest first) and the top 20 issues ranked by severity, including expired platform logins, plus each ad account CTR/CPC/CPA against the median of anonymised Valkiria accounts on the same platform and vertical (null with the reason when the cohort is too small). The answer starts with a summary and ends with next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `health:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/get_account_health -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## list_campaign_recommendations List care recommendations. Recommended changes for the connected ad cabinets, from the standing audit: what to change, the reason with its evidence, the safety guard, the tier (auto, approval, advisory) and how each change is undone. Filters by cabinet, status and tier. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): One cabinet (Google customer id or Meta account id); omit for all of yours - `status` (enum, optional, one of pending, approved, applied, failed, rejected, retired, decided, all): Default: pending - `tier` (enum, optional, one of auto, approval, advisory) - `limit` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/list_campaign_recommendations -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## preview_campaign_recommendation Preview recommendation. Prepare and show exactly what a recommendation would publish (ad copy, keywords, which ad group keeps a duplicate keyword). Nothing is changed in the ad account; the preview is kept and is what an approval then publishes - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `id` (uuid, required) ``` curl -X POST https://valkiria.pro/api/v1/tools/preview_campaign_recommendation -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"id":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## validate_campaign_recommendation Validate recommendation with ad platform. Have the ad platform check every request a recommendation would make, without changing anything. Approving does this first on its own. Uses validate-only requests of the Google Ads API (https://developers.google.com/google-ads/api/docs/start) or the Meta Marketing API (https://developers.facebook.com/docs/marketing-api) - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `id` (uuid, required) ``` curl -X POST https://valkiria.pro/api/v1/tools/validate_campaign_recommendation -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"id":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## decide_campaign_recommendation Approve or reject recommendation. Approve or reject a recommendation. Approving applies the change in the ad account at once and can change what is spent; preview it first. Assistants connected through sign-in (OAuth) can only reject: approving is done by the owner on the Campaign care page in Valkiria - Access: overwrites or deletes a Valkiria record; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `id` (uuid, required) - `decision` (enum, required, one of approve, reject) ``` curl -X POST https://valkiria.pro/api/v1/tools/decide_campaign_recommendation -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"id":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10","decision":"approve"}' ``` ## get_correction_learning Get correction learning. What the system has learned from corrections made across the cabinets it looks after (aggregated over every client; cabinet ids are shown only to operators who see every cabinet) — by its own recommendations, by operators and working sessions, and by people in the ad platform itself: how often each kind of change is made, in how many cabinets, how conversions and cost per conversion moved in the 7 days after, how often it is approved or rejected when proposed, and which frequent corrections no recommendation covers yet. Also each kind's adequacy verdicts with reasons (undone within a week, unsafe budget jump, raised without conversions, closed cabinet...), and the rules the system learned from adequate corrections proven to work (candidate / active / retired, with sample size, cabinets, share improved, Wilson bound and sign test) — active rules guide campaign setup, the AI chat and the recommendation order. Paged: section, limit, offset; totals per section - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `section` (enum, optional, one of corrections, uncovered, rules, detectorCandidates): One part of the report; all four when left out - `limit` (integer, optional): Rows per section (default 20) - `offset` (integer, optional): Rows to skip (default 0) ``` curl -X POST https://valkiria.pro/api/v1/tools/get_correction_learning -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## get_business_location Get business location. Where the business of one of your cabinets physically is: the confirmed address, or the addresses found on the client's site and the web (each with source URL, evidence and confidence, waiting for confirmation), whether it is a physical business at all, the agreed geo scope and the options for it (radius, city, city and region, districts, wider). Reads what is stored and changes nothing; searching the site and the web again is a separate tool - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, required) ``` curl -X POST https://valkiria.pro/api/v1/tools/get_business_location -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"customerId":"1234567890"}' ``` ## discover_business_location Search site and web for the business address. Search the client's site and the web again for the physical address of one of your cabinets and store the addresses found as candidates waiting for confirmation (each with source URL, evidence and confidence). Does not confirm an address and changes nothing in the ad account; meant for when the stored candidates are missing or outdated - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `customerId` (string, required) ``` curl -X POST https://valkiria.pro/api/v1/tools/discover_business_location -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"customerId":"1234567890"}' ``` ## confirm_business_location Confirm business location. Confirm the business address of a cabinet (a found candidate by index, or a corrected address), reject a candidate, mark the client as not a physical business, or set the geo scope by option id. A confirmed address is what the audit and campaign building keep the ads around - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `customerId` (string, required) - `action` (enum, required, one of confirm, reject, not_physical, set_scope) - `index` (integer, optional) - `address` (string, optional) - `city` (string, optional) - `optionId` (string, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/confirm_business_location -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"customerId":"1234567890","action":"confirm"}' ``` ## list_campaign_findings List campaign audit findings. Open findings of the standing campaign audit for one cabinet (Google customer id or Meta account id): what is wrong, severity, the campaign it concerns and the evidence behind it. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, required) - `platform` (enum, optional, one of google_ads, meta_ads) - `severity` (enum, optional, one of blocking, defect, warning) - `limit` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/list_campaign_findings -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"customerId":"1234567890"}' ``` ## get_campaign_review Get campaign review. The latest stored review of one cabinet: what limits delivery, where the money went (in the cabinet currency) and the ranked first steps, with the date of the review. A missing figure means not measured. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `customerId` (string, required) ``` curl -X POST https://valkiria.pro/api/v1/tools/get_campaign_review -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"customerId":"1234567890"}' ``` ## list_client_exclusions List client exclusions. List what the client of a cabinet does not do: terms that became negative keywords in every grammatical form and are reported by the audit. Read-only - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, required) ``` curl -X POST https://valkiria.pro/api/v1/tools/list_client_exclusions -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"customerId":"1234567890"}' ``` ## set_client_exclusions Set client exclusions. Add or remove what the client of a cabinet does not do. Added terms become negative keywords in every grammatical form; removal lifts them. Requires campaigns:write - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `customerId` (string, required) - `action` (enum, required, one of add, remove) - `terms` (string[], optional): For add - `term` (string, optional): For remove - `reason` (string, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/set_client_exclusions -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"customerId":"1234567890","action":"add"}' ``` ## billing_plans_info Subscription plans. Subscription plans available to this account, their limits and the pricing page URL. Plan names may carry translations; the account language is respected. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/billing_plans_info -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## billing_usage Plan usage. Current plan, subscription status and quota usage (limit -1 = unlimited, used null = not readable right now). Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/billing_usage -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## billing_checkout_link Create checkout link. Create a hosted Stripe checkout page for a plan and return its URL. Does not charge; the owner completes payment in the browser. Not offered inside clients whose policy forbids checkout links (returns pricing_info_url instead). - Access: draft, proposal or AI generation; calls an outside service; free read - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `planSlug` (string, required): Plan slug from billing_plans_info - `interval` (enum, required, one of monthly, yearly): Billing interval ``` curl -X POST https://valkiria.pro/api/v1/tools/billing_checkout_link -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"planSlug":"example","interval":"monthly"}' ``` ## market_intelligence_start Start market analysis. Enqueue a deep market-intelligence analysis (website audit, market research, competitors). Consumes AI units of the plan. Returns a runId to poll. Report language follows the account language. - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `ai:generate` - Parameters: - `websiteUrl` (uri, optional): Website to analyse (required when projectId is absent) - `projectId` (string, optional): Owned project UUID to attach the run to - `industry` (string, optional): Industry hint - `country` (string, optional): Country or market hint - `competitors` (string[], optional): Competitor names or URLs - `keywords` (string[], optional): Seed keywords - `adPlatforms` (enum[], optional, one of google_ads, meta_ads, tiktok_ads, linkedin_ads, microsoft_ads): Ad platforms to consider (default google_ads, meta_ads) ``` curl -X POST https://valkiria.pro/api/v1/tools/market_intelligence_start -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## market_intelligence_status Market analysis status. Status of one market intelligence run owned by this account (queued, running, done, failed) with a bounded summary of its brief: market, competitors, demand and the main findings, and the dashboard link. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `runId` (string, required): Run UUID from market_intelligence_start ``` curl -X POST https://valkiria.pro/api/v1/tools/market_intelligence_status -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"runId":"1234567890"}' ``` ## market_intelligence_latest Latest market analysis. The latest market intelligence run of the account or of one project: status, date, a bounded summary of its brief (market, competitors, demand, main findings) and the dashboard URL of the full report. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `projectId` (string, optional): Project UUID; omitted = account-level runs ``` curl -X POST https://valkiria.pro/api/v1/tools/market_intelligence_latest -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## seo_keyword_ideas Keyword ideas. Keyword ideas with search volume for seed keywords in a market (Keyword Planner and Search Console when connected). Consumes SEO volume-lookup units of the plan. Returns null volumes when no data source is available. - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `seo:read` - Parameters: - `seeds` (string[], required): Seed keywords - `region` (enum, optional, one of ua, us, gb, de, fr, es, pl, cz, sk, ru, kz, by, it, at, nl): Market (default ua) - `projectId` (string, optional): Owned project UUID (enables Search Console data) - `limit` (integer, optional): Max ideas (default 50) ``` curl -X POST https://valkiria.pro/api/v1/tools/seo_keyword_ideas -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"seeds":["example"]}' ``` ## seo_site_audit_start Run site audit. Crawl up to maxPages public pages of a domain and store a technical SEO audit. Runs synchronously (seconds to a minute). Consumes SEO audit-page units of the plan. - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `ai:generate` - Parameters: - `domain` (string, required): Domain or URL to audit - `projectId` (string, optional): Owned project UUID to attach the audit to - `maxPages` (integer, optional): Pages to crawl (default 10) ``` curl -X POST https://valkiria.pro/api/v1/tools/seo_site_audit_start -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"domain":"example.com"}' ``` ## seo_site_audit_status Site audit result. Result of one stored site audit owned by this account: overall and per-area scores (technical, content, speed) and up to 50 issues with severity, page and how to fix each. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `auditId` (string, required): Audit UUID from seo_site_audit_start ``` curl -X POST https://valkiria.pro/api/v1/tools/seo_site_audit_status -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"auditId":"1234567890"}' ``` ## seo_gsc_summary Search Console summary. Daily position/click/impression totals and top tracked keywords from the Google Search Console snapshot of an owned project. Empty when the project has no Search Console connection. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `projectId` (string, required): Owned project UUID - `days` (integer, optional): Window in days (default 28) ``` curl -X POST https://valkiria.pro/api/v1/tools/seo_gsc_summary -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"projectId":"1234567890"}' ``` ## website_audit Website pulse check. Fetch one public URL once and report reach/search/tracking checks (title, description, analytics tags, response time). It performs a plain HTTP GET of the given public URL from Valkiria's server and reads the returned HTML; no third-party API is called. This is a read of a public site, not of account data. - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `url` (uri, required): Public http(s) URL ``` curl -X POST https://valkiria.pro/api/v1/tools/website_audit -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"url":"https://example.com"}' ``` ## smm_generate_post_draft Generate post drafts. Organic social media post text (not paid ads) with hashtags, for a page or profile feed; ad headlines and ad copy are generate_ad_copy. Consumes one AI generation. Nothing is saved or published. Text output follows the language of the request (or the account language when none is given). - Access: read-only; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `ai:generate` - Parameters: - `topic` (string, required): What the post is about - `platform` (enum, optional, one of instagram, tiktok, facebook, threads, x, linkedin): Target network - `tone` (string, optional): Tone of voice - `language` (string, optional): Output language (default: account language) - `count` (integer, optional): Number of variants (default 3) ``` curl -X POST https://valkiria.pro/api/v1/tools/smm_generate_post_draft -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"topic":"running shoes"}' ``` ## smm_best_time Best posting time. AI-estimated best posting times per platform; expected engagement is an estimate, not measured data. Consumes one AI generation. Text output follows the language of the request (or the account language when none is given). - Access: read-only; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `ai:generate` - Parameters: - `platforms` (enum[], required, one of instagram, tiktok, facebook, threads, x, linkedin): Networks to cover - `audience` (string, optional): Audience description - `timezone` (string, optional): IANA timezone ``` curl -X POST https://valkiria.pro/api/v1/tools/smm_best_time -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"platforms":["instagram"]}' ``` ## smm_hashtag_research Hashtag research. AI-estimated hashtags for a topic with popularity/relevance/competition labels (estimates, not measured). Consumes one AI generation. Text output follows the language of the request (or the account language when none is given). - Access: read-only; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `ai:generate` - Parameters: - `topic` (string, required): Topic or post text - `platform` (enum, optional, one of instagram, tiktok, facebook, threads, x, linkedin): Target network - `count` (integer, optional): Number of hashtags (default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/smm_hashtag_research -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"topic":"running shoes"}' ``` ## smm_schedule_post_draft Save post draft. Save a social post as a draft pending review, optionally with a proposed time and owned destination accounts. Never publishes or schedules for publishing; the owner confirms in the dashboard. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `content:write` - Parameters: - `content` (string, required): Post text - `title` (string, optional): Internal title - `contentType` (enum, optional, one of post, story, reel, video, carousel, thread, article): Format (default post) - `hashtags` (string[], optional): Hashtags without # - `linkUrl` (uri, optional): Link to attach - `scheduledAt` (date-time, optional): Proposed publish time (ISO 8601); stays a proposal - `accountIds` (string[], optional): Owned social account UUIDs - `projectId` (string, optional): Owned project UUID - `aiGenerated` (boolean, optional): Mark the text as AI-generated ``` curl -X POST https://valkiria.pro/api/v1/tools/smm_schedule_post_draft -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"content":"example"}' ``` ## workflows_list List workflows. Automation workflows of this account: name, trigger, status (active or paused), run counts by result and the id and time of the last run, which the run status read takes. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `limit` (integer, optional): Max workflows (default 50) ``` curl -X POST https://valkiria.pro/api/v1/tools/workflows_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## workflow_run_status Workflow run status. One workflow run owned by this account: status, start and end time, error when it failed, and up to 50 steps with their status and output summary. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `runId` (string, required): Workflow run UUID ``` curl -X POST https://valkiria.pro/api/v1/tools/workflow_run_status -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"runId":"1234567890"}' ``` ## attribution_report Attribution report. Multi-touch attribution of recorded conversions by channel for a date range and model. Read-only; amounts stay in the recorded currency. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `model` (enum, optional, one of first_touch, last_touch, linear, time_decay, position_based): Attribution model (default last_touch) - `dateFrom` (string, optional): Start date YYYY-MM-DD (default 30 days ago) - `dateTo` (string, optional): End date YYYY-MM-DD (default today) ``` curl -X POST https://valkiria.pro/api/v1/tools/attribution_report -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## predictions_list Stored predictions. Stored AI predictions (ROI, conversions, spend, revenue, trend, anomaly) of this account with confidence and, when known, actuals. Read-only; does not generate predictions. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `predictionType` (enum, optional, one of roi, conversions, spend, revenue, trend, anomaly): Filter by type - `limit` (integer, optional): Max rows (default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/predictions_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## budget_pacing Budget pacing. Pacing of every Meta, Google, TikTok, LinkedIn, Pinterest, Reddit, Snapchat and Apple Ads campaign that has a budget in the synced data: spend so far in the budget period (calendar month for daily budgets, start to end for lifetime budgets) against what the budget allows for the days gone, the projected spend at the end of the period at the current rate, and status under / on / over pace (under 85%, over 115% of expected). Grouped per ad account in its own currency, not totalled across currencies. null means not measured. Active campaigns only unless includeInactive. Spotify (budgets on ad sets) and Nextdoor (no synced spend) are not paced. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `platform` (enum, optional, one of meta, google, tiktok, linkedin, pinterest, reddit, snapchat, apple): Default every paced platform - `adAccountId` (string, optional): Valkiria id of one ad account - `includeInactive` (boolean, optional): Also paused / ended campaigns (default false) - `limit` (integer, optional): Campaigns to pace (default 100) ``` curl -X POST https://valkiria.pro/api/v1/tools/budget_pacing -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## get_account_playbook Get account playbook. Operating playbook for one connected ad account, built from its last 90 days: account state, grounded facts, rules and ready prompts (SKILL.md and PROMPTBOOK.md text). Changes nothing in the ad account: on the first call Valkiria computes it from stored data and keeps it for later calls. It describes how the owner wants that account worked on. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `platform` (string, optional): Platform key as returned in `accounts`, e.g. google_ads or meta_ads - `accountId` (string, optional): Account id as returned in `accounts`. Optional when only one ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/get_account_playbook -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## refresh_account_playbook Refresh account playbook. Rebuild the playbook of one connected ad account from fresh data. Free; changes nothing in the ad account. Returns the build status; the playbook text itself becomes available once the status is completed. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `platform` (string, optional): Platform key as returned in `accounts`, e.g. google_ads or meta_ads - `accountId` (string, optional): Account id as returned in `accounts`. Optional when only one ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/refresh_account_playbook -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## get_referral_link Referral link and status. Return this account's invitation link and its status: how many invited people signed up, completed a first task and were rewarded, and the bonus AI-chat actions still available with their nearest expiry. A new account that signs up through the link gets bonus AI-chat actions; the inviter gets bonus AI-chat actions after the invited account completes its first task. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/get_referral_link -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## get_partner_status Partner programme: link, leads and commission. For a Valkiria partner (cash affiliate programme): the partner link and code, the commission rate and period, clicks, leads, registrations and paying customers brought, and commission per currency in minor units: on hold, approved, payout requested, paid, and the minimum payout. For an account that is not a partner, returns is_partner false and the application page. Read-only; payouts are bank transfers made by Valkiria by hand. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/get_partner_status -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## crm_connections CRM connections and their health. List the CRMs this account sends leads to: name, whether it is on, how many leads were delivered and how many the CRM refused, the last error in the CRM's own words, the address the CRM calls to report deal stages, the last note about an incoming call (for example a stage that is not mapped yet) and the owner's stage map. Also returns the CRMs that can be connected (13 direct, the rest through a webhook) and setup_url. Read-only; credentials are not part of the answer. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `leads:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/crm_connections -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## crm_connection_test Send a test lead to a connected CRM. Send one clearly marked test lead ("Valkiria Test") to a connected CRM and report whether the CRM accepted it or what it answered. It creates a real record in the CRM. connection_id comes from crm_connections. - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: API key only (not available to connected assistants); API key scope `leads:write` - Parameters: - `connection_id` (uuid, required) ``` curl -X POST https://valkiria.pro/api/v1/tools/crm_connection_test -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"connection_id":"3f2b8c1e-7a4d-4c9b-9e21-5d6f7a8b9c10"}' ``` ## linkedin_list_ads List LinkedIn ads. Ads (creatives) of one LinkedIn campaign, live from LinkedIn, with lifetime impressions, clicks, spend and conversions per ad. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read` - Parameters: - `campaignId` (string, required): LinkedIn campaign id - `accountId` (string, optional): LinkedIn ad account id. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_list_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## linkedin_create_draft Create LinkedIn draft. Create a LinkedIn campaign group, campaign or ad as a DRAFT in the ad account. Drafts do not deliver or spend; a person launches them in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: API key only (not available to connected assistants) - Parameters: - `kind` (enum, required, one of campaign_group, campaign, creative) - `accountId` (string, optional): LinkedIn ad account id. Optional when a default account is set for this platform (set_default_account) - `name` (string, optional): Group or campaign name - `campaignGroupId` (string, optional): For a campaign: its group - `politicalIntent` (enum, optional, one of POLITICAL, NOT_POLITICAL): For a campaign: the advertiser declaration, never assumed - `dailyBudget` (number, optional): For a campaign: daily budget in account currency - `totalBudget` (number, optional) - `objectiveType` (string, optional) - `costType` (enum, optional, one of CPC, CPM, CPV) - `targeting` (object, optional): For a campaign: {locations|industries|jobFunctions|seniorities|staffCountRanges|interfaceLocales: [urn]}; locations required - `campaignId` (string, optional): For an ad: its campaign - `postUrn` (string, optional): For an ad: an existing urn:li:share / urn:li:ugcPost - `commentary` (string, optional): For an ad without postUrn: text of a new company-page post - `organizationId` (string, optional) - `landingUrl` (uri, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_create_draft -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"kind":"campaign_group"}' ``` ## linkedin_change Change LinkedIn campaign or ad. Pause or resume a LinkedIn campaign or ad, or set a campaign daily budget. The change goes through the owner's write policy: it is applied at once when the policy allows it, otherwise it is queued for approval on the Approvals page. Resuming or raising a budget can start spending. Available to API keys only; it is not offered to assistants connected through OAuth. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: overwrites or deletes a Valkiria record; calls an outside service; counts against the monthly allowance - Authorization: API key only (not available to connected assistants) - Parameters: - `entity` (enum, required, one of campaign, ad) - `entityId` (string, required): LinkedIn campaign id, or creative id/URN - `accountId` (string, optional): LinkedIn ad account id. Optional when a default account is set for this platform (set_default_account) - `status` (enum, optional, one of PAUSED, ACTIVE) - `dailyBudget` (number, optional): Campaigns only - `reason` (string, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_change -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"entity":"campaign","entityId":"1234567890"}' ``` ## google_ads_list_accounts List Google Ads accounts. Google Ads accounts connected to this Valkiria workspace, with the customer id every other google_ads_* tool needs, the access mode the owner set (full, read_only, manual, excluded) and the status recorded at the last sync: active, not_enabled (Google deactivated it), access_denied, closed or sync_failed, with the sync error when there is one. Only accounts with status active answer reads. Usable accounts come first; onlyActive=false also lists the others. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `limit` (integer, optional): Accounts per page (default 50) - `offset` (integer, optional): Accounts to skip (default 0) - `onlyActive` (boolean, optional): Default true: only accounts with status active ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_list_accounts -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_campaigns List Google Ads campaigns. Campaigns of one Google Ads account, live from Google: status, type, bid strategy, daily budget and impressions, clicks, cost and conversions for the period, enabled campaigns first, then highest cost. Paged: limit and offset, with total, returned and has_more. Cost and budget are in the account currency. Conversions and cost per conversion across all platforms are in get_conversion_report. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `dateRange` (enum, optional, one of LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, default "LAST_30_DAYS") - `limit` (integer, optional): Rows per page (default 25, max 200) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_campaign_structure Get Google Ads campaign structure. One campaign as a tree: ad groups, and under each its ads (responsive search ad headlines, descriptions, final URLs, status) and keywords (text, match type, status, bid). Gives the ids the propose tools take: adGroupId, adId and keywordId. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_campaign_structure -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## google_ads_keywords Get Google Ads keywords with metrics. Keywords of an account, campaign or ad group with quality score, bid and impressions, clicks, cost and conversions for the period, highest cost first. Paged: limit and offset, with total, returned and has_more. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `dateRange` (enum, optional, one of LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, default "LAST_30_DAYS") - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional): Google ad group id - `limit` (integer, optional): Rows per page (default 25, max 200) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_search_terms Get Google Ads search terms report. The real searches that triggered ads (search terms report) for an account, campaign or ad group, with impressions, clicks, cost and conversions, highest cost first. Shows which searches could become keywords or negative keywords. Paged: limit and offset, with total, returned and has_more. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `dateRange` (enum, optional, one of LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, default "LAST_30_DAYS") - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional): Google ad group id - `limit` (integer, optional): Rows per page (default 25, max 200) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_search_terms -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_wasted_spend Find Google Ads wasted spend. Search terms and keywords that spent money in the period and brought no conversions, highest cost first, with the total, its share of the spend of the same scope, and ROAS of the scope with a roasBelowOne flag (null when no conversion value is recorded). Zero conversions means none were recorded, which can also be a conversion tracking gap rather than waste. Both lists are paged with the same limit and offset; the totals cover every row, not only the page. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `dateRange` (enum, optional, one of LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, default "LAST_30_DAYS") - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional): Google ad group id - `minCost` (number, optional, default 0): Leave out items that spent less than this, in account currency - `limit` (integer, optional): Rows per page (default 25, max 200) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_wasted_spend -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_negative_keywords List Google Ads negative keywords. Negative keywords of one campaign: those set on the campaign itself and those set on its ad groups, with match type and the ids google_ads_propose_remove_negative_keywords needs. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_negative_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## google_ads_extensions List Google Ads extensions (assets). Ad extensions linked to one campaign and to the whole account: sitelinks, callouts, structured snippets, calls, prices and promotions, with their texts and status. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_extensions -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## google_ads_pmax_asset_groups List Performance Max asset groups. Asset groups of Performance Max campaigns (one campaign or the whole account) with status, ad strength, final URLs and their search themes. Gives the assetGroupId the search-theme propose tools take. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_pmax_asset_groups -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_campaign_targeting Get Google Ads campaign targeting. Where and when one campaign shows: targeted locations and languages (with the criterionId google_ads_propose_remove_targeting takes), excluded locations, the ad schedule and whether it targets presence only. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_campaign_targeting -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## google_ads_keyword_ideas Research Google Ads keywords. Keyword Planner ideas from seed keywords and/or a landing page URL for one location and language: average monthly searches, competition and the top-of-page bid range in the account currency. Uses the Google Ads API keyword planning service: https://developers.google.com/google-ads/api/docs/keyword-planning/generate-keyword-ideas - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `location` (string, required): Country, region or city name, e.g. "Slovakia" - `language` (string, required): Language name or ISO code, e.g. "sk" - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `keywords` (string[], optional): Seed keywords - `url` (uri, optional): Landing page to take ideas from ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_keyword_ideas -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"location":"example","language":"en"}' ``` ## google_ads_conversion_actions Audit Google Ads conversion tracking. Conversion actions of the account (name, type, category, status, counting) with whether each recorded conversions in the last 30 days, and the tracking problems found: no enabled action, actions that record nothing, every conversion counted more than once. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_conversion_actions -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_account_history Get Google Ads change history. What was changed in the account recently (up to 30 days back): when, through which client (Google Ads UI, API, editor), which kind of resource, the operation and the fields changed, newest first. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `days` (enum, optional, one of 7, 14, 30, default "14") - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `limit` (integer, optional, default 100) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_account_history -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_conversion_tracking_audit Audit Google Ads conversion tracking setup. Conversion tracking of the account, facts only: every conversion action (not removed) with status, type, category, primary or secondary, counting, whether it counts in the Conversions column, its conversions in the last 90 days and the last date it recorded one; the enabled site-tag actions (webpage types) that recorded nothing in 90 days; and the account conversion tracking settings: tracking status, enhanced conversions for leads, accepted customer data terms. The API does not report the enhanced conversions for web switch per action. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_conversion_tracking_audit -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_explain_change Compare two periods of Google Ads campaigns. Facts for a question about what changed: per campaign, cost, clicks, impressions, conversions and CPA in period A and in period B with the absolute and percent differences, the account totals, a verdict that splits the change in conversions (or clicks) exactly into spend, CPM, CTR and conversion rate with the main cause and its money effect at period A cost per result, and the account change history (when, which client, resource, operation, changed fields) from the start of A to the end of B. Google keeps change history for 30 days, so older days of that window are reported as not covered. A period with zero or unmeasured results gets no split, with the reason. Cost is in the account currency. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `periodA` ({ from, to }, required): The earlier period, dates inclusive - `periodB` ({ from, to }, required): The later period, dates inclusive - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_explain_change -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"periodA":{"from":"2026-10-01","to":"2026-10-31"},"periodB":{"from":"2026-10-01","to":"2026-10-31"}}' ``` ## google_ads_impression_share Get Google Ads impression share. Search impression share per campaign for the last 30 days, and how much was lost to budget and to ad rank, in percent. Empty values mean Google reported nothing (non-search campaigns, thin data). Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_impression_share -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_audiences Get Google Ads audiences with performance. Audience segments (remarketing and customer lists, in-market, affinity, custom and combined segments) attached to campaigns and ad groups, with targeting or observation bid modifier and impressions, clicks, cost and conversions for the period, highest cost first; plus the account's user lists with size and membership status. Paged: limit and offset. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `dateRange` (enum, optional, one of LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, default "LAST_30_DAYS") - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional): Google ad group id - `limit` (integer, optional): Rows per page (default 25, max 200) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_audiences -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_assets Get Google Ads assets with performance labels. Assets in use and how Google rates them: responsive search ad headlines and descriptions per ad, and Performance Max asset group assets (texts, images, videos), each with field type, status and Google's performance label (BEST, GOOD, LOW, LEARNING, PENDING), plus impressions, clicks, cost and conversions where Google reports them. One campaign or the whole account. Paged: limit and offset. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `dateRange` (enum, optional, one of LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, default "LAST_30_DAYS") - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `limit` (integer, optional): Rows per page (default 25, max 200) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_assets -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_recommendations Get Google's own Google Ads recommendations. The recommendations Google itself shows for the account (Recommendations page): type, the campaign and ad group it concerns, and the estimated impact as base versus potential impressions, clicks, cost and conversions per week. These are Google's suggestions, not Valkiria's; applying one can raise spend. Paged: limit and offset. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `limit` (integer, optional): Rows per page (default 25, max 200) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_recommendations -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_experiments List Google Ads experiments. Experiments of the account (campaign drafts and A/B tests, Performance Max experiments): name, type, status, start and end dates, and the arms with control flag, traffic split and the campaigns in each. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_experiments -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_ad_performance Get Google Ads ad performance. Per-ad results for an account, campaign or ad group: ad type, status, approval status, ad strength of responsive search ads (EXCELLENT, GOOD, AVERAGE, POOR), final URL, and impressions, clicks, CTR, cost, conversions and cost per conversion for the period, highest cost first. Gives the adId the ad propose tools take. Paged: limit and offset. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `dateRange` (enum, optional, one of LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, default "LAST_30_DAYS") - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional): Google ad group id - `limit` (integer, optional): Rows per page (default 25, max 200) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_ad_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_geo_performance Get Google Ads performance by location. Results by the country and location type (where people are or what they showed interest in) for an account, campaign or ad group: geo target constant, impressions, clicks, cost and conversions for the period, highest cost first. Paged: limit and offset. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `dateRange` (enum, optional, one of LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, default "LAST_30_DAYS") - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional): Google ad group id - `limit` (integer, optional): Rows per page (default 25, max 200) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_geo_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_device_performance Get Google Ads performance by device. Results by device (mobile, desktop, tablet, connected TV) per campaign for the period: impressions, clicks, cost, conversions and cost per conversion, highest cost first, with the account totals per device. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `dateRange` (enum, optional, one of LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, default "LAST_30_DAYS") - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_device_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_query Run a read-only GAQL query. Runs one Google Ads Query Language statement (SELECT FROM [WHERE] [ORDER BY] [LIMIT]) against the account and returns the rows keyed by the selected field paths. Read-only by construction: the statement goes to googleAds:searchStream, which cannot change anything. At most 500 rows (a larger or missing LIMIT is set to 500); every *_micros field also comes as an amount in account currency units. Field reference: developers.google.com/google-ads/api/fields. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `query` (string, required): GAQL statement, e.g. SELECT campaign.name, metrics.clicks FROM campaign WHERE segments.date DURING LAST_7_DAYS - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_query -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"query":"running shoes"}' ``` ## google_ads_pmax_search_insights Get Performance Max search-term categories. Search-term categories Google groups a Performance Max campaign's searches into (campaign_search_term_insight), with impressions, clicks, conversions and conversion value per category for the period, most clicks first, and the click share of the top three categories. Google reports no cost per category. One campaign per call. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `dateRange` (enum, optional, one of LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, default "LAST_30_DAYS") - `limit` (integer, optional): Rows per page (default 25, max 200) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_pmax_search_insights -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## google_ads_shared_negative_lists Get shared negative keyword lists. Shared negative keyword lists (enabled NEGATIVE_KEYWORDS): name, keyword count, up to 200 keywords each, and observed campaign attachments. Fetch completeness is reported separately for sets (500), links (5000), and criteria (10000); reaching a cap is incomplete. attached=true means an observed link, false means confirmed absence, null means unknown because links are capped. Keyword preview truncation is explicit; total counts observed lists. If truncated=true, returned arrays are incomplete regardless of fetch flags. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `limit` (integer, optional): Rows per page (default 25, max 200) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_shared_negative_lists -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_labels Get Google Ads labels. Observed account labels (name, status, description) and campaign links, with campaign status. Fetch completeness is reported for labels (1000) and links (5000); reaching a cap is incomplete. campaignsComplete=false means a label may have further links. total counts observed labels; total_is_minimum identifies a capped inventory. If truncated=true, returned arrays are incomplete regardless of fetch flags. Uses the Google Ads API: https://developers.google.com/google-ads/api/docs/start - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `limit` (integer, optional): Rows per page (default 25, max 200) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_labels -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_propose_add_keywords Propose adding keywords. Propose new keywords for one ad group (text, match type, optional bid in account currency). Keywords the ad group already has are left out. After approval they are added in the chosen status (ENABLED by default, which can start spend). Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Google ad group id - `keywords` ({ text, matchType?, cpcBid? }[], required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `status` (enum, optional, one of ENABLED, PAUSED, default "ENABLED") - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_add_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","keywords":[{"text":"running shoes"}]}' ``` ## google_ads_propose_update_keyword Propose a keyword change. Propose one change to one keyword: a new bid (account currency), pause or enable it, or another match type. Takes exactly one of cpcBid, status, matchType. Google cannot edit a match type, so that one is applied as: create the keyword with the new type, confirm it, remove the old one (its statistics stay with the removed keyword). Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `keywordId` (string, required): Keyword id as ~ (from google_ads_keywords) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `cpcBid` (number, optional) - `status` (enum, optional, one of ENABLED, PAUSED) - `matchType` (enum, optional, one of BROAD, PHRASE, EXACT) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_update_keyword -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"keywordId":"1234567890"}' ``` ## google_ads_propose_remove_keywords Propose removing keywords. Propose removing up to 20 keywords for good. A removed keyword cannot be restored in Google Ads: undoing this adds the keywords again with their former match type, bid and status, without their history. Pausing a keyword stops it and keeps it. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `keywordIds` (string[], required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_remove_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"keywordIds":["1234567890"]}' ``` ## google_ads_propose_add_negative_keywords Propose adding negative keywords. Propose negative keywords for a campaign or for one ad group, so ads stop showing on those searches. Negatives already present are left out. Can be undone from the operations history after it is applied. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `level` (enum, required, one of campaign, ad_group): Where the negatives live: the whole campaign or one ad group - `id` (string, required): Campaign id for level=campaign, ad group id for level=ad_group - `terms` ({ text, matchType? }[], required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_add_negative_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"level":"campaign","id":"1234567890","terms":[{"text":"running shoes"}]}' ``` ## google_ads_propose_remove_negative_keywords Propose removing negative keywords. Propose removing negative keywords from a campaign or an ad group, named by text and match type (as listed among the negative keywords). Ads can then show on those searches again, which can raise spend. Can be undone after it is applied. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `level` (enum, required, one of campaign, ad_group): Where the negatives live: the whole campaign or one ad group - `id` (string, required): Campaign id for level=campaign, ad group id for level=ad_group - `terms` ({ text, matchType? }[], required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_remove_negative_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"level":"campaign","id":"1234567890","terms":[{"text":"running shoes"}]}' ``` ## google_ads_propose_add_pmax_search_themes Propose adding Performance Max search themes. Propose search themes for one Performance Max asset group: phrases that tell Google which searches the campaign is for (up to 50 per asset group, 80 characters each). Themes already present are left out. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `assetGroupId` (string, required): Performance Max asset group id (from google_ads_pmax_asset_groups) - `themes` (string[], required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_add_pmax_search_themes -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"assetGroupId":"1234567890","themes":["example"]}' ``` ## google_ads_propose_remove_pmax_search_themes Propose removing Performance Max search themes. Propose removing search themes from one Performance Max asset group, named by their text (as listed among the asset groups). Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `assetGroupId` (string, required): Performance Max asset group id (from google_ads_pmax_asset_groups) - `themes` (string[], required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_remove_pmax_search_themes -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"assetGroupId":"1234567890","themes":["example"]}' ``` ## google_ads_propose_add_pmax_audience_signals Propose adding Performance Max audience signals. Propose audience signals for one Performance Max asset group: audiences of this account (by audience id) that tell Google whom to look for first. Signals are hints, not limits: Performance Max still reaches people outside them. Audiences already on the asset group are left out; an id the account does not hold is refused. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `assetGroupId` (string, required): Performance Max asset group id (from google_ads_pmax_asset_groups) - `audienceIds` (string[], required): Google audience ids (the Audience resources of the account, as Performance Max campaign creation takes them) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_add_pmax_audience_signals -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"assetGroupId":"1234567890","audienceIds":["1234567890"]}' ``` ## google_ads_propose_remove_pmax_audience_signals Propose removing Performance Max audience signals. Propose removing audience signals from one Performance Max asset group, named by audience id. Signals are hints for Google, so removing one changes who Google looks for first, not who can see the ads. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `assetGroupId` (string, required): Performance Max asset group id (from google_ads_pmax_asset_groups) - `audienceIds` (string[], required): Google audience ids (the Audience resources of the account, as Performance Max campaign creation takes them) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_remove_pmax_audience_signals -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"assetGroupId":"1234567890","audienceIds":["1234567890"]}' ``` ## google_ads_propose_campaign_status Propose pausing or enabling a Google campaign. Propose pausing or enabling one campaign. Enabling can start spend. Can be undone from the operations history after it is applied. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `action` (enum, required, one of pause, enable) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_campaign_status -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","action":"pause"}' ``` ## google_ads_propose_ad_group_status Propose pausing or enabling a Google ad group. Propose pausing or enabling one ad group. Enabling can start spend. Can be undone from the operations history after it is applied. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Google ad group id - `action` (enum, required, one of pause, enable) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_ad_group_status -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","action":"pause"}' ``` ## google_ads_propose_ad_status Propose pausing or enabling a Google ad. Propose pausing or enabling one ad. Enabling can start spend. Can be undone from the operations history after it is applied. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `adId` (string, required): Ad id as ~ (from google_ads_campaign_structure) - `action` (enum, required, one of pause, enable) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_ad_status -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890","action":"pause"}' ``` ## google_ads_propose_bulk_status Propose pausing or enabling several Google Ads entities. Propose pausing or enabling up to 20 campaigns, ad groups, ads or keywords of one kind at once. One proposal is created per entity, so the owner can approve or reject each and undo each; entities already in that status are skipped. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `kind` (enum, required, one of campaign, ad_group, ad, keyword) - `ids` (string[], required): Campaign / ad group ids, or ~ for ads and keywords - `action` (enum, required, one of pause, enable) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_bulk_status -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"kind":"campaign","ids":["1234567890"],"action":"pause"}' ``` ## google_ads_propose_campaign_budget Propose a campaign daily budget. Propose a new daily budget for one campaign, in the account currency (rounded to the currency's smallest unit). Refused for a budget shared by several campaigns. Raising it raises spend. Can be undone after it is applied. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `dailyBudget` (number, required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_campaign_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","dailyBudget":1}' ``` ## google_ads_propose_bid_strategy Propose a campaign bid strategy. Propose another bid strategy for one campaign: MAXIMIZE_CLICKS, MAXIMIZE_CONVERSIONS, TARGET_CPA (needs targetCpa in account currency), MAXIMIZE_CONVERSION_VALUE, TARGET_ROAS (needs targetRoas, 4 = 400%) or MANUAL_CPC. A new strategy restarts learning and can change spend. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `bidStrategy` (enum, required, one of MAXIMIZE_CLICKS, MAXIMIZE_CONVERSIONS, TARGET_CPA, MAXIMIZE_CONVERSION_VALUE, TARGET_ROAS, MANUAL_CPC) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `targetCpa` (number, optional) - `targetRoas` (number, optional) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_bid_strategy -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","bidStrategy":"MAXIMIZE_CLICKS"}' ``` ## google_ads_propose_create_ad_group Propose a new ad group. Propose a new search ad group in one campaign, with an optional default bid in account currency. It is created PAUSED and empty; keywords, an ad and enabling it are separate proposals. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `name` (string, required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `cpcBid` (number, optional) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_create_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","name":"Example name"}' ``` ## google_ads_propose_create_search_ad Propose a new responsive search ad. Propose a responsive search ad for one ad group: 3-15 headlines (30 characters each), 2-4 descriptions (90 each), a final URL and optional display paths (15 each). Texts are never cut: too long is refused. The ad is created PAUSED; enabling it is a separate proposal. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Google ad group id - `headlines` (string[], required) - `descriptions` (string[], required) - `finalUrl` (string, required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `path1` (string, optional) - `path2` (string, optional) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_create_search_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","headlines":["example","example","example"],"descriptions":["example","example"],"finalUrl":"https://example.com"}' ``` ## google_ads_propose_create_search_campaign Propose a new Search campaign. Propose a complete new Search campaign: daily budget in account currency, bid strategy (MAXIMIZE_CLICKS by default, MAXIMIZE_CONVERSIONS, or TARGET_CPA with targetCpa), locations and languages by name, one ad group with 1-50 keywords, one responsive search ad (3-15 headlines of 30 characters, 2-4 descriptions of 90, https final URL) and optional campaign negative keywords. The campaign is created PAUSED and shows on Google Search only (no search partners, no Display); its ad group, keywords and ad are enabled inside it, so enabling the campaign is the one later step that starts spend. If Google refuses any part, the new campaign is removed again. Undo removes the campaign as long as it has not been enabled or shown. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `dailyBudget` (number, required) - `locations` (string[], required) - `languages` (string[], required) - `keywords` ({ text, matchType? }[], required) - `headlines` (string[], required) - `descriptions` (string[], required) - `finalUrl` (string, required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `bidStrategy` (enum, optional, one of MAXIMIZE_CLICKS, MAXIMIZE_CONVERSIONS, TARGET_CPA, default "MAXIMIZE_CLICKS") - `targetCpa` (number, optional) - `adGroupName` (string, optional) - `cpcBid` (number, optional) - `negativeKeywords` ({ text, matchType? }[], optional) - `path1` (string, optional) - `path2` (string, optional) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_create_search_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","dailyBudget":1,"locations":["example"],"languages":["en"],"keywords":[{"text":"running shoes"}],"headlines":["example","example","example"],"descriptions":["example","example"],"finalUrl":"https://example.com"}' ``` ## google_ads_propose_create_pmax_campaign Propose a new Performance Max campaign. Propose a new Performance Max campaign with one asset group: daily budget in account currency, Maximize conversions bidding, locations and languages by name, final URL, business name (25 characters), 3-15 headlines (30 characters, one of 15 or fewer), 1-5 long headlines (90), 2-5 descriptions (90, one of 60 or fewer), landscape and square images and a logo given as URLs (fetched and uploaded as image assets when applied), optional search themes and an optional audience signal. Texts are never cut: too long is refused. The campaign and its asset group are created PAUSED in one atomic request, so a refusal leaves nothing behind. Undo removes the campaign as long as it has not been enabled or shown. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `dailyBudget` (number, required) - `locations` (string[], required) - `languages` (string[], required) - `finalUrl` (string, required) - `businessName` (string, required) - `landscapeImageUrls` (string[], required): Landscape 1.91:1 images (e.g. 1200x628), public https URLs or Valkiria storage URLs, 5 MB each at most - `squareImageUrls` (string[], required): Square 1:1 images (e.g. 1200x1200) - `logoUrls` (string[], required): Square 1:1 logos (e.g. 1200x1200) - `headlines` (string[], required) - `longHeadlines` (string[], required) - `descriptions` (string[], required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `audienceId` (string, optional): Id of an audience of this account (customers//audiences/), used as the audience signal - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page - `searchThemes` (string[], optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_create_pmax_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","dailyBudget":1,"locations":["example"],"languages":["en"],"finalUrl":"https://example.com","businessName":"Example name","landscapeImageUrls":["https://example.com"],"squareImageUrls":["https://example.com"],"logoUrls":["https://example.com"],"headlines":["example","example","example"],"longHeadlines":["example"],"descriptions":["example","example"]}' ``` ## google_ads_propose_create_demand_gen_campaign Propose a new Demand Gen campaign. Propose a new Demand Gen campaign (YouTube, Discover, Gmail) with one ad group and one multi-asset image ad: daily budget in account currency, Maximize conversions bidding with an optional target CPA, locations and languages by name, final URL, business name (25 characters), 1-5 headlines (40 characters), 1-5 descriptions (90), at least one landscape or square image and a logo given as URLs (fetched and uploaded as image assets when applied) and an optional audience. Texts are never cut: too long is refused. The campaign is created PAUSED in one atomic request; its ad group and ad are enabled inside it, so enabling the campaign is the one later step that starts spend. Undo removes the campaign as long as it has not been enabled or shown. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `dailyBudget` (number, required) - `locations` (string[], required) - `languages` (string[], required) - `finalUrl` (string, required) - `businessName` (string, required) - `logoUrls` (string[], required): Square 1:1 logos (e.g. 1200x1200) - `headlines` (string[], required) - `descriptions` (string[], required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `landscapeImageUrls` (string[], optional, default []): Landscape 1.91:1 images (e.g. 1200x628), public https URLs or Valkiria storage URLs, 5 MB each at most - `squareImageUrls` (string[], optional, default []): Square 1:1 images (e.g. 1200x1200) - `audienceId` (string, optional): Id of an audience of this account (customers//audiences/), used as the audience signal - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page - `targetCpa` (number, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_create_demand_gen_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","dailyBudget":1,"locations":["example"],"languages":["en"],"finalUrl":"https://example.com","businessName":"Example name","logoUrls":["https://example.com"],"headlines":["example"],"descriptions":["example"]}' ``` ## google_ads_propose_create_demand_gen_ad_group Propose a new Demand Gen ad group with an image or YouTube video ad. Propose a new ad group in an existing Demand Gen campaign with one ad. format=image: a multi-asset ad from landscape and/or square images. format=video: a video responsive ad from 1-5 YouTube video ids, shown on YouTube (in-stream, in-feed, Shorts), Discover and Gmail. Both take a final URL, business name (25 characters), a logo, 1-5 headlines (40), 1-5 descriptions (90); video also takes 1-5 long headlines (90). Locations and languages are copied from an existing ad group of the campaign. Images are fetched and uploaded when applied. Texts are never cut: too long is refused. The ad group is always created PAUSED in one atomic request; undo removes it as long as it has not been enabled or shown. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `name` (string, required) - `format` (enum, required, one of image, video) - `finalUrl` (string, required) - `businessName` (string, required) - `logoUrls` (string[], required): Square 1:1 logos (e.g. 1200x1200) - `headlines` (string[], required) - `descriptions` (string[], required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `landscapeImageUrls` (string[], optional, default []): Landscape 1.91:1 images (e.g. 1200x628), public https URLs or Valkiria storage URLs, 5 MB each at most - `squareImageUrls` (string[], optional, default []): Square 1:1 images (e.g. 1200x1200) - `youtubeVideoIds` (string[], optional, default []) - `longHeadlines` (string[], optional, default []) - `callToAction` (string, optional): Button text, e.g. Shop now - `audienceId` (string, optional): Id of an audience of this account (customers//audiences/), used as the audience signal - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_create_demand_gen_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","name":"Example name","format":"image","finalUrl":"https://example.com","businessName":"Example name","logoUrls":["https://example.com"],"headlines":["example"],"descriptions":["example"]}' ``` ## google_ads_propose_update_search_ad Propose new texts for a responsive search ad. Propose replacing the headlines and/or the descriptions of one responsive search ad. Takes the full new set (3-15 headlines of 30 characters, 2-4 descriptions of 90): it replaces the current one, and the ad goes through Google review again. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `adId` (string, required): Ad id as ~ (from google_ads_campaign_structure) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `headlines` (string[], optional) - `descriptions` (string[], optional) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_update_search_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## google_ads_propose_add_extensions Propose sitelinks, callouts and structured snippets. Propose ad extensions for one campaign: sitelinks (text 25 characters, URL, optionally both description lines of 35), callouts (25) and structured snippets (a header such as Amenities, Brands, Courses, Degree programs in the campaign language, with 3-10 values of 25). Texts are never cut. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `sitelinks` ({ text, finalUrl, description1?, description2? }[], optional) - `callouts` (string[], optional) - `structuredSnippets` ({ header, values }[], optional) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_add_extensions -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## google_ads_propose_add_targeting Propose adding locations or languages. Propose more targeted locations (country, region or city names) and/or languages (names or ISO codes) for one campaign. Google resolves the names when the change is applied; a name it cannot resolve is reported, never silently skipped. A wider area can raise spend. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `locations` (string[], optional) - `languages` (string[], optional) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_add_targeting -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## google_ads_propose_remove_targeting Propose removing locations or languages. Propose removing targeted locations or languages from one campaign, named by criterionId (as listed in the campaign targeting). The last location is never removed: a campaign without one shows worldwide. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `criterionIds` (string[], required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_remove_targeting -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","criterionIds":["1234567890"]}' ``` ## google_ads_propose_apply_recommendation Propose applying a Google recommendation. Propose applying one of Google's own recommendations (from google_ads_recommendations) as Google suggests it: new keywords, a budget, a bid strategy, assets and so on, which can raise spend. After approval it is applied and confirmed by reading the account back. Not undoable as one step: what it changed shows in google_ads_account_history and is reverted with the matching propose tool. Uses RecommendationService ApplyRecommendation: https://developers.google.com/google-ads/api/reference/rpc/latest/RecommendationService Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `recommendationId` (string, required): Recommendation id (from google_ads_recommendations) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_apply_recommendation -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"recommendationId":"1234567890"}' ``` ## google_ads_propose_dismiss_recommendation Propose dismissing a Google recommendation. Propose dismissing one of Google's own recommendations (from google_ads_recommendations) so it leaves the Recommendations page. Nothing else in the account changes. Not undoable: a dismissed recommendation cannot be restored (Google may show it again later). Uses RecommendationService DismissRecommendation: https://developers.google.com/google-ads/api/reference/rpc/latest/RecommendationService Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `recommendationId` (string, required): Recommendation id (from google_ads_recommendations) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_dismiss_recommendation -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"recommendationId":"1234567890"}' ``` ## google_ads_propose_shared_negative_list Propose a shared negative keyword list. Propose creating a shared negative keyword list (or adding to an existing one by listId from google_ads_shared_negative_lists) with up to 200 keywords, and attaching it to up to 50 campaigns. One list keeps the same exclusions on many campaigns. Keywords and campaigns already on the list are skipped. Negatives stop ads on matching searches as soon as it is applied. Not undoable from Valkiria: detach or edit the list in Google Ads. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `listId` (string, optional): Existing list id; leave out to create a list named name - `name` (string, optional) - `keywords` ({ text, matchType? }[], optional, default []) - `campaignIds` (string[], optional, default []) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_shared_negative_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_propose_label_change Propose creating, applying or removing a Google Ads label. Propose putting a label on, or taking it off, up to 50 campaigns, ad groups or ads (ads as ~). action=apply with labelName creates the label when the account has none of that name. Existing labels and their links are in google_ads_labels. Labels change nothing in delivery or spend. Undo: propose the opposite action. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `action` (enum, required, one of apply, remove) - `kind` (enum, required, one of campaign, ad_group, ad) - `ids` (string[], required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `labelId` (string, optional) - `labelName` (string, optional) - `description` (string, optional) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_label_change -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"action":"apply","kind":"campaign","ids":["1234567890"]}' ``` ## google_ads_propose_bulk_rename Propose renaming Google campaigns or ad groups in bulk. Propose new names for up to 50 campaigns or ad groups at once: either explicit pairs (renames) or find-replace (find, replace; plain text, case-sensitive, every occurrence) over the given ids, or over every non-removed campaign / ad group of the account when ids are left out. Names that would not change are skipped; the before snapshot keeps every old name. Renaming changes no delivery. Responsive search ads have no editable name in Google Ads, so ads are not renamed. Undo: propose the reverse rename. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `kind` (enum, required, one of campaign, ad_group) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `renames` ({ id, newName }[], optional) - `find` (string, optional) - `replace` (string, optional) - `ids` (string[], optional) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_bulk_rename -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"kind":"campaign"}' ``` ## google_ads_propose_call_asset Propose a call asset (call extension). Propose a call asset on one campaign: a phone number (digits, spaces, optional leading +, 4-15 digits) with its ISO country code (e.g. SK, DE). Ads may then show a call button or the number. Undo: unlink it in Google Ads. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `countryCode` (string, required): ISO 3166-1 alpha-2 - `phoneNumber` (string, required) - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_call_asset -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","countryCode":"US","phoneNumber":"example"}' ``` ## google_ads_propose_remove_radius_targeting Propose removing radius targeting. Propose removing radius (proximity) targets from one campaign, by criterionId, or all of them with all=true. The current radius targets come back in the before snapshot (radius, units, city or coordinates). Refused when nothing location-like would remain, because the campaign would then show worldwide. Undo: add the radius again in Google Ads. Creates a proposal only: nothing changes in Google Ads until the account owner approves it on the Approvals page. Returns proposal_id and approve_url. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Google campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `customerId` (string, optional): Google Ads customer id (from google_ads_list_accounts), digits with or without dashes. Optional when a default account is set for this platform (set_default_account) - `criterionIds` (string[], optional) - `all` (boolean, optional) - `reason` (string, optional): Why, in one sentence; the owner sees it on the Approvals page ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_propose_remove_radius_targeting -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## meta_campaign_details Meta campaign details. One Meta campaign read live from Meta: status, objective, budget, and its ad sets (optimization, budget, targeting summary, learning stage) with their ads (status, copy, link, review feedback). Budgets are in the ad account currency. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): Meta id (digits) or the Valkiria id (UUID) of a synced object ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_campaign_details -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## meta_list_ad_sets List Meta ad sets. Ad sets of one Meta campaign, live: status, optimization goal, billing event, bid strategy, daily/lifetime budget (account currency), schedule, learning stage and the full targeting spec as Meta stores it (the base a targeting change is merged onto). Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): Meta id (digits) or the Valkiria id (UUID) of a synced object - `limit` (integer, optional): Rows to return (default 25) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_list_ad_sets -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## meta_list_ads List Meta ads. Ads of one Meta ad set or campaign, live: status, effective status and a creative summary (primary texts, headlines, descriptions, destination link, whether it promotes an existing post). Takes exactly one of adSetId or campaignId. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `adSetId` (string, optional): Meta id (digits) or the Valkiria id (UUID) of a synced object - `campaignId` (string, optional): Meta id (digits) or the Valkiria id (UUID) of a synced object - `limit` (integer, optional): Rows to return (default 25) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_list_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_get_ad_creatives Get Meta ad creatives. Creatives of one Meta ad, ad set or ad account, live: format (image, video, carousel, dynamic creative), primary texts, headlines, descriptions, call to action, destination link, UTM tags, image and thumbnail URLs, video ids, carousel cards and, for a dynamic creative, every asset variant Meta rotates. Takes exactly one of adId, adSetId or accountId. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `adId` (string, optional): Meta id (digits) or the Valkiria id (UUID) of a synced object - `adSetId` (string, optional): Meta id (digits) or the Valkiria id (UUID) of a synced object - `accountId` (string, optional): Meta ad account id (act_123 or 123) or its Valkiria id - `limit` (integer, optional): Rows to return (default 25) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_get_ad_creatives -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_ad_performance Meta ad-level performance. Per-ad performance from Meta Insights for an ad account, campaign or ad set: spend, impressions, clicks, CTR, CPC, CPM, reach, frequency and conversion-type actions, in the account currency. A null or missing metric means Meta did not report it, not zero. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `objectType` (enum, optional, one of account, campaign, adset): What objectId is (default account) - `objectId` (string, optional): Ad account, campaign or ad set id. Left out for the account: the saved default Meta account, or the only connected one - `datePreset` (enum, optional, one of today, yesterday, last_7d, last_14d, last_30d, last_90d, this_month, last_month): Default last_30d ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_ad_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_wasted_spend Meta wasted spend. Ads that spent money without a single conversion-type action (lead, purchase, registration, contact…) in the period, from Meta Insights, with each ad's share of the scope's spend. minSpend filters noise (account currency, default 0). A zero only means Meta attributed no conversion, which can also be a tracking gap. A null or missing metric means Meta did not report it, not zero. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `objectType` (enum, optional, one of account, campaign, adset): What objectId is (default account) - `objectId` (string, optional): Ad account, campaign or ad set id. Left out for the account: the saved default Meta account, or the only connected one - `datePreset` (enum, optional, one of today, yesterday, last_7d, last_14d, last_30d, last_90d, this_month, last_month): Default last_30d - `minSpend` (number, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_wasted_spend -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_explain_change Compare two periods of Meta results. Facts for a question about why Meta results moved: spend, impressions, clicks, CTR, CPM, conversions and cost per conversion of an ad account, campaign or ad set in period A and period B, from Meta Insights, and a verdict that splits the change in conversions (or clicks, when conversions are not measured in both periods) exactly into spend, CPM, CTR and conversion rate, with the main cause and its money effect at period A cost per result, in the account currency. A period with zero or unmeasured results gets no split, with the reason. A null or missing metric means Meta did not report it, not zero. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `periodA` ({ from, to }, required): The earlier period, dates inclusive - `periodB` ({ from, to }, required): The later period, dates inclusive - `objectType` (enum, optional, one of account, campaign, adset): What objectId is (default account) - `objectId` (string, optional): Ad account, campaign or ad set id. Left out for the account: the saved default Meta account, or the only connected one ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_explain_change -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"periodA":{"from":"2026-10-01","to":"2026-10-31"},"periodB":{"from":"2026-10-01","to":"2026-10-31"}}' ``` ## meta_creative_fatigue Meta creative fatigue. Ads whose audience is tiring: week over week (last 14 or 30 days) frequency rose by 15% or more to at least 2 while CTR fell by 15% or more, on at least 500 impressions per week. Returns the weekly numbers behind each verdict; an empty list means no ad met the rule, not that every creative is fresh. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `objectType` (enum, optional, one of account, campaign, adset): What objectId is (default account) - `objectId` (string, optional): Ad account, campaign or ad set id. Left out for the account: the saved default Meta account, or the only connected one - `window` (enum, optional, one of last_14d, last_30d): Default last_30d ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_creative_fatigue -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_placement_breakdown Meta placement breakdown. Spend and results by placement (publisher platform / position, e.g. "instagram / instagram_stories") for an ad account, campaign or ad set, from Meta Insights, in the account currency. Shows what each placement delivers, as the basis for a placement change. A null or missing metric means Meta did not report it, not zero. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `objectType` (enum, optional, one of account, campaign, adset): What objectId is (default account) - `objectId` (string, optional): Ad account, campaign or ad set id. Left out for the account: the saved default Meta account, or the only connected one - `datePreset` (enum, optional, one of today, yesterday, last_7d, last_14d, last_30d, last_90d, this_month, last_month): Default last_30d ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_placement_breakdown -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_delivery_status Meta delivery status. Why ads are or are not delivering, live from Meta: effective status per ad, Meta's own rejection reasons (ad_review_feedback, per policy and placement) and delivery issues (issues_info) exactly as Meta words them. By default only ads that are disapproved, with issues or in review; set all=true for every ad. Takes exactly one of accountId, campaignId or adSetId. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Meta ad account id (act_123 or 123) or its Valkiria id - `campaignId` (string, optional): Meta id (digits) or the Valkiria id (UUID) of a synced object - `adSetId` (string, optional): Meta id (digits) or the Valkiria id (UUID) of a synced object - `all` (boolean, optional) - `limit` (integer, optional): Rows to return (default 25) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_delivery_status -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_list_audiences List Meta custom audiences. Custom and lookalike audiences of one Meta ad account, live: type, approximate size range as Meta reports it, delivery and operation status, retention. Sizes are Meta's estimates; a missing size means Meta withheld it. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Meta ad account id (act_123 or 123) or its Valkiria id. Optional when a default account is set for this platform (set_default_account) - `limit` (integer, optional): Rows to return (default 25) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_list_audiences -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_list_pixels List Meta pixels. Pixels (datasets) of one Meta ad account, live, with the time Meta last received an event from each. A pixel that never fired has lastFiredTime null. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Meta ad account id (act_123 or 123) or its Valkiria id. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_list_pixels -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_list_pages List Meta Pages and Instagram accounts. Facebook Pages the connected Meta login has a role on (with the Instagram account linked to each) and, when accountId is given, the Pages that ad account may promote and the Instagram accounts attached to it. New ads and promoted posts take one of these page ids. Paged: limit (default 25) and the after cursor from nextCursor. partial=true means Meta had not answered everything within 15 seconds and the list holds what arrived. Answers are kept for a few minutes. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Meta ad account id (act_123 or 123) or its Valkiria id - `limit` (integer, optional): Rows to return (default 25) - `after` (string, optional): nextCursor of the previous page ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_list_pages -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_targeting_search Search Meta targeting options. Search Meta's own targeting catalogue: interests, behaviors, locations, locales, employers, schools. Returns Meta ids and Meta's audience size figures (never estimates of ours) to use in meta_update_ad_set_targeting or meta_add_ad_set. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `type` (enum, required, one of adinterest, adgeolocation, adTargetingCategory, adlocale, adworkemployer, adeducationschool): adTargetingCategory searches behaviors - `query` (string, required) - `accountId` (string, optional): Meta ad account id (act_123 or 123) or its Valkiria id - `limit` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_targeting_search -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"type":"adinterest","query":"running shoes"}' ``` ## meta_lead_form_submissions Meta lead form submissions. Instant (lead) forms of one Facebook Page and, live from Meta, the submissions made between since and until: time, form, ad and campaign, organic or paid, and the answers as the person entered them (names, emails, phones). The Page is one the connected Meta login has a role on (meta_list_pages). Answers are personal data: they are returned to the workspace owner only and are not stored or logged by this tool. Without formId the newest 10 forms are read. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `leads:read` - Parameters: - `pageId` (string, required) - `formId` (string, optional) - `since` (date-time, optional): ISO 8601; default 7 days ago - `until` (date-time, optional): ISO 8601; default now - `limit` (integer, optional): Submissions to return across forms (default 100) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_lead_form_submissions -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"pageId":"1234567890"}' ``` ## meta_list_advertiser_identities Meta advertiser identities. What a new ad set of one Meta ad account can name as advertiser and payer: the DSA recommendations for EU/EEA delivery (dsa_recommendations) and the default Valkiria applies when none is given (the business name, then the first promotable Page, then the account name). Verified regional identities (Taiwan, Australia, Singapore…) are not part of this list; their ids are in Meta Business Settings. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Meta ad account id (act_123 or 123) or its Valkiria id. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_list_advertiser_identities -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_ad_set_performance Meta ad set performance. Per-ad-set performance from Meta Insights for an ad account, campaign or one ad set: spend, impressions, clicks, CTR, CPC, CPM, reach, frequency and conversion-type actions, in the account currency, sorted by spend. A null or missing metric means Meta did not report it, not zero. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `objectType` (enum, optional, one of account, campaign, adset): What objectId is (default account) - `objectId` (string, optional): Ad account, campaign or ad set id. Left out for the account: the saved default Meta account, or the only connected one - `datePreset` (enum, optional, one of today, yesterday, last_7d, last_14d, last_30d, last_90d, this_month, last_month): Default last_30d ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_ad_set_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_insights_by_day Meta performance by day. Daily totals from Meta Insights for an ad account, campaign or ad set over the period: spend, impressions, clicks, CTR, CPC, CPM, reach and conversion-type actions per day, in the account currency, oldest first. A day Meta has no row for had no delivery. A null or missing metric means Meta did not report it, not zero. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `objectType` (enum, optional, one of account, campaign, adset): What objectId is (default account) - `objectId` (string, optional): Ad account, campaign or ad set id. Left out for the account: the saved default Meta account, or the only connected one - `datePreset` (enum, optional, one of today, yesterday, last_7d, last_14d, last_30d, last_90d, this_month, last_month): Default last_30d ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_insights_by_day -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_audience_breakdown Meta audience breakdown. Who the ads reached, from Meta Insights for an ad account, campaign or ad set: spend, impressions, clicks, CTR, CPC, CPM, reach and conversion-type actions split by age and gender (default), age, gender, country or region, in the account currency, sorted by spend. Meta reports demographic splits for delivered impressions only. A null or missing metric means Meta did not report it, not zero. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `objectType` (enum, optional, one of account, campaign, adset): What objectId is (default account) - `objectId` (string, optional): Ad account, campaign or ad set id. Left out for the account: the saved default Meta account, or the only connected one - `datePreset` (enum, optional, one of today, yesterday, last_7d, last_14d, last_30d, last_90d, this_month, last_month): Default last_30d - `dimension` (enum, optional, one of age_gender, age, gender, country, region): Default age_gender ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_audience_breakdown -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_ab_tests Meta A/B tests. A/B (split) tests set up in Valkiria for Meta (the Meta A/B tests screen), from stored data: name, type, status, optimization goal, dates, budget and the winner, with every variant's results as last synced: spend, impressions, clicks, CTR, conversions, conversion rate, cost per result, statistical confidence and whether it is the control. Budgets and spend are in the ad account currency. testId returns one test. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `testId` (uuid, optional) - `status` (string, optional): Filter by status, e.g. running, completed - `limit` (integer, optional): Rows to return (default 25) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_ab_tests -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_pause_campaign Propose: pause Meta campaign. Propose pausing a Meta campaign. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Meta campaign id or its Valkiria id - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_pause_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## meta_resume_campaign Propose: resume Meta campaign. Propose resuming a paused Meta campaign. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Meta campaign id or its Valkiria id - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_resume_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## meta_pause_ad_set Propose: pause Meta ad set. Propose pausing a Meta ad set. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adSetId` (string, required): Meta ad set id or its Valkiria id - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_pause_ad_set -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adSetId":"1234567890"}' ``` ## meta_resume_ad_set Propose: resume Meta ad set. Propose resuming a paused Meta ad set. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adSetId` (string, required): Meta ad set id or its Valkiria id - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_resume_ad_set -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adSetId":"1234567890"}' ``` ## meta_pause_ad Propose: pause Meta ad. Propose pausing a Meta ad. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Meta ad id or its Valkiria id - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_pause_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## meta_resume_ad Propose: resume Meta ad. Propose resuming a paused Meta ad. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Meta ad id or its Valkiria id - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_resume_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## meta_update_campaign_budget Propose: Meta campaign budget. Propose a new daily or lifetime budget for a Meta campaign that holds its budget at campaign level. The amount is in the account currency in normal units; zero-decimal currencies (JPY, KRW, VND, CLP…) take whole amounts and are sent to Meta without the x100 other currencies need. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required) - `amount` (number, required): In the ad account currency, as a person writes it (50 = 50.00 USD, 5000 = 5000 JPY). Never minor units - `budgetType` (enum, optional, one of daily, lifetime): Default daily; must be the type the object already has - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_update_campaign_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","amount":1}' ``` ## meta_update_ad_set_budget Propose: Meta ad set budget. Propose a new daily or lifetime budget for a Meta ad set that holds its own budget. The amount is in the account currency in normal units; zero-decimal currencies (JPY, KRW, VND, CLP…) take whole amounts and are sent to Meta without the x100 other currencies need. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adSetId` (string, required) - `amount` (number, required): In the ad account currency, as a person writes it (50 = 50.00 USD, 5000 = 5000 JPY). Never minor units - `budgetType` (enum, optional, one of daily, lifetime): Default daily; must be the type the object already has - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_update_ad_set_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adSetId":"1234567890","amount":1}' ``` ## meta_update_ad_set_targeting Propose: Meta ad set targeting. Propose a targeting change for a Meta ad set as a patch in Meta's targeting-spec format. Each top-level key you pass (age_min, age_max, genders, geo_locations, flexible_spec, custom_audiences, excluded_custom_audiences, locales…) replaces that key; null removes it; every key you do not pass is kept. The patch is merged onto the targeting the ad set has at approval time, so nothing else is wiped. The current spec is part of the ad set listing; ids are those of the Meta targeting search. Placements are changed by a separate proposal. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adSetId` (string, required) - `targeting` (object, required): Patch, e.g. {"age_min":25,"age_max":44} or {"geo_locations":{"countries":["DE","AT"]}} - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_update_ad_set_targeting -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adSetId":"1234567890","targeting":{}}' ``` ## meta_update_placements Propose: Meta ad set placements. Propose where a Meta ad set delivers. Either automatic=true (Advantage+ placements: all manual placement keys are removed) or publisherPlatforms with optional positions per platform; positions of a platform left out are removed with it. Audience, locations and every other targeting field are kept. What each placement brings is in the placement breakdown. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adSetId` (string, required) - `automatic` (boolean, optional) - `publisherPlatforms` (enum[], optional, one of facebook, instagram, audience_network, messenger, threads) - `facebookPositions` (string[], optional) - `instagramPositions` (string[], optional) - `audienceNetworkPositions` (string[], optional) - `messengerPositions` (string[], optional) - `devicePlatforms` (enum[], optional, one of mobile, desktop) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_update_placements -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adSetId":"1234567890"}' ``` ## meta_update_ad_set_schedule Propose: Meta ad set schedule. Propose a new start and/or end time for a Meta ad set. endTime=null removes the end date (not allowed with a lifetime budget). Meta refuses a new start time once an ad set has started delivering; its answer is reported as is. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adSetId` (string, required) - `startTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `endTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_update_ad_set_schedule -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adSetId":"1234567890"}' ``` ## meta_add_ad_set Propose: new Meta ad set. Propose a new ad set in an existing Meta campaign. It is always created PAUSED. targeting is a Meta targeting spec and must contain geo_locations; Audience Network is off unless publisher_platforms names it. A budget applies only when the campaign does not hold the budget itself; amounts are in the account currency in normal units (whole amounts for JPY, KRW, VND, CLP…). Without optimizationGoal/billingEvent the campaign's existing ad sets are used as the model. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required) - `name` (string, required) - `targeting` (object, required) - `dailyBudget` (number, optional): In the ad account currency, as a person writes it (50 = 50.00 USD, 5000 = 5000 JPY). Never minor units - `lifetimeBudget` (number, optional): In the ad account currency, as a person writes it (50 = 50.00 USD, 5000 = 5000 JPY). Never minor units - `optimizationGoal` (string, optional): e.g. LINK_CLICKS, OFFSITE_CONVERSIONS, LEAD_GENERATION - `billingEvent` (string, optional) - `startTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `endTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `dsaBeneficiary` (string, optional): EU/EEA (DSA): who the ad is for. Default for EU targeting: the business, then the promoted Page name (meta_list_advertiser_identities) - `dsaPayor` (string, optional): EU/EEA (DSA): who pays; default the beneficiary - `regionalRegulatedCategories` (string[], optional): Meta regional regulated categories, e.g. TAIWAN_UNIVERSAL, AUSTRALIA_FINSERV - `regionalRegulationIdentities` (object, optional): Verified identity ids per role, as Meta names the keys, e.g. {"taiwan_universal_beneficiary":"123","taiwan_universal_payer":"123"} - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_add_ad_set -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","name":"Example name","targeting":{}}' ``` ## meta_add_ad Propose: new Meta ad. Propose a new ad in an existing Meta ad set from media that already exists at a public https URL: one image, one video, or a carousel of 2-10 image cards. It is always created PAUSED. Image and video need mediaUrl; a carousel needs cards and pageId (meta_list_pages). Each image is fetched first and refused unless it is a JPEG, PNG or GIF of at most 30 MB. urlTags (UTM) are stored on the creative. Meta requires pixel tracking by platform rule: without a pixel on the account, set noPixelAcknowledged=true to accept worse conversion tracking. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adSetId` (string, required) - `name` (string, required) - `format` (enum, required, one of image, video, carousel) - `link` (string, required): Landing page - `primaryText` (string, required) - `headline` (string, optional) - `description` (string, optional) - `mediaUrl` (string, optional) - `cards` ({ imageUrl, headline?, description?, link? }[], optional) - `callToAction` (string, optional): e.g. LEARN_MORE, SHOP_NOW, SIGN_UP - `pageId` (string, optional) - `noPixelAcknowledged` (boolean, optional) - `urlTags` (string, optional): UTM parameters kept on the creative and appended by Meta to the landing page, e.g. utm_source=meta&utm_medium=paid_social&utm_campaign={{campaign.name}} - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_add_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adSetId":"1234567890","name":"Example name","format":"image","link":"https://example.com","primaryText":"running shoes"}' ``` ## meta_propose_create_dynamic_creative_ad Propose: new Meta dynamic creative ad. Propose a dynamic creative ad (asset_feed_spec) in an existing Meta ad set: 1-10 images at public https URLs or 1-10 video ids already in the ad account, 1-5 primary texts, 1-5 headlines, up to 5 descriptions and up to 5 calls to action; Meta combines them per person and reports which combinations work. Meta accepts it only in an ad set created with dynamic creative on, and such an ad set holds one ad. pageId from meta_list_pages. Images are fetched first and refused unless JPEG, PNG or GIF of at most 30 MB. The ad is always created PAUSED; undo deletes it while it is paused and has not been shown, within 30 days. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adSetId` (string, required) - `name` (string, required) - `pageId` (string, required) - `link` (string, required): Landing page - `primaryTexts` (string[], required) - `headlines` (string[], required) - `instagramUserId` (string, optional) - `imageUrls` (string[], optional) - `videoIds` (string[], optional) - `descriptions` (string[], optional) - `callToActions` (string[], optional): e.g. LEARN_MORE, SHOP_NOW, SIGN_UP - `urlTags` (string, optional): UTM parameters kept on the creative and appended by Meta to the landing page, e.g. utm_source=meta&utm_medium=paid_social&utm_campaign={{campaign.name}} - `noPixelAcknowledged` (boolean, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_propose_create_dynamic_creative_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adSetId":"1234567890","name":"Example name","pageId":"1234567890","link":"https://example.com","primaryTexts":["running shoes"],"headlines":["example"]}' ``` ## meta_update_ad_copy Propose: Meta ad copy. Propose new primary text, headline and/or destination link for a Meta ad. Meta creatives are immutable, so on approval a copy of the creative is made with the new text and the ad is switched to it; the ad goes through Meta review again and loses likes and comments gathered on the old creative. Undo switches the ad back to the previous creative. Ads that promote an existing post or use a dynamic creative cannot be edited this way. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required) - `primaryText` (string, optional) - `headline` (string, optional) - `link` (string, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_update_ad_copy -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## meta_duplicate_campaign Propose: duplicate Meta campaign. Propose a PAUSED copy of a Meta campaign in the same ad account: name with "(Copy)", same objective and campaign budget. Ad sets and ads are not copied; they are added by separate proposals. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_duplicate_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## meta_propose_create_campaign Propose: new Meta campaign. Propose a new Meta campaign: a daily campaign budget (account currency, normal units), one ad set and optionally one ad from media at a public https URL, all created PAUSED. Media: image, video or 2-10 card carousel; images: JPEG/PNG/GIF up to 30 MB; urlTags (UTM) go on the creative. objective: OUTCOME_TRAFFIC (link clicks), OUTCOME_LEADS or OUTCOME_SALES; the last two need promotedObject ({"page_id"} or {"pixel_id","custom_event_type"}). specialAdCategories required ([] if none); DSA payer/advertiser identities go on the ad set. targeting needs geo_locations. A refused ad set or ad deletes the new campaign again. Undo deletes it while PAUSED with no impressions, within 30 days. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `name` (string, required) - `objective` (enum, required, one of OUTCOME_TRAFFIC, OUTCOME_LEADS, OUTCOME_SALES) - `specialAdCategories` (enum[], required, one of HOUSING, EMPLOYMENT, CREDIT, ISSUES_ELECTIONS_POLITICS, FINANCIAL_PRODUCTS_SERVICES) - `dailyBudget` (number, required): In the ad account currency, as a person writes it (50 = 50.00 USD, 5000 = 5000 JPY). Never minor units - `targeting` (object, required) - `accountId` (string, optional): Meta ad account id (with or without act_) or its Valkiria id. Optional when a default account is set for this platform (set_default_account) - `adSetName` (string, optional) - `optimizationGoal` (string, optional): Default from the objective: LINK_CLICKS, LEAD_GENERATION or OFFSITE_CONVERSIONS - `promotedObject` (object, optional) - `ad` ({ name, format, link, primaryText, headline?, description?, mediaUrl?, cards?, callToAction?, pageId?, noPixelAcknowledged?, urlTags? }, optional) - `dsaBeneficiary` (string, optional): EU/EEA (DSA): who the ad is for. Default for EU targeting: the business, then the promoted Page name (meta_list_advertiser_identities) - `dsaPayor` (string, optional): EU/EEA (DSA): who pays; default the beneficiary - `regionalRegulatedCategories` (string[], optional): Meta regional regulated categories, e.g. TAIWAN_UNIVERSAL, AUSTRALIA_FINSERV - `regionalRegulationIdentities` (object, optional): Verified identity ids per role, as Meta names the keys, e.g. {"taiwan_universal_beneficiary":"123","taiwan_universal_payer":"123"} - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_propose_create_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","objective":"OUTCOME_TRAFFIC","specialAdCategories":["HOUSING"],"dailyBudget":1,"targeting":{}}' ``` ## meta_promote_post Propose: promote existing post as Meta ad. Propose an ad that promotes an existing Facebook Page post (keeping its likes and comments) in an existing Meta ad set. The ad is always created PAUSED. pageId comes from meta_list_pages; postId is the post id on that Page. Without a pixel on the account set noPixelAcknowledged=true. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adSetId` (string, required) - `pageId` (string, required) - `postId` (string, required) - `name` (string, required) - `noPixelAcknowledged` (boolean, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_promote_post -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adSetId":"1234567890","pageId":"1234567890","postId":"1234567890","name":"Example name"}' ``` ## meta_propose_create_custom_audience Propose: new Meta custom audience. Propose a website or engagement custom audience in a Meta ad account. website: people who fired the pixel (pixelId from meta_list_pixels) in the last retentionDays (1-180), optionally only on URLs containing urlContains or with events in eventNames; without filters all visitors. engagement: people who interacted with a Facebook Page (pageId from meta_list_pages; default page_engaged) or an Instagram professional account (instagramAccountId; default ig_business_profile_all) in the last retentionDays (1-365). An audience starts no spend; targeting uses it afterwards. Meta has no undo: a created audience is deleted in Ads Manager. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `name` (string, required) - `source` (enum, required, one of website, engagement) - `retentionDays` (integer, required) - `accountId` (string, optional): Meta ad account id (with or without act_) or its Valkiria id. Optional when a default account is set for this platform (set_default_account) - `description` (string, optional) - `pixelId` (string, optional) - `urlContains` (string[], optional) - `eventNames` (string[], optional): Pixel events, e.g. PageView, ViewContent, AddToCart, Purchase - `pageId` (string, optional) - `instagramAccountId` (string, optional) - `engagement` (enum, optional, one of page_engaged, page_visited, page_messaged, page_cta_clicked, page_post_interaction, ig_business_profile_all, ig_business_profile_engaged, ig_user_messaged_business, ig_business_profile_visit) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_propose_create_custom_audience -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","source":"website","retentionDays":1}' ``` ## meta_propose_create_lookalike_audience Propose: new Meta lookalike audience. Propose a lookalike audience in a Meta ad account from a seed audience of the same account (originAudienceId from meta_list_audiences): the people in one country most similar to the seed. ratioPercent 1-10 is the share of the country population, 1 the closest match. Meta needs at least 100 people of the seed in that country and fills the audience over several hours. An audience starts no spend; targeting uses it afterwards. Meta has no undo: a created audience is deleted in Ads Manager. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `originAudienceId` (string, required) - `country` (string, required): ISO 3166-1 alpha-2, e.g. DE - `ratioPercent` (integer, required) - `accountId` (string, optional): Meta ad account id (with or without act_) or its Valkiria id. Optional when a default account is set for this platform (set_default_account) - `description` (string, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_propose_create_lookalike_audience -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","originAudienceId":"1234567890","country":"US","ratioPercent":1}' ``` ## meta_propose_frequency_cap Propose: Meta ad set frequency cap. Propose a frequency cap for a Meta ad set optimised for reach: at most maxFrequency impressions per person every intervalDays days (frequency_control_specs). Meta accepts a cap only on REACH ad sets; any other is refused before queueing. A lower cap can lower delivery and spend. Undo restores the previous cap when there was one. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adSetId` (string, required): Meta ad set id or its Valkiria id - `maxFrequency` (integer, required) - `intervalDays` (integer, required) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_propose_frequency_cap -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adSetId":"1234567890","maxFrequency":1,"intervalDays":1}' ``` ## meta_propose_budget_schedule Propose: Meta scheduled budget increase. Propose a scheduled budget increase (Meta budget_schedules) on a campaign or ad set that holds a daily budget: for the period startTime-endTime the daily budget is raised by an amount (increaseType=amount, account currency in normal units) or by a percent (increaseType=percent, whole 1-1000). Used for sales, launches and holidays. It raises spend in that period. No undo from Valkiria: a schedule is deleted in Ads Manager. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `level` (enum, required, one of campaign, ad_set) - `id` (string, required): Meta campaign or ad set id, or its Valkiria id - `increaseType` (enum, required, one of amount, percent) - `value` (number, required) - `startTime` (date-time, required): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `endTime` (date-time, required): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_propose_budget_schedule -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"level":"campaign","id":"1234567890","increaseType":"amount","value":1,"startTime":"2026-10-01T00:00:00Z","endTime":"2026-10-01T00:00:00Z"}' ``` ## meta_propose_bulk_rename Propose: rename Meta campaigns, ad sets or ads. Propose new names for up to 50 Meta campaigns, ad sets or ads of one kind: explicit pairs (renames), or find-replace (find, replace; plain text, case-sensitive, every occurrence) over the given ids. One proposal per object, so each can be approved, rejected or undone on its own; names that would not change are skipped. Renaming changes no delivery. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `kind` (enum, required, one of campaign, ad_set, ad) - `renames` ({ id, newName }[], optional) - `ids` (string[], optional) - `find` (string, optional) - `replace` (string, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_propose_bulk_rename -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"kind":"campaign"}' ``` ## google_ads_campaign_type_guide Google Ads campaign type guide. Which Google Ads campaign type fits a goal: Search, Performance Max, Demand Gen, Video and Shopping, with what each needs and the Valkiria tool that proposes it (null when Valkiria has none). With hasConversionTracking=false, Performance Max is ranked down: it optimizes on conversions. Reads no ad account. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `goal` (enum, optional, one of leads, sales, awareness, app_installs, local_visits) - `hasConversionTracking` (boolean, optional) - `hasProductFeed` (boolean, optional) - `hasVideo` (boolean, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_campaign_type_guide -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## google_ads_validate_asset Check an image or video against Google Ads specs. Checks one image or video against the Google Ads (Performance Max, Demand Gen, display) specs from its stated format, pixel size, file size and duration: aspect-ratio slot, minimum size, format and limits. Returns fits, the matched slot and each problem; a measurement left out is listed as unchecked, not passed. Fetches and uploads nothing. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `kind` (enum, required, one of image, video) - `format` (string, required): jpeg, png, gif, mp4, mov, or youtube for a Google video - `width` (integer, required) - `height` (integer, required) - `slot` (string, optional): Image slot, e.g. landscape, square, portrait, logo; default any slot that matches the ratio - `fileSizeBytes` (integer, optional) - `durationSeconds` (number, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/google_ads_validate_asset -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"kind":"image","format":"example","width":1,"height":1}' ``` ## meta_validate_asset Check an image or video against Meta specs. Checks one image or video against the Meta (Facebook, Instagram feeds, Stories, Reels, carousel) specs from its stated format, pixel size, file size and duration: aspect-ratio slot, minimum size, format and limits. Returns fits, the matched slot and each problem; a measurement left out is listed as unchecked, not passed. Fetches and uploads nothing. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `kind` (enum, required, one of image, video) - `format` (string, required): jpeg, png, gif, mp4, mov, or youtube for a Google video - `width` (integer, required) - `height` (integer, required) - `slot` (string, optional): Image slot, e.g. landscape, square, portrait, logo; default any slot that matches the ratio - `fileSizeBytes` (integer, optional) - `durationSeconds` (number, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_validate_asset -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"kind":"image","format":"example","width":1,"height":1}' ``` ## linkedin_list_accounts List LinkedIn ad accounts. LinkedIn ad accounts connected to Valkiria by the caller, from the last sync: provider id, name, currency, status and the last sync time. The other LinkedIn tools take this account id. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_list_accounts -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## linkedin_list_campaign_groups List LinkedIn campaign groups. Campaign groups of one LinkedIn ad account, live from LinkedIn: id, name, status, total budget (account currency, as LinkedIn reports it) and schedule. A campaign always belongs to a group; a new campaign takes a group id. Read-only. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_list_campaign_groups -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## linkedin_list_campaigns List LinkedIn campaigns. Campaigns of one LinkedIn ad account, live from LinkedIn (active, paused and draft), optionally of one campaign group: id, name, status, type, objective, cost type, daily and total budget and bid in the account currency, schedule and group. Metrics are a separate read (campaign performance). Read-only. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `campaignGroupId` (string, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_list_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## linkedin_campaign_performance LinkedIn campaigns with metrics. LinkedIn campaigns with their metrics for the period, from the same dated facts the Analytics screen shows: spend (account currency), impressions, clicks, CTR, conversions and cost per conversion, per campaign (providerCampaignId is the LinkedIn campaign id). recordedDays below requestedDays means some days are not synced yet. Provider facts carry no revenue: revenue and roas are null, not zero. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `days` (integer, optional): Days back from today (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_campaign_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## linkedin_campaign_structure LinkedIn campaign structure. One LinkedIn campaign read live: status, type, objective, cost type, daily and total budget and bid (account currency), schedule, its campaign group, and its ads (creatives) with status, review status, serving holds and lifetime impressions, clicks, spend and conversions per ad. Read-only. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_campaign_structure -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## linkedin_creative_performance LinkedIn creative performance. Lifetime performance per ad (creative) of one LinkedIn campaign, live from LinkedIn: impressions, clicks, spend (account currency), website conversions, lead-form leads, with CTR and cost per click computed from them. Sorted by spend. A missing creative had no delivery. Read-only. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_creative_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## linkedin_campaign_targeting LinkedIn campaign targeting. Current targeting of one LinkedIn campaign, live, as facets with URN and name: locations, industries, jobFunctions, seniorities, staffCountRanges, interfaceLocales (a "!" prefix marks an excluded facet). hasOtherCriteria=true means the campaign also targets facets set in Campaign Manager (titles, skills, audiences) that are kept on every change. It is the base a targeting change is merged onto. Read-only. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_campaign_targeting -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## linkedin_targeting_search Search LinkedIn targeting options. LinkedIn's own targeting catalogue for one facet: the full list (industries, jobFunctions, seniorities, staffCountRanges, interfaceLocales) or typeahead matches for query (locations need a query of 2+ characters). Returns URNs and names to use in linkedin_update_campaign_targeting or linkedin_add_campaign. Read-only. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `facet` (enum, required, one of locations, industries, jobFunctions, seniorities, staffCountRanges, interfaceLocales) - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `query` (string, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_targeting_search -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"facet":"locations"}' ``` ## linkedin_list_conversions List LinkedIn conversions. Conversion rules of one LinkedIn ad account, live: name, type, method (Insight Tag or Conversions API), whether enabled, attribution windows in days and when LinkedIn last received a signal. A rule that never fired has lastCallbackAt null. Read-only. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_list_conversions -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## linkedin_wasted_spend LinkedIn wasted spend. LinkedIn campaigns that spent money in the period without a single conversion, from the dated analytics facts, with each one's share of total spend. minSpend filters noise (account currency, default 0). Zero conversions only means LinkedIn attributed none, which can also be a conversion tracking gap. Provider facts carry no revenue: revenue and roas are null, not zero. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `days` (integer, optional): Days back from today (default 30) - `minSpend` (number, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_wasted_spend -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## linkedin_engagement_metrics LinkedIn engagement metrics. Engagement per campaign of one LinkedIn ad account for the period, live from LinkedIn reporting: impressions, clicks, likes, comments, shares, follows, video views and completions, spend (account currency) and engagement rate = (clicks + likes + comments + shares + follows) / impressions. Read-only. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `days` (integer, optional): Days back from today (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_engagement_metrics -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## linkedin_audience_breakdown LinkedIn audience breakdown. Who saw and clicked the ads of one LinkedIn ad account (or one campaign) over the period, live from LinkedIn demographic reporting: impressions, clicks, spend (account currency), website conversions and lead-form leads per job function, seniority, industry, company size, job title or country, with CTR. Values are LinkedIn URNs or codes as LinkedIn returns them; linkedin_targeting_search names them. LinkedIn reports demographics approximately and hides segments with too little activity, so the segments can sum to less than the campaign totals. Read-only. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `dimension` (enum, required, one of job_function, seniority, industry, company_size, job_title, country) - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `campaignId` (string, optional): Limit to one LinkedIn campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `days` (integer, optional): Days back from today (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_audience_breakdown -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"dimension":"job_function"}' ``` ## linkedin_ad_performance_by_day LinkedIn performance by day. Daily totals of one LinkedIn ad account (or one campaign) over the period, live from LinkedIn reporting: impressions, clicks, spend (account currency), website conversions and lead-form leads per day, with CTR and cost per click, oldest first. A missing day had no delivery. Read-only. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `campaignId` (string, optional): Limit to one LinkedIn campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `days` (integer, optional): Days back from today (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_ad_performance_by_day -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## linkedin_pause_campaign Propose: pause LinkedIn campaign. Propose pausing a LinkedIn campaign. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_pause_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## linkedin_resume_campaign Propose: resume LinkedIn campaign. Propose resuming a paused LinkedIn campaign. Resuming starts spend again, so it always waits for the owner. Drafts cannot be launched this way. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_resume_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## linkedin_pause_creative Propose: pause LinkedIn creative. Propose pausing a LinkedIn ad (creative). Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `creativeId` (string, required): LinkedIn creative id (digits) or urn:li:sponsoredCreative:{id} - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_pause_creative -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"creativeId":"1234567890"}' ``` ## linkedin_resume_creative Propose: resume LinkedIn creative. Propose resuming a paused LinkedIn ad (creative). Resuming starts spend again, so it always waits for the owner. Drafts cannot be launched this way. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `creativeId` (string, required): LinkedIn creative id (digits) or urn:li:sponsoredCreative:{id} - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_resume_creative -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"creativeId":"1234567890"}' ``` ## linkedin_update_campaign_budget Propose: LinkedIn campaign budget. Propose a new daily or total (lifetime) budget for a LinkedIn campaign. The amount is in the ad account currency in normal units and is sent to LinkedIn as a decimal amount with the currency code, never in minor units; currencies without decimals (JPY, KRW…) take whole amounts. The campaign must already have a budget of that type. Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `amount` (number, required): In the ad account currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `budgetType` (enum, optional, one of daily, total): Default daily - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_update_campaign_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","amount":1}' ``` ## linkedin_update_campaign_schedule Propose: LinkedIn campaign schedule. Propose a new start and/or end time for a LinkedIn campaign. endTime=null removes the end date, so the campaign runs until paused. LinkedIn refuses a new start time once a campaign has started; its answer is reported as is. Undo restores the previous schedule. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `startTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `endTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_update_campaign_schedule -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## linkedin_update_campaign_targeting Propose: LinkedIn campaign targeting. Propose a targeting change for a LinkedIn campaign as a patch: each facet you pass replaces that facet, null removes it, every facet you do not pass is kept. The patch is merged onto the targeting the campaign has at approval time, and facets set in Campaign Manager (job titles, skills, matched audiences) are always kept, so nothing is wiped. At least one location must remain. Facets: locations, industries, jobFunctions, seniorities, staffCountRanges, interfaceLocales; prefix "!" to exclude (e.g. "!seniorities"). Values are URNs from linkedin_targeting_search. The current targeting is what the campaign targeting read returns. Undo restores the previous facets. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `targeting` (object, required): Patch, e.g. {"seniorities":["urn:li:seniority:8"],"!industries":null} - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_update_campaign_targeting -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","targeting":{}}' ``` ## linkedin_update_campaign_group Propose: LinkedIn campaign group. Propose a change to a LinkedIn campaign group: rename it, pause or resume it (which pauses or resumes delivery of all its campaigns), or set its total budget in the ad account currency (normal units, never minor units). Only the fields passed change. Undo restores the previous values. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignGroupId` (string, required): LinkedIn campaign group id (linkedin_list_campaign_groups) - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `name` (string, optional) - `status` (enum, optional, one of PAUSED, ACTIVE) - `totalBudget` (number, optional): In the ad account currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_update_campaign_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignGroupId":"1234567890"}' ``` ## linkedin_add_campaign Propose: new LinkedIn campaign. Propose a new campaign in an existing LinkedIn campaign group. It is created as a DRAFT (default) or PAUSED, never active: a person launches it. politicalIntent is the advertiser's legal declaration and is never assumed. Budgets and bid are in the ad account currency in normal units. targeting needs at least one location. Facets: locations, industries, jobFunctions, seniorities, staffCountRanges, interfaceLocales; prefix "!" to exclude (e.g. "!seniorities"). Values are URNs from linkedin_targeting_search. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignGroupId` (string, required) - `name` (string, required) - `politicalIntent` (enum, required, one of POLITICAL, NOT_POLITICAL) - `dailyBudget` (number, required): In the ad account currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `targeting` (object, required) - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `totalBudget` (number, optional): In the ad account currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `objectiveType` (string, optional): e.g. WEBSITE_VISIT, LEAD_GENERATION, BRAND_AWARENESS, ENGAGEMENT, VIDEO_VIEW, WEBSITE_CONVERSION - `type` (enum, optional, one of SPONSORED_UPDATES, TEXT_AD, SPONSORED_INMAILS, DYNAMIC): Default SPONSORED_UPDATES - `costType` (enum, optional, one of CPC, CPM, CPV): Default CPM - `unitCost` (number, optional): Bid, in the ad account currency - `locale` ({ country, language }, optional) - `startTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `endTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `status` (enum, optional, one of DRAFT, PAUSED) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_add_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignGroupId":"1234567890","name":"Example name","politicalIntent":"POLITICAL","dailyBudget":1,"targeting":{}}' ``` ## linkedin_add_creative Propose: new LinkedIn ad. Propose a new ad (creative) in an existing LinkedIn campaign from content that already exists: postUrn (a published company-page post, urn:li:share or urn:li:ugcPost, keeping its reactions), mediaUrn (an image, video or document already uploaded to LinkedIn: urn:li:video gives a video ad) or carouselCards (2 to 10 uploaded images, each with its own https landing page: a carousel ad, for a campaign of the carousel format). mediaUrn and carouselCards take commentary and organizationId and become a sponsored-only post. The ad is always created PAUSED. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `postUrn` (string, optional) - `mediaUrn` (string, optional) - `commentary` (string, optional) - `organizationId` (string, optional): Company page id, required with mediaUrn - `headline` (string, optional) - `landingUrl` (string, optional) - `carouselCards` ({ imageUrn, landingUrl, title? }[], optional): Carousel cards, in order - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_add_creative -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## linkedin_clone_campaign Propose: copy LinkedIn campaign. Propose a copy of a LinkedIn campaign in the same campaign group, created as a DRAFT: same type, objective, cost type, bid, budgets, locale and targeting (including facets set in Campaign Manager), name with "(Copy)" unless you give one. LinkedIn has no copy endpoint, so the campaign is re-created from its settings; its ads are not copied. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `name` (string, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_clone_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## linkedin_link_conversion Propose: link LinkedIn conversion to campaign. Propose linking an existing conversion rule of the ad account (id from the conversion list) to a LinkedIn campaign, so LinkedIn counts and optimizes for it in that campaign. The rule itself is unchanged. Undo removes the link again. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `conversionId` (string, required): LinkedIn conversion rule id (digits) - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_link_conversion -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","conversionId":"1234567890"}' ``` ## linkedin_bulk_update_campaigns Propose: bulk LinkedIn campaign change. Propose one change for several LinkedIn campaigns of one ad account at once: per campaign a new status (PAUSED / ACTIVE) and/or a new daily budget in the ad account currency (normal units, never minor units). Campaigns that already match are left out. On approval each campaign is written and read back in turn; if one fails, the answer names the campaigns already changed. Undo restores every campaign to its previous values. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `items` ({ campaignId, status?, dailyBudget? }[], required) - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_bulk_update_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"items":[{"campaignId":"1234567890"}]}' ``` ## linkedin_create_text_ad Propose: new LinkedIn text ad. Propose a new Text Ad (desktop right rail) in an existing LinkedIn campaign of type TEXT_AD: headline up to 25 characters, text up to 75, an https landing page and optionally a 100x100 image already uploaded to LinkedIn. Created PAUSED. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `headline` (string, required) - `text` (string, required) - `landingUrl` (string, required) - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `imageUrn` (string, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_create_text_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","headline":"example","text":"running shoes","landingUrl":"https://example.com"}' ``` ## linkedin_create_video_ad Propose: new LinkedIn video ad. Propose a new video ad in an existing LinkedIn campaign from a video already uploaded to LinkedIn (urn:li:video), published as a sponsored-only post of the company page with the intro text, an optional headline and https landing page. Created PAUSED. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `videoUrn` (string, required) - `organizationId` (string, required): Company page id (linkedin_list_organizations) - `commentary` (string, required): Intro text above the ad (LinkedIn shows about 150 characters before "see more") - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `headline` (string, optional) - `landingUrl` (string, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_create_video_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","videoUrn":"example","organizationId":"1234567890","commentary":"example"}' ``` ## linkedin_create_carousel_ad Propose: new LinkedIn carousel ad. Propose a new carousel ad in an existing LinkedIn campaign of the carousel format: 2 to 10 images already uploaded to LinkedIn (urn:li:image), each card with its own https landing page and an optional title, published as a sponsored-only post of the company page. Created PAUSED. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `campaignId` (string, required): LinkedIn campaign id (digits); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `organizationId` (string, required): Company page id (linkedin_list_organizations) - `commentary` (string, required): Intro text above the ad (LinkedIn shows about 150 characters before "see more") - `cards` ({ imageUrn, landingUrl, title? }[], required): Cards, in order - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_create_carousel_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","organizationId":"1234567890","commentary":"example","cards":[{"imageUrn":"example","landingUrl":"https://example.com"},{"imageUrn":"example","landingUrl":"https://example.com"}]}' ``` ## linkedin_delete_creative Propose: delete (archive) LinkedIn ad. Propose removing an active or paused LinkedIn ad (creative). LinkedIn deletes only drafts, so the ad is archived: delivery stops and it leaves the campaign view, its history stays. Undo restores the previous status. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `creativeId` (string, required): LinkedIn creative id (digits) or urn:li:sponsoredCreative:{id} - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_delete_creative -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"creativeId":"1234567890"}' ``` ## linkedin_list_organizations List LinkedIn company pages. Company pages (organizations) an ad of this LinkedIn ad account can run for: the page the account belongs to and the pages the connected member administers, with name and vanity name when LinkedIn shares them (null when the sign-in lacks the organization scope). organizationId of the create tools takes this id. Read-only. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_list_organizations -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## linkedin_explain_objectives Explain LinkedIn objectives. The LinkedIn campaign objectives (objectiveType of linkedin_add_campaign): what each optimises for, the cost types (bid) it allows and the ad formats it takes, to pick one before creating a campaign. Static reference, no account is read. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `objective` (enum, optional, one of BRAND_AWARENESS, WEBSITE_VISIT, ENGAGEMENT, VIDEO_VIEW, LEAD_GENERATION, WEBSITE_CONVERSION, JOB_APPLICANT, TALENT_LEADS): One objective; empty for all ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_explain_objectives -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## linkedin_generate_ad_copy Write LinkedIn ad copy. Writes LinkedIn ad copy variants with AI for a product or service: intro text, headline and description, in the tone of a B2B feed. Keep headlines within 70 characters for single-image ads (25 for text ads) and the intro within about 150 before "see more". It returns text only; nothing is created. Spends one AI call. Feed the result to linkedin_create_*_ad. - Access: read-only; free read - Authorization: OAuth scope `propose`; API key scope `ai:generate` - Parameters: - `product` (string, required): Product or service description - `targetAudience` (string, optional): Job titles, seniority, industry - `tone` (string, optional) - `language` (string, optional): Language code (default: the account language) - `count` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_generate_ad_copy -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"product":"example"}' ``` ## tiktok_list_advertisers List TikTok advertisers. TikTok advertisers (ad accounts) connected to Valkiria by the caller, from the last sync: advertiser id, name, status, balance and currency. The other TikTok tools take this advertiser id. Stored data, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_list_advertisers -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_list_campaigns List TikTok campaigns. Campaigns of one TikTok advertiser, live from TikTok: id, name, status (ENABLE / DISABLE and TikTok's secondary status), objective, budget and budget mode (daily, total or unlimited) in the advertiser currency. Metrics are a separate read (campaign performance). Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_list_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_campaign_performance TikTok campaigns with metrics. TikTok campaigns with their metrics for the period, from the same dated facts the Analytics screen shows: spend (advertiser currency), impressions, clicks, CTR, conversions and cost per conversion (providerCampaignId is the TikTok campaign id). recordedDays below requestedDays means some days are not synced yet. Provider facts carry no revenue: revenue and roas are null, not zero. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `days` (integer, optional): Days back from today (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_campaign_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_list_ad_groups List TikTok ad groups. Ad groups of one TikTok advertiser, optionally of one campaign, live: id, name, status, budget and budget mode, bid, optimization goal and the targeting Valkiria edits (locations, age groups, gender, languages). The full targeting of one ad group is a separate read. Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `campaignId` (string, optional): Limit to one TikTok campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_list_ad_groups -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_list_ads List TikTok ads. Ads of one TikTok advertiser, optionally of one ad group or campaign, live: id, name, status, ad text, landing page, call to action and the video / image ids the ad uses. Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `adGroupId` (string, optional) - `campaignId` (string, optional): Limit to one TikTok campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_list_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_ad_performance TikTok ad-level performance. Per-ad performance from TikTok reporting for the period: spend, impressions, clicks, CTR, CPC, CPM, conversions, cost per conversion, reach and frequency, in the advertiser currency, sorted by spend. A null metric means TikTok did not report it, not zero. Provider facts carry no revenue: revenue and roas are null, not zero. Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `days` (integer, optional): Days back from today (default 30, the most TikTok reports in one request) - `campaignId` (string, optional): Limit to one TikTok campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_ad_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_geo_performance TikTok performance by country. Spend, impressions, clicks, CTR, conversions and cost per conversion by country (ISO code) for the period, from TikTok's audience report, in the advertiser currency. Shows where delivery goes, as the basis for a location change. A null metric means TikTok did not report it, not zero. Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `days` (integer, optional): Days back from today (default 30, the most TikTok reports in one request) - `campaignId` (string, optional): Limit to one TikTok campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_geo_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_audience_breakdown TikTok audience breakdown. Who the ads reached: spend, impressions, clicks, CTR, conversions and cost per conversion by age group, gender, device platform or language for the period, from TikTok's audience report, in the advertiser currency. A null metric means TikTok did not report it, not zero. Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `dimension` (enum, required, one of age, gender, platform, language) - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `days` (integer, optional): Days back from today (default 30, the most TikTok reports in one request) - `campaignId` (string, optional): Limit to one TikTok campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_audience_breakdown -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"dimension":"age"}' ``` ## tiktok_creative_fatigue TikTok creative fatigue. Ads whose audience is tiring: across the last 2-4 full weeks, frequency rose by 15% or more to at least 2 while CTR fell by 15% or more, on at least 500 impressions per week. Each week is its own TikTok report, so reach and frequency are TikTok's figures for that week. Returns the weekly numbers behind each verdict; an empty list means no ad met the rule, not that every creative is fresh. Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `weeks` (integer, optional): Default 2 - `campaignId` (string, optional): Limit to one TikTok campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_creative_fatigue -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_wasted_spend TikTok wasted spend. Where money went without a conversion in the period. level=ad (default): ads with spend and zero conversions from TikTok reporting, with each ad's share of spend. level=campaign: the same per campaign from the dated analytics facts. minSpend filters noise (advertiser currency, default 0). Zero only means TikTok attributed no conversion, which can also be a pixel or event gap. A null metric means TikTok did not report it, not zero. Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `level` (enum, optional, one of ad, campaign) - `days` (integer, optional): Days back from today (default 30, the most TikTok reports in one request) - `minSpend` (number, optional) - `campaignId` (string, optional): Limit to one TikTok campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_wasted_spend -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_ad_group_targeting TikTok ad group targeting. Full delivery settings of one TikTok ad group, live: targeting (location ids, age groups, gender, languages, interest category ids, included and excluded audience ids, operating systems), placements, schedule, budget and mode, bid and optimization goal. It is the base a targeting change is merged onto; the ids are those of the TikTok targeting options. Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `adGroupId` (string, required) - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_ad_group_targeting -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## tiktok_list_audiences List TikTok audiences. Custom and lookalike audiences of one TikTok advertiser, live, as TikTok lists them (id, name, type, size and validity where TikTok reports them). These ids are the audience_ids / excluded_audience_ids of ad group targeting. Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_list_audiences -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_list_identities List TikTok identities. Identities (the profile an ad is published as) of one TikTok advertiser, live: identity id, type and display name. A new ad needs one (tiktok_add_ad). Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_list_identities -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_targeting_options Search TikTok targeting options. TikTok's own targeting catalogue: locations (countries and provinces with their location ids), interest categories or languages, filtered by a name fragment. Returns the ids to use in tiktok_update_ad_group_targeting and tiktok_add_ad_group. Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `type` (enum, required, one of locations, interests, languages) - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `query` (string, optional) - `limit` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_targeting_options -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"type":"locations"}' ``` ## tiktok_pause_campaign Propose: pause TikTok campaign. Propose pausing a TikTok campaign. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): TikTok campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_pause_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## tiktok_resume_campaign Propose: resume TikTok campaign. Propose resuming a paused TikTok campaign. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): TikTok campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_resume_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## tiktok_pause_ad_group Propose: pause TikTok ad group. Propose pausing a TikTok ad group. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): TikTok ad group id - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_pause_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## tiktok_resume_ad_group Propose: resume TikTok ad group. Propose resuming a paused TikTok ad group. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): TikTok ad group id - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_resume_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## tiktok_pause_ad Propose: pause TikTok ad. Propose pausing a TikTok ad. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): TikTok ad id - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_pause_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## tiktok_resume_ad Propose: resume TikTok ad. Propose resuming a paused TikTok ad. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): TikTok ad id - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_resume_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## tiktok_update_campaign_budget Propose: TikTok campaign budget. Propose a new budget for a TikTok campaign that holds a daily or total budget; it stays in the mode it has (a daily budget stays daily). The amount is in the advertiser currency in normal units and is sent to TikTok as it is, never in minor units; currencies without decimals (JPY, KRW, VND…) take whole amounts. Campaigns with an unlimited budget are budgeted on their ad groups. Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `amount` (number, required): In the advertiser currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_update_campaign_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","amount":1}' ``` ## tiktok_update_ad_group_budget Propose: TikTok ad group budget. Propose a new daily budget for a TikTok ad group. The amount is in the advertiser currency in normal units and is sent to TikTok as it is, never in minor units; currencies without decimals (JPY, KRW, VND…) take whole amounts. Ad groups with a total or unlimited budget cannot be changed here. Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required) - `amount` (number, required): In the advertiser currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_update_ad_group_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","amount":1}' ``` ## tiktok_update_ad_group_schedule Propose: TikTok ad group schedule. Propose a new start and/or end time for a TikTok ad group. endTime=null removes the end date, so it runs until paused (not allowed with a total budget). TikTok refuses a new start time once an ad group has started; its answer is reported as is. Undo restores the previous schedule. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required) - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `startTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `endTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_update_ad_group_schedule -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## tiktok_update_ad_group_targeting Propose: TikTok ad group targeting. Propose a targeting change for a TikTok ad group as a patch: each key you pass replaces that key, null empties it (gender: no limit), every key you do not pass is kept. The patch is merged onto the targeting the ad group has at approval time, so nothing else is wiped, and the whole targeting is read back before the change is reported as applied. At least one location must remain. The current targeting is what the ad group targeting read returns; ids are those of the TikTok targeting options and audiences. Undo restores the previous targeting. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required) - `targeting` ({ location_ids?, age_groups?, gender?, languages?, interest_category_ids?, audience_ids?, excluded_audience_ids?, operating_systems? }, required): Patch, e.g. {"age_groups":["AGE_25_34","AGE_35_44"],"excluded_audience_ids":null} - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_update_ad_group_targeting -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","targeting":{}}' ``` ## tiktok_add_ad_group Propose: new TikTok ad group. Propose a new ad group in an existing TikTok campaign. It is always created disabled (operation_status DISABLE): a person enables it. locationIds is required. Without a budget the ad group is unlimited and the campaign budget applies; with one, the default mode is daily. The amount is in the advertiser currency in normal units and is sent to TikTok as it is, never in minor units; currencies without decimals (JPY, KRW, VND…) take whole amounts. Without optimizationGoal the goal is clicks; without bid TikTok bids automatically. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `name` (string, required) - `locationIds` (string[], required): TikTok location ids (tiktok_targeting_options type=locations) - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `budget` (number, optional): In the advertiser currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `budgetMode` (enum, optional, one of BUDGET_MODE_DAY, BUDGET_MODE_TOTAL) - `optimizationGoal` (enum, optional, one of CLICK, REACH, SHOW, CONVERT, VIDEO_VIEW, LEAD_GENERATION, TRAFFIC_LANDING_PAGE_VIEW) - `billingEvent` (enum, optional, one of CPC, CPM, OCPM, CPV) - `bid` (number, optional): In the advertiser currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `startTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `endTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `ageGroups` (enum[], optional, one of AGE_13_17, AGE_18_24, AGE_25_34, AGE_35_44, AGE_45_54, AGE_55_100) - `gender` (enum, optional, one of GENDER_UNLIMITED, GENDER_MALE, GENDER_FEMALE) - `languages` (string[], optional) - `interestCategoryIds` (string[], optional) - `audienceIds` (string[], optional) - `excludedAudienceIds` (string[], optional) - `placements` (enum[], optional, one of PLACEMENT_TIKTOK, PLACEMENT_PANGLE, PLACEMENT_GLOBAL_APP_BUNDLE): Default: automatic placement - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_add_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","name":"Example name","locationIds":["1234567890"]}' ``` ## tiktok_add_ad Propose: new TikTok ad. Propose a new ad in an existing TikTok ad group from media that is already in TikTok: videoId (optionally with one cover image id), imageIds for an image ad, or tiktokItemId for a Spark ad from an authorized post. It is always created disabled: a person enables it. identityId comes from tiktok_list_identities. The landing page must be https. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required) - `name` (string, required) - `adText` (string, required) - `landingPageUrl` (string, required) - `identityId` (string, required) - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `identityType` (enum, optional, one of CUSTOMIZED_USER, TT_USER, BC_AUTH_TT, AUTH_CODE) - `videoId` (string, optional) - `imageIds` (string[], optional) - `tiktokItemId` (string, optional) - `callToAction` (enum, optional, one of LEARN_MORE, SHOP_NOW, SIGN_UP, CONTACT_US, DOWNLOAD, APPLY_NOW, BOOK_NOW, ORDER_NOW, GET_QUOTE, SUBSCRIBE, WATCH_NOW) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_add_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","name":"Example name","adText":"running shoes","landingPageUrl":"https://example.com","identityId":"1234567890"}' ``` ## tiktok_propose_create_campaign Propose: new TikTok campaign. Propose a new TikTok campaign: a daily (default) or total budget in the advertiser currency (normal units, sent as is), one ad group with automatic placement and the given locations, and optionally one ad from media already in TikTok, all created disabled (operation_status DISABLE). objective: TRAFFIC (clicks) or WEB_CONVERSIONS (needs pixelId and optimizationEvent). A refused ad group or ad deletes the new campaign again. Undo deletes it while disabled with no impressions, within 30 days. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `objective` (enum, required, one of TRAFFIC, WEB_CONVERSIONS) - `budget` (number, required): In the advertiser currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `locationIds` (string[], required): TikTok location ids (tiktok_targeting_options type=locations) - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `budgetMode` (enum, optional, one of BUDGET_MODE_DAY, BUDGET_MODE_TOTAL) - `adGroupName` (string, optional) - `startTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `endTime` (date-time, optional): ISO 8601 with timezone, e.g. 2026-12-01T09:00:00+01:00 - `ageGroups` (enum[], optional, one of AGE_13_17, AGE_18_24, AGE_25_34, AGE_35_44, AGE_45_54, AGE_55_100) - `gender` (enum, optional, one of GENDER_UNLIMITED, GENDER_MALE, GENDER_FEMALE) - `languages` (string[], optional) - `pixelId` (string, optional) - `optimizationEvent` (string, optional): Pixel event, e.g. COMPLETE_PAYMENT, ON_WEB_REGISTER, FORM - `ad` ({ name, adText, landingPageUrl, identityId, identityType?, videoId?, imageIds?, tiktokItemId?, callToAction? }, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_propose_create_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","objective":"TRAFFIC","budget":1,"locationIds":["1234567890"]}' ``` ## tiktok_upload_image Upload image to TikTok asset library. Uploads one image from a public https URL to the asset library of the TikTok advertiser (TikTok fetches it: UPLOAD_BY_URL) and returns its image_id, which tiktok_add_ad and tiktok_propose_create_campaign take in imageIds. No campaign, ad group or ad is created or changed and nothing is spent. Cabinets in read-only, manual or excluded mode are refused. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `imageUrl` (string, required) - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_upload_image -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"imageUrl":"https://example.com"}' ``` ## tiktok_create_carousel_ad Propose: new TikTok carousel ad. Propose a carousel ad in an existing TikTok ad group: 2 to 35 images already in the TikTok asset library (tiktok_upload_image) shown in order with one music track (musicId from the TikTok music library), ad text, identity and an https landing page. Created disabled: a person enables it. Carousels run on TikTok placement only. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required) - `name` (string, required) - `adText` (string, required) - `landingPageUrl` (string, required) - `identityId` (string, required) - `imageIds` (string[], required) - `musicId` (string, required) - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `identityType` (enum, optional, one of CUSTOMIZED_USER, TT_USER, BC_AUTH_TT, AUTH_CODE) - `callToAction` (enum, optional, one of LEARN_MORE, SHOP_NOW, SIGN_UP, CONTACT_US, DOWNLOAD, APPLY_NOW, BOOK_NOW, ORDER_NOW, GET_QUOTE, SUBSCRIBE, WATCH_NOW) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_create_carousel_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","name":"Example name","adText":"running shoes","landingPageUrl":"https://example.com","identityId":"1234567890","imageIds":["1234567890","1234567890"],"musicId":"1234567890"}' ``` ## tiktok_create_video_campaign Propose: new TikTok video campaign. Propose a new TikTok campaign built around one video already in TikTok (videoId, optional cover imageId): a daily (default) or total budget in the advertiser currency (normal units, never minor units), one ad group with the given locations and the video ad, all created disabled. objective TRAFFIC (clicks) or WEB_CONVERSIONS (needs pixelId and optimizationEvent). Check the video first with tiktok_validate_asset. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `objective` (enum, required, one of TRAFFIC, WEB_CONVERSIONS) - `budget` (number, required): In the advertiser currency, as a person writes it - `locationIds` (string[], required) - `videoId` (string, required) - `adName` (string, required) - `adText` (string, required) - `landingPageUrl` (string, required) - `identityId` (string, required) - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected - `budgetMode` (enum, optional, one of BUDGET_MODE_DAY, BUDGET_MODE_TOTAL) - `pixelId` (string, optional) - `optimizationEvent` (string, optional) - `coverImageId` (string, optional) - `identityType` (enum, optional, one of CUSTOMIZED_USER, TT_USER, BC_AUTH_TT, AUTH_CODE) - `callToAction` (enum, optional, one of LEARN_MORE, SHOP_NOW, SIGN_UP, CONTACT_US, DOWNLOAD, APPLY_NOW, BOOK_NOW, ORDER_NOW, GET_QUOTE, SUBSCRIBE, WATCH_NOW) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_create_video_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","objective":"TRAFFIC","budget":1,"locationIds":["1234567890"],"videoId":"1234567890","adName":"Example name","adText":"running shoes","landingPageUrl":"https://example.com","identityId":"1234567890"}' ``` ## tiktok_validate_asset Check a TikTok video or image against the specs. Checks a video or image against the TikTok In-Feed ad specs before upload: format, duration, file size, resolution and aspect ratio. Pass what you know; a value not given is reported as not measured (verdict incomplete) rather than as a pass. Reads nothing from TikTok. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `type` (enum, required, one of video, image) - `width` (integer, optional) - `height` (integer, optional) - `durationSeconds` (number, optional) - `sizeMb` (number, optional) - `format` (string, optional): File extension, e.g. mp4 ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_validate_asset -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"type":"video"}' ``` ## amazon_list_profiles List Amazon Ads profiles. Amazon Ads profiles (one profile = one advertiser account in one marketplace) connected to Valkiria by the caller, from the last sync: profile id, name, region, currency and time zone. The other Amazon tools take this profile id. Stored data, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_list_profiles -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_list_campaigns List Amazon campaigns. Sponsored Products campaigns of one profile, live from Amazon: campaignId, name, state (ENABLED / PAUSED), targeting type (MANUAL / AUTO), daily budget in the profile currency, dates, the bidding strategy and the placement bid adjustments (top of search, product pages). Metrics are a separate read (campaign performance). Sponsored Products only; Sponsored Brands and Sponsored Display campaigns are in their own campaign lists. Read-only. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_list_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_campaign_performance Amazon campaigns with metrics. Sponsored Products campaigns with their metrics for the period, from the daily facts Valkiria syncs from Amazon reports: spend (profile currency), impressions, clicks, CTR, purchases, cost per purchase, and — because Amazon reports attributed sales — revenue, ROAS and ACOS (14-day attribution). Revenue is null, not zero, for a campaign whose sales were never stored. The sync keeps the last 30 complete days; recordedDays shows how many each campaign has. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `days` (integer, optional): Days back from today (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_campaign_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_list_ad_groups List Amazon ad groups. Ad groups of one Amazon Ads profile, optionally of one campaign or ad group, live: adGroupId, campaignId, name, state (ENABLED / PAUSED) and the default bid in the profile currency. Enabled and paused objects only (archived ones cannot be changed). Sponsored Products only; Sponsored Brands and Sponsored Display campaigns are in their own campaign lists. Read-only. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `campaignId` (string, optional): Limit to one Sponsored Products campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional): Limit to one ad group ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_list_ad_groups -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_list_keywords List Amazon keywords. Keywords of one Amazon Ads profile, optionally of one campaign or ad group, live: keywordId, keyword text, match type (EXACT / PHRASE / BROAD), state and bid in the profile currency (no bid = the ad group default bid applies). Enabled and paused objects only (archived ones cannot be changed). Sponsored Products only; Sponsored Brands and Sponsored Display campaigns are in their own campaign lists. Read-only. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `campaignId` (string, optional): Limit to one Sponsored Products campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional): Limit to one ad group ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_list_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_list_product_targets List Amazon product targets. Product and automatic targets (targeting clauses) of one Amazon Ads profile, optionally of one campaign or ad group, live: targetId, the targeting expression (ASIN, category or automatic group), state and bid. Enabled and paused objects only (archived ones cannot be changed). Sponsored Products only; Sponsored Brands and Sponsored Display campaigns are in their own campaign lists. Read-only. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `campaignId` (string, optional): Limit to one Sponsored Products campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional): Limit to one ad group ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_list_product_targets -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_list_product_ads List Amazon product ads. Product ads of one Amazon Ads profile, optionally of one campaign or ad group, live: adId, the advertised ASIN / SKU, ad group, campaign and state. Enabled and paused objects only (archived ones cannot be changed). Sponsored Products only; Sponsored Brands and Sponsored Display campaigns are in their own campaign lists. Read-only. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `campaignId` (string, optional): Limit to one Sponsored Products campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional): Limit to one ad group ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_list_product_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_list_negative_keywords List Amazon negative keywords. Negative keywords of one Amazon Ads profile, live: level=ad_group (default) lists ad group negatives, level=campaign lists campaign negatives; each with keywordId, text, match type (NEGATIVE_EXACT / NEGATIVE_PHRASE) and state. Shows what is already excluded, as the basis for a new negative keyword. Sponsored Products only; Sponsored Brands and Sponsored Display campaigns are in their own campaign lists. Read-only. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `level` (enum, optional, one of ad_group, campaign) - `campaignId` (string, optional): Limit to one Sponsored Products campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional): Limit to one ad group ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_list_negative_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_search_term_report Amazon search term report. The customer search terms that triggered ads, with the keyword and match type that matched, from Amazon's own Sponsored Products report (spSearchTerm) summed over the period: impressions, clicks, spend, purchases, sales, ROAS and ACOS (14-day attribution, profile currency), sorted by spend. Changes nothing in the advertising account: Amazon only builds the report on its side, asynchronously. If status is "pending", call again with the returned reportId (usually ready within a few minutes). withoutSalesOnly keeps only rows that spent without a sale. A null metric means Amazon did not report it. Side effect: creates a report job in the Amazon Ads account (no campaign settings change). Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `days` (integer, optional): Complete days back, today excluded (default 30, Amazon caps at 31) - `reportId` (string, optional): Resume a report that was still pending - `campaignId` (string, optional): Limit to one Sponsored Products campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `withoutSalesOnly` (boolean, optional) - `minSpend` (number, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_search_term_report -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_placement_report Amazon placement report. Performance by placement (top of search, rest of search, product pages) per campaign, from Amazon's own Sponsored Products report (spCampaigns) summed over the period: impressions, clicks, spend, purchases, sales, ROAS and ACOS (14-day attribution, profile currency), sorted by spend. Changes nothing in the advertising account: Amazon only builds the report on its side, asynchronously. If status is "pending", call again with the returned reportId (usually ready within a few minutes). withoutSalesOnly keeps only rows that spent without a sale. A null metric means Amazon did not report it. Side effect: creates a report job in the Amazon Ads account (no campaign settings change). Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `days` (integer, optional): Complete days back, today excluded (default 30, Amazon caps at 31) - `reportId` (string, optional): Resume a report that was still pending - `campaignId` (string, optional): Limit to one Sponsored Products campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `withoutSalesOnly` (boolean, optional) - `minSpend` (number, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_placement_report -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_targeting_report Amazon keyword and target report. Performance per keyword and product target, from Amazon's own Sponsored Products report (spTargeting) summed over the period: impressions, clicks, spend, purchases, sales, ROAS and ACOS (14-day attribution, profile currency), sorted by spend. Changes nothing in the advertising account: Amazon only builds the report on its side, asynchronously. If status is "pending", call again with the returned reportId (usually ready within a few minutes). withoutSalesOnly keeps only rows that spent without a sale. A null metric means Amazon did not report it. Side effect: creates a report job in the Amazon Ads account (no campaign settings change). Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `days` (integer, optional): Complete days back, today excluded (default 30, Amazon caps at 31) - `reportId` (string, optional): Resume a report that was still pending - `campaignId` (string, optional): Limit to one Sponsored Products campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `withoutSalesOnly` (boolean, optional) - `minSpend` (number, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_targeting_report -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_product_ad_report Amazon advertised product report. Performance per advertised product (ASIN / SKU), from Amazon's own Sponsored Products report (spAdvertisedProduct) summed over the period: impressions, clicks, spend, purchases, sales, ROAS and ACOS (14-day attribution, profile currency), sorted by spend. Changes nothing in the advertising account: Amazon only builds the report on its side, asynchronously. If status is "pending", call again with the returned reportId (usually ready within a few minutes). withoutSalesOnly keeps only rows that spent without a sale. A null metric means Amazon did not report it. Side effect: creates a report job in the Amazon Ads account (no campaign settings change). Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `days` (integer, optional): Complete days back, today excluded (default 30, Amazon caps at 31) - `reportId` (string, optional): Resume a report that was still pending - `campaignId` (string, optional): Limit to one Sponsored Products campaign; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `withoutSalesOnly` (boolean, optional) - `minSpend` (number, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_product_ad_report -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_wasted_spend Amazon wasted spend. Sponsored Products campaigns that spent in the period without an attributed purchase, from the synced daily facts, each with its share of the profile spend. minSpend filters noise (profile currency, default 0). The search terms and targets behind the waste are in the search term and targeting reports (withoutSalesOnly=true). Zero purchases means Amazon attributed none within 14 days; recent days can still gain sales. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `days` (integer, optional) - `minSpend` (number, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_wasted_spend -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_list_brands_campaigns List Amazon Sponsored Brands campaigns. Sponsored Brands campaigns of one Amazon Ads profile, live from the Sponsored Brands v4 API: campaignId, name, state (ENABLED / PAUSED), budget and budget type, dates and goal as Amazon returns them. Enabled and paused campaigns only. Read-only. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_list_brands_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_list_display_campaigns List Amazon Sponsored Display campaigns. Sponsored Display campaigns of one Amazon Ads profile, live: campaignId, name, tactic (T00020 contextual or product targeting, T00030 audiences), state (enabled / paused), budget, cost type and dates as Amazon returns them. Enabled and paused campaigns only. Read-only. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_list_display_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_check_product_eligibility Check Amazon product eligibility. Whether Amazon lets these ASINs be advertised under one profile for one ad type (sp Sponsored Products, sb Sponsored Brands, sd Sponsored Display), from the Amazon Ads product eligibility API: overallStatus (ELIGIBLE / ELIGIBLE_WITH_WARNING / INELIGIBLE) per ASIN with the reasons Amazon gives (for example out of stock, buy box, category restriction). A product that is not eligible does not serve. Read-only. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read` - Parameters: - `asins` (string[], required) - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `adType` (enum, optional, one of sp, sb, sd): Default sp ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_check_product_eligibility -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"asins":["example"]}' ``` ## amazon_list_portfolios List Amazon portfolios. Portfolios of one Amazon Ads profile, live from the Amazon Ads portfolios v3 API: portfolioId, name, state, the portfolio budget (amount, currency, policy and dates, as Amazon returns it), whether it is in budget and its serving status. Campaigns name their portfolio by portfolioId. Enabled and paused portfolios only. Read-only. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_list_portfolios -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_budget_usage Amazon budget usage. How much of today's daily budget each Sponsored Products campaign has used, live from Amazon (budget usage API): budget, budgetUsagePercent and when Amazon last updated it, highest usage first. Campaigns near 100% are budget-capped and stop serving for the rest of the day. Without campaignIds the first 100 enabled and paused campaigns of the profile are checked. Sponsored Products only; Sponsored Brands and Sponsored Display campaigns are in their own campaign lists. Read-only. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `campaignIds` (string[], optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_budget_usage -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## amazon_pause_campaign Propose: pause Amazon campaign. Propose pausing an Amazon Sponsored Products campaign. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Amazon campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_pause_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## amazon_resume_campaign Propose: resume Amazon campaign. Propose resuming a paused Amazon Sponsored Products campaign. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Amazon campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_resume_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## amazon_pause_ad_group Propose: pause Amazon ad group. Propose pausing an Amazon Sponsored Products ad group. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Amazon ad group id - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_pause_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## amazon_resume_ad_group Propose: resume Amazon ad group. Propose resuming a paused Amazon Sponsored Products ad group. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Amazon ad group id - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_resume_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## amazon_pause_keyword Propose: pause Amazon keyword. Propose pausing an Amazon Sponsored Products keyword. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `keywordId` (string, required): Amazon keyword id - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_pause_keyword -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"keywordId":"1234567890"}' ``` ## amazon_resume_keyword Propose: resume Amazon keyword. Propose resuming a paused Amazon Sponsored Products keyword. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `keywordId` (string, required): Amazon keyword id - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_resume_keyword -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"keywordId":"1234567890"}' ``` ## amazon_pause_product_ad Propose: pause Amazon product ad. Propose pausing an Amazon Sponsored Products product ad. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Amazon product ad id - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_pause_product_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## amazon_resume_product_ad Propose: resume Amazon product ad. Propose resuming a paused Amazon Sponsored Products product ad. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Amazon product ad id - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_resume_product_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## amazon_update_campaign_budget Propose: Amazon campaign budget. Propose a new daily budget for an Amazon Sponsored Products campaign. The amount is in the profile currency in normal units and is sent to Amazon as it is, never in minor units; currencies without decimals (JPY…) take whole amounts. Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `amount` (number, required): In the profile currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_update_campaign_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","amount":1}' ``` ## amazon_update_keyword_bid Propose: Amazon keyword bid. Propose a new bid for one Amazon Sponsored Products keyword (ids and current bids as in the keyword list). The amount is in the profile currency in normal units and is sent to Amazon as it is, never in minor units; currencies without decimals (JPY…) take whole amounts. Undo restores the previous bid; a keyword that had no bid of its own (ad group default) has no undo. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `keywordId` (string, required) - `bid` (number, required): In the profile currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_update_keyword_bid -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"keywordId":"1234567890","bid":1}' ``` ## amazon_add_keywords Propose: new Amazon keywords. Propose new keywords in an existing ad group of a manual-targeting Sponsored Products campaign. They are always created paused: a person enables them. Without a bid the ad group default bid applies. The amount is in the profile currency in normal units and is sent to Amazon as it is, never in minor units; currencies without decimals (JPY…) take whole amounts. Amazon refuses keywords in automatic-targeting campaigns; its answer is reported as is. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required) - `keywords` ({ text, matchType, bid? }[], required) - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_add_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","keywords":[{"text":"running shoes","matchType":"EXACT"}]}' ``` ## amazon_add_negative_keywords Propose: Amazon negative keywords. Propose negative keywords for Sponsored Products: with adGroupId they are ad group negatives, with only campaignId they are campaign negatives. Negatives stop ads on matching searches, so they take effect as soon as the owner approves. Wasteful terms appear in the search term report (withoutSalesOnly=true); existing negatives are in the negative keyword list. No undo from Valkiria: a negative is removed in the Amazon Ads console. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `keywords` ({ text, matchType }[], required) - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_add_negative_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"keywords":[{"text":"running shoes","matchType":"NEGATIVE_EXACT"}]}' ``` ## amazon_add_ad_group Propose: new Amazon ad group. Propose a new ad group in an existing Sponsored Products campaign. It is always created paused and empty: a person adds product ads in the Amazon Ads console and enables it. defaultBid is required by Amazon. The amount is in the profile currency in normal units and is sent to Amazon as it is, never in minor units; currencies without decimals (JPY…) take whole amounts. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `name` (string, required) - `defaultBid` (number, required): In the profile currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_add_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","name":"Example name","defaultBid":1}' ``` ## amazon_add_product_targets Propose: Amazon product targets. Propose manual product targets in an existing ad group of a manual-targeting Sponsored Products campaign: ASIN_SAME_AS targets one product page by ASIN (own or a competitor's), ASIN_CATEGORY_SAME_AS targets a category by Amazon category id. They are always created paused: a person enables them. Without a bid the ad group default bid applies. The amount is in the profile currency in normal units and is sent to Amazon as it is, never in minor units; currencies without decimals (JPY…) take whole amounts. Existing targets are in the product target list; Amazon refuses targets it does not accept and its answer is reported as is. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required) - `targets` ({ type, value, bid? }[], required) - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_add_product_targets -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","targets":[{"type":"ASIN_SAME_AS","value":"example"}]}' ``` ## amazon_add_brands_campaign Propose: new Amazon Sponsored Brands campaign. Propose a new Sponsored Brands campaign with a daily budget. It is always created paused and without ad groups or ads: a person adds the brand creative and enables it in the Amazon Ads console. Sellers pass brandEntityId (the brand registered to the profile); vendors leave it out. The amount is in the profile currency in normal units and is sent to Amazon as it is, never in minor units; currencies without decimals (JPY…) take whole amounts. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `dailyBudget` (number, required): In the profile currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `startDate` (string, required): YYYY-MM-DD - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `endDate` (string, optional): YYYY-MM-DD - `brandEntityId` (string, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_add_brands_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","dailyBudget":1,"startDate":"2026-10-01"}' ``` ## amazon_add_display_campaign Propose: new Amazon Sponsored Display campaign. Propose a new Sponsored Display campaign (cost per click) with a daily budget. tactic T00020 is contextual / product targeting, T00030 audiences. It is always created paused and without ad groups: a person adds products and targeting and enables it in the Amazon Ads console. The amount is in the profile currency in normal units and is sent to Amazon as it is, never in minor units; currencies without decimals (JPY…) take whole amounts. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `dailyBudget` (number, required): In the profile currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `startDate` (string, required): YYYY-MM-DD - `tactic` (enum, required, one of T00020, T00030) - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `endDate` (string, optional): YYYY-MM-DD - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_add_display_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","dailyBudget":1,"startDate":"2026-10-01","tactic":"T00020"}' ``` ## amazon_add_sp_campaign Propose: new Amazon Sponsored Products campaign. Propose a new Sponsored Products campaign with a daily budget, automatic (AUTO) or manual (MANUAL) targeting and a start date, plus one ad group with a default bid and product ads: sku for seller profiles, asin for vendor profiles. MANUAL campaigns can take keywords; AUTO campaigns take none. The campaign is always created paused; the ad group, ads and keywords are active inside it, so nothing spends until a person enables the campaign. A daily budget below the default bid is refused. The amount is in the profile currency in normal units and is sent to Amazon as it is, never in minor units; currencies without decimals (JPY…) take whole amounts. Undo archives the campaign while it is still paused. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `dailyBudget` (number, required): In the profile currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `targetingType` (enum, required, one of AUTO, MANUAL) - `startDate` (string, required): YYYY-MM-DD - `adGroupName` (string, required) - `defaultBid` (number, required): In the profile currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `products` ({ sku?, asin? }[], required): One of sku (sellers) or asin (vendors) per product - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `endDate` (string, optional): YYYY-MM-DD - `keywords` ({ text, matchType, bid? }[], optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_add_sp_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","dailyBudget":1,"targetingType":"AUTO","startDate":"2026-10-01","adGroupName":"Example name","defaultBid":1,"products":[{}]}' ``` ## amazon_add_negative_product_targets Propose: Amazon negative product targets. Propose excluding products (ASIN_SAME_AS, by ASIN) or brands (ASIN_BRAND_SAME_AS, by Amazon brand id) from one Sponsored Products ad group, so its ads stop showing on those product pages. Exclusions already in the ad group are skipped. They take effect as soon as the owner approves and lower spend on those placements. No undo from Valkiria: an exclusion is archived in the Amazon Ads console. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required) - `targets` ({ type, value }[], required) - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_add_negative_product_targets -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","targets":[{"type":"ASIN_SAME_AS","value":"example"}]}' ``` ## amazon_moderation_status Get Amazon ad moderation status. Moderation and serving status of Sponsored Products product ads, live from Amazon (extended data servingStatus): each ad with its ASIN / SKU, state and whether Amazon shows it as approved (live or eligible), rejected (policy suspended or ineligible, with Amazon's reasons), in review, or other, plus the counts. Optionally one campaign or ad group. Read-only. Uses the Amazon Ads API: https://advertising.amazon.com/API/docs/en-us - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `profileId` (string, optional): Amazon Ads profile id (digits) or its Valkiria id; may be left out when only one profile is connected - `campaignId` (string, optional): Campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/amazon_moderation_status -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## creative_predicted_score Predict a creative score. Predicted quality score 0-100 of one ad image before it runs, from the Design Studio vision review: unwanted or garbled text, watermarks, anatomy defects, artifacts, framing, relevance to the brief and ad safety, with each issue named. imageUrl is a Valkiria storage URL (from the banner tools) or a data URL; other hosts are refused. expectText=true for a composed banner with copy. verdict: strong (80+), fair (60-79), weak, or unavailable when no vision model answered (the paid vision keys are tried first, then the model Valkiria hosts itself); an unavailable answer carries no score. Read-only: nothing is stored or changed. - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `propose`; API key scope `ai:generate` - Parameters: - `imageUrl` (string, required) - `brief` (string, optional): What the ad is meant to show, for the relevance check - `expectText` (boolean, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/creative_predicted_score -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"imageUrl":"https://example.com"}' ``` ## youtube_propose_upload Propose uploading a video to YouTube. Propose uploading one MP4 or MOV video (up to 256 MB) from Valkiria storage to the owner's own YouTube channel with a title, a description and a privacy setting (private, unlisted or public; unlisted when left out), so that a Google video ad can run it. videoUrl is a storage URL of this workspace, as the video and creative tools return it; files on other hosts are refused. Nothing is uploaded now: this creates a proposal and returns proposal_id and approval_url; after the owner approves, the file is uploaded once and the video id and the privacy YouTube stored are kept with the change. Undo sets the video private where the Google connection is allowed to edit videos; with the upload-only permission the video is removed in YouTube Studio. Refused while YouTube upload is switched off on the deployment or Google is not connected with the upload permission. - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `videoUrl` (string, required): Valkiria storage URL of the video file - `title` (string, required) - `description` (string, optional) - `privacy` (enum, optional, one of private, unlisted, public): Default unlisted - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/youtube_propose_upload -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"videoUrl":"https://example.com","title":"Example name"}' ``` ## microsoft_list_accounts List Microsoft Advertising accounts. Microsoft Advertising (Bing Ads) accounts connected to Valkiria by the caller, from the last sync: account id, name, currency and time zone. The other Microsoft Advertising tools take this account id. Stored data, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_list_accounts -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## microsoft_list_campaigns List Microsoft campaigns. Campaigns of one Microsoft Advertising account, live: id, name, status (ACTIVE / PAUSED; providerStatus keeps Microsoft's own word such as BudgetPaused or Suspended), campaign type, budget type and daily budget in the account currency, sharedBudgetId when the campaign uses a shared budget, bid strategy, languages and dates. Metrics are a separate read (campaign performance). Read-only. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_list_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## microsoft_campaign_performance Microsoft campaigns with metrics. Microsoft Advertising campaigns with their metrics for the period, from the same dated facts the Analytics screen shows (synced from Microsoft's daily campaign performance report): spend (account currency), impressions, clicks, CTR, conversions and cost per conversion (providerCampaignId is the Microsoft campaign id). The sync keeps the last 30 days; recordedDays below requestedDays means some days are not synced yet. Provider facts carry no revenue: revenue and roas are null, not zero. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `days` (integer, optional): Days back from today (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_campaign_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## microsoft_list_ad_groups List Microsoft ad groups. Ad groups of one Microsoft campaign, live: id, name, status and the ad group CPC bid in the account currency. Read-only. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): Microsoft campaign id (microsoft_list_campaigns); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_list_ad_groups -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## microsoft_list_keywords List Microsoft keywords. Keywords of one Microsoft ad group, live: id, text, match type (Exact / Phrase / Broad), status and bid in the account currency (null = the ad group bid applies). Read-only. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `adGroupId` (string, required): Microsoft ad group id (microsoft_list_ad_groups) - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_list_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## microsoft_list_ads List Microsoft ads. Ads of one Microsoft ad group, live, of every ad type: id, type, status, first headline and final URL. Read-only. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `adGroupId` (string, required): Microsoft ad group id (microsoft_list_ad_groups) - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_list_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## microsoft_list_negative_keywords List Microsoft negative keywords. Campaign-level negative keywords of one Microsoft campaign, live: id, text and match type (Exact / Phrase). Shows what is already excluded, as the basis for a new negative keyword. Read-only. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): Microsoft campaign id (microsoft_list_campaigns); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_list_negative_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## microsoft_list_extensions List Microsoft ad extensions. Ad extensions associated with one Microsoft campaign, live: sitelinks, callouts, call and structured snippet extensions, each with id, type, a readable summary, status and editorial status. Read-only. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): Microsoft campaign id (microsoft_list_campaigns); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_list_extensions -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## microsoft_list_schedule Microsoft ad schedule and device bids. Ad schedule (day and time windows with their bid adjustments) and device bid adjustments of one Microsoft campaign, live. An empty schedule means the campaign runs at all hours. Read-only. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): Microsoft campaign id (microsoft_list_campaigns); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_list_schedule -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## microsoft_list_conversion_goals List Microsoft conversion goals. Conversion goals of one Microsoft Advertising account, live: id, name, type, status and the UET tag id. Shows whether zero conversions can mean missing tracking. Read-only. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_list_conversion_goals -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## microsoft_impression_share Microsoft impression share. Search impression share per campaign for the last 30 days, as stored at the last sync from Microsoft's campaign performance report: impression share, share lost to budget and share lost to rank (percent), with syncedAt. A null value means Microsoft reported none (too little traffic) or the report has not been synced yet; it is never zero. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_impression_share -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## microsoft_search_terms Microsoft search terms. The search queries that triggered ads of one Microsoft campaign over the last 30 days, from Microsoft's search query report: query, matched keyword, ad group, impressions, clicks, spend (account currency) and conversions. The report is prepared on request and can take up to a minute; pending=true means it was not ready, call again. A null metric means Microsoft did not report it. Shows which queries could become negative keywords. Read-only. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `campaignId` (string, required): Microsoft campaign id (microsoft_list_campaigns); the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_search_terms -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## microsoft_wasted_spend Microsoft wasted spend. Microsoft Advertising campaigns that spent in the period without a conversion, from the dated analytics facts, each with its share of the spend in its currency. minSpend filters noise (account currency, default 0). Zero only means Microsoft attributed no conversion: a missing UET tag or goal gives the same picture, and the queries behind the waste are in the search terms read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `days` (integer, optional) - `minSpend` (number, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_wasted_spend -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## microsoft_pause_campaign Propose: pause Microsoft campaign. Propose pausing a Microsoft Advertising campaign. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Microsoft campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_pause_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## microsoft_resume_campaign Propose: resume Microsoft campaign. Propose resuming a paused Microsoft Advertising campaign. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Microsoft campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_resume_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## microsoft_pause_ad_group Propose: pause Microsoft ad group. Propose pausing a Microsoft Advertising ad group. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Microsoft campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, required): Microsoft ad group id - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_pause_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","adGroupId":"1234567890"}' ``` ## microsoft_resume_ad_group Propose: resume Microsoft ad group. Propose resuming a paused Microsoft Advertising ad group. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Microsoft campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, required): Microsoft ad group id - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_resume_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","adGroupId":"1234567890"}' ``` ## microsoft_pause_keyword Propose: pause Microsoft keyword. Propose pausing a Microsoft Advertising keyword. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Microsoft ad group id - `keywordId` (string, required): Microsoft keyword id - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_pause_keyword -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","keywordId":"1234567890"}' ``` ## microsoft_resume_keyword Propose: resume Microsoft keyword. Propose resuming a paused Microsoft Advertising keyword. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Microsoft ad group id - `keywordId` (string, required): Microsoft keyword id - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_resume_keyword -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","keywordId":"1234567890"}' ``` ## microsoft_pause_ad Propose: pause Microsoft ad. Propose pausing a Microsoft Advertising ad. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Microsoft ad group id - `adId` (string, required): Microsoft ad id - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_pause_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","adId":"1234567890"}' ``` ## microsoft_resume_ad Propose: resume Microsoft ad. Propose resuming a paused Microsoft Advertising ad. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Microsoft ad group id - `adId` (string, required): Microsoft ad id - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_resume_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","adId":"1234567890"}' ``` ## microsoft_update_campaign_budget Propose: Microsoft campaign budget. Propose a new daily budget for a Microsoft Advertising campaign that has its own daily budget; the budget type (standard or accelerated) is kept. The amount is in the account currency in normal units and is sent to Microsoft as it is, never in minor units; currencies without decimals (JPY…) take whole amounts. A campaign on a shared budget is refused: that budget feeds other campaigns too. Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Microsoft campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `amount` (number, required): In the account currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_update_campaign_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","amount":1}' ``` ## microsoft_update_keyword_bid Propose: Microsoft keyword bid. Propose a new bid for one Microsoft Advertising keyword (ids and current bids as in the keyword list). The amount is in the account currency in normal units and is sent to Microsoft as it is, never in minor units; currencies without decimals (JPY…) take whole amounts. Undo restores the previous bid; a keyword that had no bid of its own (ad group bid) has no undo. The match type of an existing keyword cannot be changed in Microsoft Advertising: the way there is a new keyword with the other match type and a pause of the old one. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Microsoft ad group id - `keywordId` (string, required) - `bid` (number, required): In the account currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_update_keyword_bid -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","keywordId":"1234567890","bid":1}' ``` ## microsoft_add_keywords Propose: new Microsoft keywords. Propose new keywords in an existing Microsoft Advertising ad group. They are always created paused: a person enables them. Without a bid the ad group bid applies. The amount is in the account currency in normal units and is sent to Microsoft as it is, never in minor units; currencies without decimals (JPY…) take whole amounts. Microsoft's own answer (duplicate, editorial rejection) is reported as is. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Microsoft campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, required): Microsoft ad group id - `keywords` ({ text, matchType, bid? }[], required) - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_add_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","adGroupId":"1234567890","keywords":[{"text":"running shoes","matchType":"Exact"}]}' ``` ## microsoft_add_negative_keywords Propose: Microsoft negative keywords. Propose campaign-level negative keywords for a Microsoft Advertising campaign (match type Exact or Phrase). Negatives stop ads on matching searches, so they take effect as soon as the owner approves. Wasteful queries appear in the search terms read; existing negatives are in the negative keyword list. No automatic undo: a negative is removed on the campaign in Valkiria or in Microsoft Advertising. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Microsoft campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `keywords` ({ text, matchType }[], required) - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_add_negative_keywords -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","keywords":[{"text":"running shoes","matchType":"Exact"}]}' ``` ## microsoft_update_bid_strategy Propose: Microsoft bid strategy. Propose a different bid strategy for a Microsoft Advertising campaign: EnhancedCpc, MaxClicks, MaxConversions or MaxConversionValue (no target value is set; Microsoft no longer accepts Target CPA / Target ROAS on campaigns). MaxConversions and MaxConversionValue need conversion tracking (microsoft_list_conversion_goals); Microsoft's refusal is reported as is. No automatic undo: the previous strategy may carry targets that are not stored, so it is restored by a new proposal or in Microsoft Advertising. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Microsoft campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `bidStrategy` (enum, required, one of EnhancedCpc, MaxClicks, MaxConversions, MaxConversionValue) - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_update_bid_strategy -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","bidStrategy":"EnhancedCpc"}' ``` ## microsoft_add_search_campaign Propose: new Microsoft Search campaign. Propose a new Microsoft Advertising Search campaign with its own daily budget (standard delivery, account time zone), one ad group with a CPC bid, one responsive search ad (3 to 15 headlines of up to 30 characters, 2 to 4 descriptions of up to 90, an http(s) final URL, optional paths of up to 15) and keywords. Created paused (children active inside), so nothing spends until enabled. A budget below Microsoft's minimum or a duplicate name is refused before queueing. The amount is in the account currency in normal units and is sent to Microsoft as it is, never in minor units; currencies without decimals (JPY…) take whole amounts. Undo deletes the campaign while it is still paused. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `dailyBudget` (number, required): In the account currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `adGroupName` (string, required) - `cpcBid` (number, required): In the account currency, as a person writes it (50.5 = 50.50 USD, 5000 = 5000 JPY). Never minor units; currencies without decimals take whole amounts - `headlines` (string[], required) - `descriptions` (string[], required) - `finalUrl` (uri, required) - `keywords` ({ text, matchType, bid? }[], required) - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `path1` (string, optional) - `path2` (string, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_add_search_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","dailyBudget":1,"adGroupName":"Example name","cpcBid":1,"headlines":["example","example","example"],"descriptions":["example","example"],"finalUrl":"https://example.com","keywords":[{"text":"running shoes","matchType":"Exact"}]}' ``` ## microsoft_add_extensions Propose: Microsoft ad extensions. Propose ad extensions for one Microsoft Advertising campaign, created and linked to it: SitelinkAdExtension (displayText 25, finalUrl, optional description1/2 of 35), CalloutAdExtension (text 25), CallAdExtension (countryCode, phoneNumber 5-15 digits) or StructuredSnippetAdExtension (header such as Brands, Types, Styles, with 3-10 values of 25). Texts are never cut: too long is refused. Existing ones are in the extension list. No automatic undo: unlink on the campaign. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Microsoft campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `extensions` ({ extensionType, displayText?, finalUrl?, description1?, description2?, text?, countryCode?, phoneNumber?, header?, values? }[], required) - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_add_extensions -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","extensions":[{"extensionType":"SitelinkAdExtension"}]}' ``` ## microsoft_update_ad_group Propose: edit a Microsoft ad group. Propose a new name and/or default CPC bid for one Microsoft Advertising ad group (addressed through its campaign). The bid is in the account currency in normal units, never minor units. A higher bid can raise spend. Undo restores the previous name and bid. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Microsoft Advertising API: https://learn.microsoft.com/en-us/advertising/guides/get-started - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Microsoft campaign id; the Valkiria campaign id (UUID from list_campaigns) is accepted too - `adGroupId` (string, required): Microsoft ad group id - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected - `name` (string, optional) - `cpcBid` (number, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_update_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","adGroupId":"1234567890"}' ``` ## chatgpt_ads_list_accounts List ChatGPT Ads accounts. ChatGPT Ads accounts connected to Valkiria by the caller, from stored data: Valkiria id, ChatGPT Ads account id, name, currency, status and last sync. The other ChatGPT Ads tools take either id. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_list_accounts -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## chatgpt_ads_list_campaigns List ChatGPT Ads campaigns. Campaigns of one ChatGPT Ads account, live from the OpenAI Ads API: id, name, status (active, paused or archived), lifetime budget in the account currency, bidding type and start / end time. Read-only. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_list_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## chatgpt_ads_list_ad_groups List ChatGPT Ads ad groups. Ad groups of one ChatGPT Ads campaign, live: id, name, status, billing event and max bid in the account currency. Read-only. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): ChatGPT Ads campaign id - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_list_ad_groups -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## chatgpt_ads_list_ads List ChatGPT Ads ads. Ads of one ChatGPT Ads ad group, live: id, name, status and the creative (title, body, target URL) as the API returns it. Read-only. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `adGroupId` (string, required): ChatGPT Ads ad group id - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_list_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## chatgpt_ads_performance ChatGPT Ads performance by day. Daily metrics from the OpenAI Ads insights API for a date range, per campaign, ad group or ad: impressions, clicks, spend (account currency), CTR, CPC, CPM and conversions (click-through and view-through). A null metric means the API did not report it, not zero; conversions arrive 24-48 hours late. Revenue is not reported by this API. Read-only. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected - `level` (enum, optional, one of campaign, ad_group, ad): Default campaign - `from` (string, optional): YYYY-MM-DD, default 30 days ago - `to` (string, optional): YYYY-MM-DD, default today - `campaignId` (string, optional): Limit to one ChatGPT Ads campaign ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## chatgpt_ads_account_info ChatGPT Ads account details. One ChatGPT Ads ad account read live from the OpenAI Ads API: id, name, status, currency, time zone and the brand (name, favicon) shown on its ads, as the API returns them. Read-only. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_account_info -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## chatgpt_ads_campaign_details ChatGPT Ads campaign details. One ChatGPT Ads campaign read live, with its ad groups: campaign status, lifetime budget (account currency), bidding type, start / end time and targeting as the API returns it; per ad group status, billing event and max bid. Metrics are chatgpt_ads_performance. Read-only. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `campaignId` (string, required): ChatGPT Ads campaign id - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_campaign_details -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## chatgpt_ads_pause_campaign Propose: pause ChatGPT Ads campaign. Propose pausing an active ChatGPT Ads campaign. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): ChatGPT Ads campaign id - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_pause_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## chatgpt_ads_resume_campaign Propose: resume ChatGPT Ads campaign. Propose activating a paused ChatGPT Ads campaign. Activating starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): ChatGPT Ads campaign id - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_resume_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## chatgpt_ads_pause_ad_group Propose: pause ChatGPT Ads ad group. Propose pausing an active ChatGPT Ads ad group. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): ChatGPT Ads ad group id - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_pause_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## chatgpt_ads_resume_ad_group Propose: resume ChatGPT Ads ad group. Propose activating a paused ChatGPT Ads ad group. Activating starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): ChatGPT Ads ad group id - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_resume_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## chatgpt_ads_pause_ad Propose: pause ChatGPT Ads ad. Propose pausing an active ChatGPT Ads ad. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): ChatGPT Ads ad id - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_pause_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## chatgpt_ads_resume_ad Propose: resume ChatGPT Ads ad. Propose activating a paused ChatGPT Ads ad. Activating starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): ChatGPT Ads ad id - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_resume_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## chatgpt_ads_conversion_setup ChatGPT Ads conversion setup. Conversion tracking setup of one ChatGPT Ads account: the pixels (Pixel ID and conversion source id) and Conversions API keys created through Valkiria, and the event settings read live (id, name, event type, attribution window, source ids, archived). A key is shown as its name and last four characters; the key itself is stored encrypted and is not returned by any tool. The OpenAI Ads API lists neither pixels nor keys, so ones made in ChatGPT Ads Manager are not in this answer. Read-only. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_conversion_setup -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## chatgpt_ads_pixel_events ChatGPT Ads recent pixel events. Events the browser pixel of one Pixel ID sent in the last 15 minutes (at most 50): type, custom event name, action source and the time sent and received. A wiring test for a new pixel, not attribution: attributed conversions are in chatgpt_ads_performance. Read-only. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `pixelId` (string, required): Pixel ID from chatgpt_ads_conversion_setup or ChatGPT Ads Manager - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_pixel_events -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"pixelId":"1234567890"}' ``` ## chatgpt_ads_list_custom_audiences List ChatGPT Ads custom audiences. Custom audiences of one ChatGPT Ads account, live: id, name, description, status (processing, ready, too_small, failed, archived and the intermediate states) and the matched-user and uploaded-identifier count ranges as the API reports them (none means not available, not zero). Inclusion and bid adjustment need about 25,000 matched users; exclusion has no minimum. Custom audiences are not supported for campaigns that target the EEA or Switzerland. Read-only. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_list_custom_audiences -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## chatgpt_ads_propose_pixel Propose: ChatGPT Ads web pixel. Propose creating a web measurement pixel in a ChatGPT Ads account. After approval the pixel is created once and its Pixel ID (for the JavaScript pixel and the Conversions API) and conversion source id (for an event setting) are kept and shown by chatgpt_ads_conversion_setup. A pixel cannot be removed through the API, so there is no undo. OpenAI enables pixel management per ad account; an account without it answers conversion_setup_not_enabled when the proposal is applied. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required): Pixel name, 3-200 characters - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_propose_pixel -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name"}' ``` ## chatgpt_ads_propose_conversions_api_key Propose: ChatGPT Ads Conversions API key. Propose creating a Conversions API key (the server-to-server key for sending conversion events, separate from the advertiser API key). After approval the key is created once, encrypted and stored in Valkiria, where the conversion sender reads it; the proposal, this answer and the Approvals page carry the name and, once created, the last four characters, and the key itself is not returned by any tool. A key cannot be revoked through the API, so there is no undo: it is revoked in ChatGPT Ads Manager. Refused when the deployment has no credential encryption key. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required): Key name, 3-200 characters - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_propose_conversions_api_key -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name"}' ``` ## chatgpt_ads_propose_event_setting Propose: ChatGPT Ads conversion event setting. Propose defining a conversion (event setting) on one conversion source: a display name, the event type (a standard event such as lead_created, order_created, registration_completed, or custom with customEventName) and the pixel's conversion source id from chatgpt_ads_conversion_setup. The attribution window is 30 days, as the API requires. An identical setting that already exists is reported instead of duplicated. After approval it is created once and confirmed in the event settings list; its id is what a conversion-optimised campaign refers to. The API has no archive call for event settings, so there is no undo. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required): Conversion display name - `eventType` (string, required): Standard event type or custom - `sourceId` (string, required): Conversion source id of the pixel - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected - `customEventName` (string, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_propose_event_setting -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","eventType":"example","sourceId":"1234567890"}' ``` ## chatgpt_ads_propose_custom_audience Propose: ChatGPT Ads custom audience. Propose creating an empty custom audience (name and optional description) in a ChatGPT Ads account. Members are added in ChatGPT Ads Manager or through the OpenAI upload API: customer identifiers are personal data and are not accepted by this tool. A name already in use is refused. After approval the audience is created once and read back; undo archives it, which ChatGPT Ads does not reverse. Custom audiences are not supported for campaigns that target the EEA or Switzerland. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required): Audience name, 3-200 characters - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected - `description` (string, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_propose_custom_audience -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name"}' ``` ## chatgpt_ads_update_campaign_budget Propose: ChatGPT Ads campaign budget. Propose a new lifetime budget (lifetime spend limit) for a ChatGPT Ads campaign, in the account currency as a person writes it (50.5 = 50.50 USD), at least 1. The OpenAI Ads API has no daily budget. Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the OpenAI Ads API: https://developers.openai.com/ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): ChatGPT Ads campaign id - `amount` (number, required): Lifetime budget in the account currency - `accountId` (string, optional): ChatGPT Ads account id or its Valkiria id; may be left out when only one ChatGPT Ads account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/chatgpt_ads_update_campaign_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","amount":1}' ``` ## shared_dashboard_list List shared dashboard links. Read-only client links created by the caller: name, client, cabinets shared (empty = all), default range, expiry, revoked, views. The full link is shown only once at creation. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/shared_dashboard_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## shared_dashboard_create Create a shared dashboard link. Create a read-only public link with live statistics (spend, impressions, clicks, results per campaign/ad, date range picker) of the chosen connected cabinets: Google customer id, Meta act_ id, Telegram Ads account id or TikTok advertiser id. Anyone with the link can view it without an account; nothing in the ad account changes. Spend is hidden unless showSpend=true. Returns the link once. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required): Link title the viewer sees - `accountIds` (string[], required): Cabinet ids to share; empty = all connected cabinets - `clientId` (string, optional): Valkiria client id to label the link - `defaultRange` (number, optional) - `expiresAt` (string, optional): ISO date-time after which the link stops working - `showSpend` (boolean, optional) - `showCampaigns` (boolean, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/shared_dashboard_create -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","accountIds":["1234567890"]}' ``` ## shared_dashboard_revoke Revoke a shared dashboard link. Stop a shared dashboard link from working (the viewer then sees "not found"). Nothing in the ad account changes. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `id` (string, required): Shared dashboard id from shared_dashboard_list ``` curl -X POST https://valkiria.pro/api/v1/tools/shared_dashboard_revoke -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"id":"1234567890"}' ``` ## pinterest_list_accounts List Pinterest ad accounts. Pinterest ad accounts connected to Valkiria by the caller: Valkiria id, Pinterest account id, name and currency. The other Pinterest tools take either id. Stored data. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_list_accounts -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## pinterest_list_campaigns List Pinterest campaigns. Pinterest campaigns of one ad account: Pinterest id, parent id, name, status, daily budget where it has one (account currency). Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_list_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## pinterest_list_ad_groups List Pinterest ad groups. Pinterest ad groups of one ad account: Pinterest id, parent id, name, status, daily budget where it has one (account currency) and bid where stored. Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected - `campaignId` (string, optional): Limit to one Pinterest campaign ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_list_ad_groups -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## pinterest_list_ads List Pinterest ads. Pinterest ads of one ad account: Pinterest id, parent id, name, status and bid where stored. Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected - `adGroupId` (string, optional): Limit to one Pinterest ad group ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_list_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## pinterest_campaign_performance Pinterest campaigns with metrics. Pinterest campaigns with totals for the last days from the synced daily stats: spend (account currency), impressions, clicks, CTR, conversions and cost per conversion (conversions are Pinterest TOTAL_CONVERSIONS). recordedDays below requestedDays means some days are not synced. A null metric means it was not reported, not zero; revenue is not reported. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected - `days` (integer, optional): Days back from today (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_campaign_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## pinterest_pause_campaign Propose: pause Pinterest campaign. Propose pausing a Pinterest campaign. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Pinterest API v5: https://developers.pinterest.com/docs/api/v5/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Pinterest campaign id - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_pause_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## pinterest_resume_campaign Propose: resume Pinterest campaign. Propose resuming a paused Pinterest campaign. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Pinterest API v5: https://developers.pinterest.com/docs/api/v5/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Pinterest campaign id - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_resume_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## pinterest_pause_ad_group Propose: pause Pinterest ad group. Propose pausing a Pinterest ad group. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Pinterest API v5: https://developers.pinterest.com/docs/api/v5/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Pinterest ad group id - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_pause_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## pinterest_resume_ad_group Propose: resume Pinterest ad group. Propose resuming a paused Pinterest ad group. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Pinterest API v5: https://developers.pinterest.com/docs/api/v5/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Pinterest ad group id - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_resume_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## pinterest_pause_ad Propose: pause Pinterest ad. Propose pausing a Pinterest ad. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Pinterest API v5: https://developers.pinterest.com/docs/api/v5/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Pinterest ad id - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_pause_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## pinterest_resume_ad Propose: resume Pinterest ad. Propose resuming a paused Pinterest ad. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Pinterest API v5: https://developers.pinterest.com/docs/api/v5/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Pinterest ad id - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_resume_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## pinterest_update_campaign_budget Propose: Pinterest campaign budget. Propose a new daily budget for a Pinterest campaign that already has one, in the ad account currency (normal units, never converted). Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Pinterest API v5: https://developers.pinterest.com/docs/api/v5/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Pinterest campaign id - `amount` (number, required): Daily budget in the ad account currency, as a person writes it (50.5 = 50.50 USD), never minor units - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_update_campaign_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","amount":1}' ``` ## pinterest_update_ad_group_budget Propose: Pinterest ad group budget. Propose a new daily budget for a Pinterest ad group that already has one, in the ad account currency (normal units, never converted). Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Pinterest API v5: https://developers.pinterest.com/docs/api/v5/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Pinterest ad group id - `amount` (number, required): Daily budget in the ad account currency, as a person writes it (50.5 = 50.50 USD), never minor units - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_update_ad_group_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","amount":1}' ``` ## pinterest_propose_create_campaign Propose: new Pinterest campaign. Propose a new Pinterest campaign; it is always created paused and a person turns it on in Pinterest. objective is the Pinterest campaign objective; dailyBudget, when given, is the campaign daily spend cap. The proposal cannot be undone from Valkiria. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Pinterest API v5: https://developers.pinterest.com/docs/api/v5/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `objective` (enum, required, one of AWARENESS, CONSIDERATION, WEB_CONVERSION, CATALOG_SALES, VIDEO_COMPLETION, APP_INSTALL, SALES, LEADS, CTV_CONSIDERATION) - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one Pinterest ad account is connected - `dailyBudget` (number, optional): Daily budget in the ad account currency, as a person writes it (50.5 = 50.50 USD), never minor units - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_propose_create_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","objective":"AWARENESS"}' ``` ## reddit_list_accounts List Reddit ad accounts. Reddit ad accounts connected to Valkiria by the caller: Valkiria id, Reddit account id, name and currency. The other Reddit tools take either id. Stored data. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_list_accounts -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## reddit_list_campaigns List Reddit campaigns. Reddit campaigns of one ad account: Reddit id, parent id, name, status, daily budget where it has one (account currency). Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_list_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## reddit_list_ad_groups List Reddit ad groups. Reddit ad groups of one ad account: Reddit id, parent id, name, status, daily budget where it has one (account currency) and bid where stored. Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected - `campaignId` (string, optional): Limit to one Reddit campaign ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_list_ad_groups -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## reddit_list_ads List Reddit ads. Reddit ads of one ad account: Reddit id, parent id, name, status and bid where stored. Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected - `adGroupId` (string, optional): Limit to one Reddit ad group ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_list_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## reddit_campaign_performance Reddit campaigns with metrics. Reddit campaigns with totals for the last days from the synced daily stats: spend (account currency), impressions, clicks, CTR, conversions and cost per conversion (conversions are Reddit key conversions). recordedDays below requestedDays means some days are not synced. A null metric means it was not reported, not zero; revenue is not reported. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected - `days` (integer, optional): Days back from today (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_campaign_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## reddit_pause_campaign Propose: pause Reddit campaign. Propose pausing a Reddit campaign. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Reddit Ads API v3: https://ads-api.reddit.com/docs/v3/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Reddit campaign id - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_pause_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## reddit_resume_campaign Propose: resume Reddit campaign. Propose resuming a paused Reddit campaign. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Reddit Ads API v3: https://ads-api.reddit.com/docs/v3/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Reddit campaign id - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_resume_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## reddit_pause_ad_group Propose: pause Reddit ad group. Propose pausing a Reddit ad group. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Reddit Ads API v3: https://ads-api.reddit.com/docs/v3/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Reddit ad group id - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_pause_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## reddit_resume_ad_group Propose: resume Reddit ad group. Propose resuming a paused Reddit ad group. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Reddit Ads API v3: https://ads-api.reddit.com/docs/v3/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Reddit ad group id - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_resume_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## reddit_pause_ad Propose: pause Reddit ad. Propose pausing a Reddit ad. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Reddit Ads API v3: https://ads-api.reddit.com/docs/v3/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Reddit ad id - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_pause_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## reddit_resume_ad Propose: resume Reddit ad. Propose resuming a paused Reddit ad. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Reddit Ads API v3: https://ads-api.reddit.com/docs/v3/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Reddit ad id - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_resume_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## reddit_update_campaign_budget Propose: Reddit campaign budget. Propose a new daily budget for a Reddit campaign that already has one, in the ad account currency (normal units, never converted). Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Reddit Ads API v3: https://ads-api.reddit.com/docs/v3/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Reddit campaign id - `amount` (number, required): Daily budget in the ad account currency, as a person writes it (50.5 = 50.50 USD), never minor units - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_update_campaign_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","amount":1}' ``` ## reddit_update_ad_group_budget Propose: Reddit ad group budget. Propose a new daily budget for a Reddit ad group that already has one, in the ad account currency (normal units, never converted). Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Reddit Ads API v3: https://ads-api.reddit.com/docs/v3/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Reddit ad group id - `amount` (number, required): Daily budget in the ad account currency, as a person writes it (50.5 = 50.50 USD), never minor units - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_update_ad_group_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","amount":1}' ``` ## reddit_propose_create_campaign Propose: new Reddit campaign. Propose a new Reddit campaign; it is always created paused and a person turns it on in Reddit. A dailyBudget turns on campaign budget optimization, which Reddit keeps for the life of the campaign; without it the ad groups carry the budget. The proposal cannot be undone from Valkiria. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Reddit Ads API v3: https://ads-api.reddit.com/docs/v3/ - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `objective` (enum, required, one of APP_INSTALLS, BRAND_AWARENESS, CATALOG_SALES, CLICKS, CONVERSIONS, IMPRESSIONS, LEAD_GENERATION, SALES, VIDEO_VIEWABLE_IMPRESSIONS) - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one Reddit ad account is connected - `dailyBudget` (number, optional): Daily budget in the ad account currency, as a person writes it (50.5 = 50.50 USD), never minor units - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_propose_create_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","objective":"APP_INSTALLS"}' ``` ## snapchat_list_accounts List Snapchat ad accounts. Snapchat ad accounts connected to Valkiria by the caller: Valkiria id, Snapchat account id, name and currency. The other Snapchat tools take either id. Stored data. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_list_accounts -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## snapchat_list_campaigns List Snapchat campaigns. Snapchat campaigns of one ad account: Snapchat id, parent id, name, status, daily budget where it has one (account currency). Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_list_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## snapchat_list_ad_groups List Snapchat ad squads. Snapchat ad squads of one ad account: Snapchat id, parent id, name, status, daily budget where it has one (account currency) and bid where stored. Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected - `campaignId` (string, optional): Limit to one Snapchat campaign ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_list_ad_groups -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## snapchat_list_ads List Snapchat ads. Snapchat ads of one ad account: Snapchat id, parent id, name, status and bid where stored. Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected - `adGroupId` (string, optional): Limit to one Snapchat ad squad ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_list_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## snapchat_campaign_performance Snapchat campaigns with metrics. Snapchat campaigns with totals for the last days from the synced daily stats: spend (account currency), impressions, clicks, CTR, conversions and cost per conversion (conversions are Snapchat conversions where reported). recordedDays below requestedDays means some days are not synced. A null metric means it was not reported, not zero; revenue is not reported. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected - `days` (integer, optional): Days back from today (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_campaign_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## snapchat_pause_campaign Propose: pause Snapchat campaign. Propose pausing a Snapchat campaign. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Snap Marketing API: https://developers.snap.com/api/marketing-api/Ads-API/introduction - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Snapchat campaign id - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_pause_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## snapchat_resume_campaign Propose: resume Snapchat campaign. Propose resuming a paused Snapchat campaign. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Snap Marketing API: https://developers.snap.com/api/marketing-api/Ads-API/introduction - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Snapchat campaign id - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_resume_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## snapchat_pause_ad_group Propose: pause Snapchat ad squad. Propose pausing a Snapchat ad squad. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Snap Marketing API: https://developers.snap.com/api/marketing-api/Ads-API/introduction - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Snapchat ad squad id - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_pause_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## snapchat_resume_ad_group Propose: resume Snapchat ad squad. Propose resuming a paused Snapchat ad squad. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Snap Marketing API: https://developers.snap.com/api/marketing-api/Ads-API/introduction - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Snapchat ad squad id - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_resume_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## snapchat_pause_ad Propose: pause Snapchat ad. Propose pausing a Snapchat ad. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Snap Marketing API: https://developers.snap.com/api/marketing-api/Ads-API/introduction - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Snapchat ad id - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_pause_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## snapchat_resume_ad Propose: resume Snapchat ad. Propose resuming a paused Snapchat ad. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Snap Marketing API: https://developers.snap.com/api/marketing-api/Ads-API/introduction - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Snapchat ad id - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_resume_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## snapchat_update_campaign_budget Propose: Snapchat campaign budget. Propose a new daily budget for a Snapchat campaign that already has one, in the ad account currency (normal units, never converted). Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Snap Marketing API: https://developers.snap.com/api/marketing-api/Ads-API/introduction - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Snapchat campaign id - `amount` (number, required): Daily budget in the ad account currency, as a person writes it (50.5 = 50.50 USD), never minor units - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_update_campaign_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","amount":1}' ``` ## snapchat_update_ad_group_budget Propose: Snapchat ad squad budget. Propose a new daily budget for a Snapchat ad squad that already has one, in the ad account currency (normal units, never converted). Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Snap Marketing API: https://developers.snap.com/api/marketing-api/Ads-API/introduction - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Snapchat ad squad id - `amount` (number, required): Daily budget in the ad account currency, as a person writes it (50.5 = 50.50 USD), never minor units - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_update_ad_group_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","amount":1}' ``` ## snapchat_propose_create_campaign Propose: new Snapchat campaign. Propose a new Snapchat campaign; it is always created paused and a person turns it on in Snapchat. Start time defaults to now. The proposal cannot be undone from Valkiria. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Snap Marketing API: https://developers.snap.com/api/marketing-api/Ads-API/introduction - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one Snapchat ad account is connected - `objective` (string, optional): Snapchat campaign objective, e.g. WEB_CONVERSION - `dailyBudget` (number, optional): Daily budget in the ad account currency, as a person writes it (50.5 = 50.50 USD), never minor units - `startTime` (date-time, optional) - `endTime` (date-time, optional) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_propose_create_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name"}' ``` ## apple_ads_list_accounts List Apple Ads ad accounts. Apple Ads ad accounts connected to Valkiria by the caller: Valkiria id, Apple Ads account id, name and currency. The other Apple Ads tools take either id. Stored data. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_list_accounts -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## apple_ads_list_campaigns List Apple Ads campaigns. Apple Ads campaigns of one ad account: Apple Ads id, parent id, name, status, daily budget where it has one (account currency). Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one Apple Ads ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_list_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## apple_ads_list_ad_groups List Apple Ads ad groups. Apple Ads ad groups of one ad account: Apple Ads id, parent id, name, status, daily budget where it has one (account currency) and bid where stored. Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one Apple Ads ad account is connected - `campaignId` (string, optional): Limit to one Apple Ads campaign ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_list_ad_groups -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## apple_ads_list_ads List Apple Ads ads. Apple Ads ads of one ad account: Apple Ads id, parent id, name, status and bid where stored. Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one Apple Ads ad account is connected - `adGroupId` (string, optional): Limit to one Apple Ads ad group ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_list_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## apple_ads_campaign_performance Apple Ads campaigns with metrics. Apple Ads campaigns with totals for the last days from the synced daily stats: spend (account currency), impressions, clicks, CTR, conversions and cost per conversion (conversions are tap installs). recordedDays below requestedDays means some days are not synced. A null metric means it was not reported, not zero; revenue is not reported. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one Apple Ads ad account is connected - `days` (integer, optional): Days back from today (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_campaign_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## apple_ads_pause_campaign Propose: pause Apple Ads campaign. Propose pausing a Apple Ads campaign. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Apple Ads Campaign Management API: https://developer.apple.com/documentation/apple_ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Apple Ads campaign id - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one Apple Ads ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_pause_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## apple_ads_resume_campaign Propose: resume Apple Ads campaign. Propose resuming a paused Apple Ads campaign. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Apple Ads Campaign Management API: https://developer.apple.com/documentation/apple_ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Apple Ads campaign id - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one Apple Ads ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_resume_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## apple_ads_pause_ad_group Propose: pause Apple Ads ad group. Propose pausing a Apple Ads ad group. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Apple Ads Campaign Management API: https://developer.apple.com/documentation/apple_ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Apple Ads ad group id - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one Apple Ads ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_pause_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## apple_ads_resume_ad_group Propose: resume Apple Ads ad group. Propose resuming a paused Apple Ads ad group. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Apple Ads Campaign Management API: https://developer.apple.com/documentation/apple_ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Apple Ads ad group id - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one Apple Ads ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_resume_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## apple_ads_pause_ad Propose: pause Apple Ads ad. Propose pausing a Apple Ads ad. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Apple Ads Campaign Management API: https://developer.apple.com/documentation/apple_ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Apple Ads ad id - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one Apple Ads ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_pause_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## apple_ads_resume_ad Propose: resume Apple Ads ad. Propose resuming a paused Apple Ads ad. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Apple Ads Campaign Management API: https://developer.apple.com/documentation/apple_ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Apple Ads ad id - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one Apple Ads ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_resume_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## apple_ads_update_campaign_budget Propose: Apple Ads campaign budget. Propose a new daily budget for a Apple Ads campaign that already has one, in the ad account currency (normal units, never converted). Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Apple Ads Campaign Management API: https://developer.apple.com/documentation/apple_ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Apple Ads campaign id - `amount` (number, required): Daily budget in the ad account currency, as a person writes it (50.5 = 50.50 USD), never minor units - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one Apple Ads ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_update_campaign_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890","amount":1}' ``` ## apple_ads_propose_create_campaign Propose: new Apple Ads campaign. Propose a new Apple Ads campaign; it is always created paused and a person turns it on in Apple Ads. A Search Results campaign for one App Store app (adamId) in the given countries, billed on taps. The proposal cannot be undone from Valkiria. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Apple Ads Campaign Management API: https://developer.apple.com/documentation/apple_ads - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `name` (string, required) - `adamId` (string, required): App Store app id - `countries` (string[], required): ISO country codes - `dailyBudget` (number, required): Daily budget in the ad account currency, as a person writes it (50.5 = 50.50 USD), never minor units - `startTime` (string, required): YYYY-MM-DD or YYYY-MM-DDTHH:mm - `endTime` (string, required): YYYY-MM-DD or YYYY-MM-DDTHH:mm - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one Apple Ads ad account is connected - `bidStrategyType` (enum, optional, one of MANUAL_CPT, MAX_CONVERSIONS): Default MANUAL_CPT - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_propose_create_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","adamId":"1234567890","countries":["example"],"dailyBudget":1,"startTime":"2026-10-01","endTime":"2026-10-01"}' ``` ## spotify_list_accounts List Spotify ad accounts. Spotify ad accounts connected to Valkiria by the caller: Valkiria id, Spotify account id, name and currency. The other Spotify tools take either id. Stored data. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_list_accounts -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## spotify_list_campaigns List Spotify campaigns. Spotify campaigns of one ad account: Spotify id, parent id, name, status, daily budget where it has one (account currency). Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one Spotify ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_list_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## spotify_list_ad_groups List Spotify ad sets. Spotify ad sets of one ad account: Spotify id, parent id, name, status, daily budget where it has one (account currency) and bid where stored. Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one Spotify ad account is connected - `campaignId` (string, optional): Limit to one Spotify campaign ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_list_ad_groups -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## spotify_list_ads List Spotify ads. Spotify ads of one ad account: Spotify id, parent id, name, status and bid where stored. Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one Spotify ad account is connected - `adGroupId` (string, optional): Limit to one Spotify ad set ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_list_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## spotify_campaign_performance Spotify campaigns with metrics. Spotify campaigns with totals for the last days from the synced daily stats: spend (account currency), impressions, clicks, CTR, conversions and cost per conversion (conversions are not synced from Spotify, so they are null). recordedDays below requestedDays means some days are not synced. A null metric means it was not reported, not zero; revenue is not reported. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one Spotify ad account is connected - `days` (integer, optional): Days back from today (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_campaign_performance -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## spotify_pause_campaign Propose: pause Spotify campaign. Propose pausing a Spotify campaign. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Spotify Ads API v3: https://developer.spotify.com/documentation/ads-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Spotify campaign id - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one Spotify ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_pause_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## spotify_resume_campaign Propose: resume Spotify campaign. Propose resuming a paused Spotify campaign. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Spotify Ads API v3: https://developer.spotify.com/documentation/ads-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `campaignId` (string, required): Spotify campaign id - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one Spotify ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_resume_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"campaignId":"1234567890"}' ``` ## spotify_pause_ad_group Propose: pause Spotify ad set. Propose pausing a Spotify ad set. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Spotify Ads API v3: https://developer.spotify.com/documentation/ads-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Spotify ad set id - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one Spotify ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_pause_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## spotify_resume_ad_group Propose: resume Spotify ad set. Propose resuming a paused Spotify ad set. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Spotify Ads API v3: https://developer.spotify.com/documentation/ads-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Spotify ad set id - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one Spotify ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_resume_ad_group -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890"}' ``` ## spotify_pause_ad Propose: pause Spotify ad. Propose pausing a Spotify ad. Pausing stops its spend and can be undone. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Spotify Ads API v3: https://developer.spotify.com/documentation/ads-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Spotify ad id - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one Spotify ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_pause_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## spotify_resume_ad Propose: resume Spotify ad. Propose resuming a paused Spotify ad. Resuming starts spend again, so it always waits for the owner. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Spotify Ads API v3: https://developer.spotify.com/documentation/ads-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adId` (string, required): Spotify ad id - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one Spotify ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_resume_ad -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adId":"1234567890"}' ``` ## spotify_update_ad_group_budget Propose: Spotify ad set budget. Propose a new daily budget for a Spotify ad set that already has one, in the ad account currency (normal units, never converted). Undo restores the previous amount. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Spotify Ads API v3: https://developer.spotify.com/documentation/ads-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `adGroupId` (string, required): Spotify ad set id - `amount` (number, required): Daily budget in the ad account currency, as a person writes it (50.5 = 50.50 USD), never minor units - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one Spotify ad account is connected - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_update_ad_group_budget -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"adGroupId":"1234567890","amount":1}' ``` ## spotify_propose_create_campaign Propose: new Spotify campaign. Propose a new Spotify campaign; it is always created paused and a person turns it on in Spotify. Budget, schedule and targeting live on ad sets, which are added in Spotify Ads Manager. The proposal cannot be undone from Valkiria. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Spotify Ads API v3: https://developer.spotify.com/documentation/ads-api - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one Spotify ad account is connected - `deliveryGoalGroup` (enum, optional, one of AWARENESS, WEBSITE_TRAFFIC, APP_PROMOTION, ENGAGEMENT_ON_SPOTIFY, LEAD_GEN, VIDEO_VIEWS): Spotify delivery goal group - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_propose_create_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name"}' ``` ## nextdoor_list_accounts List Nextdoor ad accounts. Nextdoor ad accounts connected to Valkiria by the caller: Valkiria id, Nextdoor account id, name and currency. The other Nextdoor tools take either id. Stored data. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/nextdoor_list_accounts -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## nextdoor_list_campaigns List Nextdoor campaigns. Nextdoor campaigns of one ad account: Nextdoor id, parent id, name, status, daily budget where it has one (account currency). Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Nextdoor ad account id or its Valkiria id; may be left out when only one Nextdoor ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/nextdoor_list_campaigns -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## nextdoor_list_ad_groups List Nextdoor ad groups. Nextdoor ad groups of one ad account: Nextdoor id, parent id, name, status, daily budget where it has one (account currency) and bid where stored. Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Nextdoor ad account id or its Valkiria id; may be left out when only one Nextdoor ad account is connected - `campaignId` (string, optional): Limit to one Nextdoor campaign ``` curl -X POST https://valkiria.pro/api/v1/tools/nextdoor_list_ad_groups -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## nextdoor_list_ads List Nextdoor ads. Nextdoor ads of one ad account: Nextdoor id, parent id, name, status and bid where stored. Stored data from the last sync, not a live read. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Nextdoor ad account id or its Valkiria id; may be left out when only one Nextdoor ad account is connected - `adGroupId` (string, optional): Limit to one Nextdoor ad group ``` curl -X POST https://valkiria.pro/api/v1/tools/nextdoor_list_ads -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## nextdoor_propose_create_campaign Propose: new Nextdoor campaign. Propose a new Nextdoor campaign; it is always created paused and a person turns it on in Nextdoor. It has no ad groups yet, so it cannot deliver until ad groups are added in Nextdoor Ads Manager. The proposal cannot be undone from Valkiria. Nothing changes in the ad account: this creates a proposal with a before-snapshot and returns proposal_id and approval_url; the owner approves or rejects it in Valkiria. Uses the Nextdoor Ads API v3: https://developer.nextdoor.com/reference/get_api-v3-me - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required) - `objective` (enum, required, one of AWARENESS, CONSIDERATION, CONVERSION, LEAD_GENERATION) - `accountId` (string, optional): Nextdoor ad account id or its Valkiria id; may be left out when only one Nextdoor ad account is connected - `subObjective` (enum, optional, one of BRAND_AWARENESS, WEBSITE_VISITS, LEAD_GENERATION, WEBSITE_CONVERSIONS, APP_INSTALL) - `reason` (string, optional): Why, in one sentence; shown to the owner next to the proposal ``` curl -X POST https://valkiria.pro/api/v1/tools/nextdoor_propose_create_campaign -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","objective":"AWARENESS"}' ``` ## monitors_list List monitors. Monitors (agents) of this account: goal, watched metric and conditions, cadence (daily, weekly or manual = no schedule), status (active or paused; a paused monitor does not run at all), guardrails, last and next run, plus the metrics a monitor can watch. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/monitors_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## monitor_create Create monitor. Create a monitor from a plain goal. It checks the account on a cadence and only notifies or queues proposals for the owner's approval; it never changes an ad account itself. Metrics: waste_watch = spend without conversions (threshold: minimum spend); cpa_guard = CPA rising (threshold: ratio to the reference CPA, e.g. 1.3); winner_boost = strong campaign (threshold: max CPA ratio to the account median, e.g. 0.8); no_impressions = enabled but not serving (threshold: days); ad_rejected = rejected ad (no threshold); spend_pace = spending ahead of the daily budget (threshold: ratio, e.g. 1.2); anomaly = the last day of spend, clicks or conversions outside mean ± k·σ of the previous days (threshold: k, default 3; lookbackDays: baseline + 1, default 29). cadence manual = no schedule (it runs only when started by hand). - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `goal` (string, required): What the monitor is for, in plain words - `metric` (enum, required, one of waste_watch, cpa_guard, winner_boost, no_impressions, ad_rejected, spend_pace, anomaly): Signal to watch - `cadence` (enum, required, one of daily, weekly, manual): How often it runs - `name` (string, optional): Short name (default: start of the goal) - `campaignIds` (string[], optional): Limit to these campaigns (default: all) - `threshold` (number, optional): Value for the metric (its meaning depends on metric) - `lookbackDays` (integer, optional): Days of data to look at - `hour` (integer, optional): Local hour of the run (default 8) - `timezone` (string, optional): IANA timezone, e.g. Europe/Kyiv (default UTC) - `mode` (enum, optional, one of propose, notify): propose (default) may queue proposals; notify only sends notifications - `guardrails` ({ maxBudgetChangePercent?, maxProposalsPerRun?, protectedCampaignIds?, allowBudgetProposals? }, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/monitor_create -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"goal":"example","metric":"waste_watch","cadence":"daily"}' ``` ## monitor_update Update or pause monitor. Change a monitor: name, goal, metric / threshold, cadence (manual = no schedule, still runnable by hand), guardrails, or status (paused stops every run, active resumes them; setting a cadence also resumes it). Only the fields passed change. Nothing changes in an ad account. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `monitorId` (string, required): Monitor UUID from monitors_list - `name` (string, optional) - `goal` (string, optional) - `metric` (enum, optional, one of waste_watch, cpa_guard, winner_boost, no_impressions, ad_rejected, spend_pace, anomaly): Replaces the watched signal - `cadence` (enum, optional, one of daily, weekly, manual) - `status` (enum, optional, one of active, paused): paused = the monitor does not run, on schedule or by hand - `threshold` (number, optional): Value for the metric (its meaning depends on metric) - `lookbackDays` (integer, optional): Days of data to look at - `hour` (integer, optional): Local hour of the run (default 8) - `timezone` (string, optional): IANA timezone, e.g. Europe/Kyiv (default UTC) - `mode` (enum, optional, one of propose, notify): propose (default) may queue proposals; notify only sends notifications - `guardrails` ({ maxBudgetChangePercent?, maxProposalsPerRun?, protectedCampaignIds?, allowBudgetProposals? }, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/monitor_update -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"monitorId":"1234567890"}' ``` ## monitor_delete Delete monitor. Delete a monitor the caller owns, with its run history, for good. Proposals it already queued stay in the approvals queue. Pausing a monitor (status paused) stops it without deleting it. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `monitorId` (string, required): Monitor UUID from monitors_list ``` curl -X POST https://valkiria.pro/api/v1/tools/monitor_delete -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"monitorId":"1234567890"}' ``` ## monitor_runs Monitor run history. Past runs of one monitor, newest first: status, proposals and notifications created, what was skipped and why, errors. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `monitorId` (string, required): Monitor UUID from monitors_list - `limit` (integer, optional): Max runs (default 20) ``` curl -X POST https://valkiria.pro/api/v1/tools/monitor_runs -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"monitorId":"1234567890"}' ``` ## monitor_test_run Test-run monitor (dry run). Evaluate a monitor now against current metrics and show what it would notify about or propose, after guardrails. Dry run: no run is recorded, no notification is sent, no proposal is saved. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `monitorId` (string, required): Monitor UUID from monitors_list ``` curl -X POST https://valkiria.pro/api/v1/tools/monitor_test_run -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"monitorId":"1234567890"}' ``` ## monitor_run_now Run monitor now. Start one real run of a monitor now, outside its schedule. The run is recorded, sends its notifications and adds its proposals to the approvals queue for the owner; it never changes an ad account itself. Counts toward the plan's monthly monitor runs. A paused monitor is not run. The test run is the preview that records nothing. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `monitorId` (string, required): Monitor UUID from monitors_list ``` curl -X POST https://valkiria.pro/api/v1/tools/monitor_run_now -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"monitorId":"1234567890"}' ``` ## scheduled_tasks_list List scheduled briefs and reports. What is delivered on a schedule for this account: the daily brief (on/off, cadence, channels) and every scheduled report with cadence, platforms, recipients and next run. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/scheduled_tasks_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## brief_schedule_set Schedule or pause the brief. Turn the account brief on or off and choose its cadence (daily, or weekly on Monday) and delivery channels: in_app, email, telegram. enabled=false pauses it and keeps the settings. The brief covers all connected platforms; it has no per-platform filter (a scheduled report can be per platform). - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `enabled` (boolean, required): true = deliver on schedule; false = pause - `cadence` (enum, optional, one of daily, weekly): Default: keep current (daily when never set) - `channels` (enum[], optional, one of in_app, email, telegram): Default: keep current ``` curl -X POST https://valkiria.pro/api/v1/tools/brief_schedule_set -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"enabled":false}' ``` ## scheduled_report_create Schedule a report. Create a report delivered by email on a cadence, for chosen platforms. Recipients default to the account email. Reports are built from stored platform facts; nothing changes in an ad account. - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `name` (string, required): Report name - `cadence` (enum, required, one of daily, weekly, biweekly, monthly) - `platforms` (string[], optional): e.g. google, meta, tiktok; empty = all - `reportType` (enum, optional, one of performance, budget, creative, audience, custom): Default performance - `scheduleDay` (integer, optional): Weekday 0-6 for weekly, day of month for monthly - `time` (string, optional): HH:MM in the timezone (default 09:00) - `timezone` (string, optional): IANA timezone (default UTC) - `recipients` (email[], optional): Email recipients (default: account email) - `format` (enum, optional, one of pdf, csv, xlsx, json) - `language` (enum, optional, one of en, uk, de, fr, es, ru): Default: account language when supported, else en - `includeAiInsights` (boolean, optional): Default true ``` curl -X POST https://valkiria.pro/api/v1/tools/scheduled_report_create -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"name":"Example name","cadence":"daily"}' ``` ## scheduled_report_set_active Pause or resume a scheduled report. Pause (active=false) or resume (active=true) one scheduled report. Resuming skips missed runs and schedules the next one. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `reportId` (string, required): Scheduled report UUID from scheduled_tasks_list - `active` (boolean, required) ``` curl -X POST https://valkiria.pro/api/v1/tools/scheduled_report_set_active -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"reportId":"1234567890","active":false}' ``` ## scheduled_report_delete Delete a scheduled report. Deletes one scheduled report the caller owns, for good: its schedule, recipients and settings are removed. A scheduled report can also be switched off and kept (scheduled_report_set_active), which is reversible. - Access: overwrites or deletes a Valkiria record; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `reportId` (string, required): Scheduled report UUID from scheduled_tasks_list ``` curl -X POST https://valkiria.pro/api/v1/tools/scheduled_report_delete -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"reportId":"1234567890"}' ``` ## report_generate_now Generate a scheduled report now. Run one scheduled report immediately, outside its schedule, and deliver it through its configured channel. An ad-hoc analytics table is a different tool. - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `reportId` (string, required): Scheduled report UUID from scheduled_tasks_list ``` curl -X POST https://valkiria.pro/api/v1/tools/report_generate_now -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"reportId":"1234567890"}' ``` ## daily_brief_now Get the brief now. Build the account brief right now and return it: what changed, where the risk is, suggested actions and budget pace. Nothing is sent or saved. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `language` (enum, optional, one of en, uk, ru, pl, cs, sk, de, fr, es): Default: account language ``` curl -X POST https://valkiria.pro/api/v1/tools/daily_brief_now -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## approvals_list List pending approvals. Everything waiting for the owner's decision: care recommendations and queued operations (undos, restores, monitor proposals) with the reason, before/after, guard, how to undo and the expected spend direction. Paged (limit, offset); pending and total count the whole queue. Read-only. Approval itself happens in the app or Telegram; the approval link is a separate read. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `limit` (integer, optional): Rows per page (default 20, max 100) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/approvals_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## approval_get Get one approval item. One proposal or queued operation by id, with its before/after snapshot, reason, status and the page where the owner decides. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `id` (string, required): Item id from approvals_list ``` curl -X POST https://valkiria.pro/api/v1/tools/approval_get -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"id":"1234567890"}' ``` ## approval_link Get the approval link. The page where the account owner approves or rejects pending changes, and how many are waiting. Assistants cannot approve or apply changes; give this link to the owner. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/approval_link -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## approval_reject Reject a pending proposal. Reject one pending proposal or queued operation and record why. Nothing changes in the ad account. There is no approve counterpart: approval stays with the owner in the app or Telegram. - Access: overwrites or deletes a Valkiria record; free read - Authorization: OAuth scope `propose` - Parameters: - `id` (string, required): Item id from approvals_list - `reason` (string, required): Why it is rejected (kept in the history) ``` curl -X POST https://valkiria.pro/api/v1/tools/approval_reject -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"id":"1234567890","reason":"Why this change is requested"}' ``` ## applied_changes_list List applied changes. Changes Valkiria applied in the ad accounts, newest first, each with before/after, who initiated it, when, and whether it can be undone. Paged (limit, offset) with total and has_more. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `limit` (integer, optional): Rows per page (default 20, max 100) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/applied_changes_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## applied_change_impact Measure the impact of an applied change. Compare the campaign's real platform metrics for equal windows before and after one applied change (the day of the change excluded). Answers not_enough_data when the after-window has not finished or days are missing; never extrapolates. Revenue and ROAS are null when the platform facts carry no revenue. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read` - Parameters: - `operationId` (string, required): Change id from applied_changes_list - `windowDays` (integer, optional): Days on each side (default 7) ``` curl -X POST https://valkiria.pro/api/v1/tools/applied_change_impact -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"operationId":"1234567890"}' ``` ## applied_change_request_undo Request an undo. Ask to revert one applied change. This only queues the inverse change in the approvals queue under the write policy; the owner approves it in the app or Telegram. Nothing is written to the ad account by this tool. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose` - Parameters: - `operationId` (string, required): Change id from applied_changes_list ``` curl -X POST https://valkiria.pro/api/v1/tools/applied_change_request_undo -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"operationId":"1234567890"}' ``` ## external_changes_list List changes made outside Valkiria. What somebody changed in the connected ad accounts outside Valkiria (platform UI, editor, rules, another app): entity, field, old and new value, who and when, and whether a restore was proposed. Paged (limit, offset) with total and has_more. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `days` (integer, optional): Look back (default 30) - `accountId` (string, optional): One ad account id - `status` (enum, optional, one of none, proposed, restored, dismissed): Restore state filter - `limit` (integer, optional): Rows per page (default 20, max 100) - `offset` (integer, optional): Rows to skip (default 0); the next page starts at next_offset ``` curl -X POST https://valkiria.pro/api/v1/tools/external_changes_list -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## set_default_account Set default ad account. Saves which connected ad account is the default for one platform. Platform tools that take an account id (customerId, accountId, advertiserId, profileId) run against this default when the id is left out. A Valkiria setting only: nothing changes in the ad account. Accounts in manual, excluded or pending mode are refused. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `platform` (enum, required, one of google_ads, meta_ads, tiktok_ads, linkedin_ads, microsoft_ads, amazon_ads, chatgpt_ads, reddit_ads, snapchat_ads, pinterest_ads) - `accountId` (string, required): Provider account id (Google customer id, Meta act_ id, TikTok advertiser id, Amazon profile id…) or its Valkiria id ``` curl -X POST https://valkiria.pro/api/v1/tools/set_default_account -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"platform":"google_ads","accountId":"1234567890"}' ``` ## clear_default_account Clear default ad account. Removes the saved default ad account for one platform, so platform tools again need the account id. A Valkiria setting only: nothing changes in the ad account. - Access: draft, proposal or AI generation; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `platform` (enum, required, one of google_ads, meta_ads, tiktok_ads, linkedin_ads, microsoft_ads, amazon_ads, chatgpt_ads, reddit_ads, snapchat_ads, pinterest_ads) ``` curl -X POST https://valkiria.pro/api/v1/tools/clear_default_account -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"platform":"google_ads"}' ``` ## get_default_accounts Default ad accounts. The default ad account saved for each platform, as platform → account id. Platforms without a default are absent. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/get_default_accounts -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## competitor_ads_search Research competitor ads (official ad libraries). Look up a competitor's ads by brand or keyword in official ad libraries. Read-only, public data. Meta Ad Library (API): all ads that reached an EU country, political/issue ads elsewhere; returns advertiser, text, headline, link caption, dates, platforms, library link and EU reach where Meta publishes it. TikTok Commercial Content Library (API): EU only; advertiser, dates, format, library link, unique users reached; no ad text. Google Ads Transparency Center and LinkedIn Ad Library: no usable official API, so only a link to open by hand. Each library reports its own status: ok, needs_setup (with exact steps), unsupported, rate_limited or error; a library that is not ok returns no ads. Never returns or estimates competitor spend, ROAS or conversions. APIs: Meta Ad Library https://developers.facebook.com/docs/graph-api/reference/ads_archive/ and TikTok Commercial Content https://developers.tiktok.com/doc/commercial-content-api-getting-started - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `query` (string, required): Brand name, domain or keyword (2-100 characters), in the language of the ads - `pageId` (string, optional): Facebook Page id of the advertiser: lists that page's ads in Meta instead of a keyword search - `country` (string, optional): ISO 3166-1 alpha-2 country the ads reached, capitals, e.g. PL. Default: all countries - `limit` (integer, optional): Ads per library, 1-50. Default 10 - `activeOnly` (boolean, optional): Only ads running now (default true) - `libraries` (enum[], optional, one of meta_ad_library, google_ads_transparency_center, tiktok_ad_library, linkedin_ad_library): Default: all ``` curl -X POST https://valkiria.pro/api/v1/tools/competitor_ads_search -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"query":"running shoes"}' ``` ## competitor_ads_libraries Ad library availability. List the ad libraries competitor_ads_search can use and their status for this account: ready, needs_setup (with the exact steps) or unsupported (with the reason), what each can return and its official page. Makes no call to the libraries. APIs: Meta Ad Library https://developers.facebook.com/docs/graph-api/reference/ads_archive/ and TikTok Commercial Content https://developers.tiktok.com/doc/commercial-content-api-getting-started - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: none ``` curl -X POST https://valkiria.pro/api/v1/tools/competitor_ads_libraries -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## cross_platform_report Cross-platform report in one currency. Spend, impressions, clicks, conversions, CTR and cost per conversion of every connected ad platform for the last days (default 30), with each platform's money in its original currencies and converted into one currency at the ECB reference rate of a date. Every conversion names its rate and the ECB publication date. A currency without an ECB rate (for example UAH) is not converted and its total is null, not zero. Also counts cabinets per access mode. Answer: summary, data, next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `days` (integer, optional): Days back from today, today included (default 30) - `currency` (string, optional): Currency to show totals in, ISO code (default EUR) - `rateDate` (string, optional): Date of the ECB rates, YYYY-MM-DD (default the last day of the period) ``` curl -X POST https://valkiria.pro/api/v1/tools/cross_platform_report -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## account_audit Account audit across platforms. One audit of every connected ad platform: conversion tracking (spend on a platform with no conversion), wasted spend (campaigns that spent without converting), creative fatigue (CTR down 20% or more week over week on 1,000+ impressions), budget pacing and structure (budgeted active campaigns with no spend). Returns a score 0-100 with grade A-F, a score per category, and findings each with the money involved (original currency and the chosen currency at ECB rates) and the next tool call. A category without data is null and left out of the score. Answer: summary, data, next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `days` (integer, optional): Days back for tracking and waste (default 30) - `currency` (string, optional): Currency to show totals in, ISO code (default EUR) ``` curl -X POST https://valkiria.pro/api/v1/tools/account_audit -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## cross_platform_budget_reallocation Propose: move budget between platforms. Compares the marginal cost per conversion of each platform (the change in spend over the change in conversions between the two halves of the period) and, when one platform buys conversions at least 20% cheaper than another and is not saturated, proposes moving a share of the daily budget of the costliest platform's largest campaign to the cheapest platform's largest campaign, amounts matched at the ECB rate. Platforms with campaign budget changes: meta, tiktok, linkedin, pinterest, reddit, snapchat, apple. Nothing changes in any ad account: it creates ONE proposal on Approvals; one approval applies the decrease first and the increase only after it, each through that platform's own checks, and refuses a leg whose live budget moved. Answer: summary, data, next_actions. - Access: draft, proposal or AI generation; calls an outside service; counts against the monthly allowance - Authorization: OAuth scope `propose`; API key scope `campaigns:write` - Parameters: - `days` (integer, optional): Days compared, split in two halves (default 28) - `currency` (string, optional): Currency to show totals in, ISO code (default EUR) - `maxShiftPercent` (number, optional): Share of the donor campaign daily budget moved (default 20) - `minConversions` (integer, optional): Conversions a platform needs in the period to count (default 10) ``` curl -X POST https://valkiria.pro/api/v1/tools/cross_platform_budget_reallocation -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## meta_conversion_tracking_audit Audit Meta conversion tracking. Conversion tracking of one Meta ad account, live: every pixel (dataset) with the time it last received an event and whether Meta marks it unavailable, the conversion action types recorded in the last 30 days, and spend against conversions over those 30 days. Flags no pixel, a pixel that never fired or went quiet for more than 72 hours, and spend without conversions. Findings carry a severity and the next step. A null is not reported, not zero. Answer: summary, data, next_actions. Read-only. Uses the Meta Marketing API: https://developers.facebook.com/docs/marketing-api - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): Meta ad account id (act_123 or 123) or its Valkiria id. Optional when a default account is set for this platform (set_default_account) ``` curl -X POST https://valkiria.pro/api/v1/tools/meta_conversion_tracking_audit -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## linkedin_conversion_tracking_audit Audit LinkedIn conversion tracking. Conversion tracking of one LinkedIn ad account, live: every conversion rule with type, method (Insight Tag or Conversions API), enabled flag, last signal and number of linked campaigns, and spend against conversions over the last 30 days from the synced facts. Flags no rule, all rules disabled, a rule that never fired or went quiet for more than 7 days, a rule linked to no campaign, and spend without conversions. Findings carry a severity and the next step. A null is not reported, not zero. Answer: summary, data, next_actions. Read-only. Uses the LinkedIn Marketing API: https://learn.microsoft.com/en-us/linkedin/marketing/overview - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `accountId` (string, optional): LinkedIn ad account id or its Valkiria id; may be left out when only one is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_conversion_tracking_audit -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_conversion_tracking_audit Audit TikTok conversion tracking. Conversion tracking of one TikTok advertiser, live: every pixel with its activity status and number of events set up, and spend against conversions over the last 30 days from TikTok reporting. Flags no pixel, an inactive pixel, a pixel without events, and spend without conversions. Findings carry a severity and the next step. A null is not reported, not zero. Answer: summary, data, next_actions. Read-only. Uses the TikTok API for Business: https://business-api.tiktok.com/portal/docs - Access: read-only; calls an outside service; free read - Authorization: OAuth scope `read`; API key scope `campaigns:read` - Parameters: - `advertiserId` (string, optional): TikTok advertiser id or its Valkiria id; may be left out when only one is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_conversion_tracking_audit -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## pinterest_wasted_spend Pinterest wasted spend. Pinterest campaigns that spent money without a conversion in the period, from the synced daily stats, with each campaign's share of the account spend in the account currency. minSpend filters noise. A zero only means Pinterest attributed no conversion, which can also be a tracking gap. Answer: summary, data, next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one is connected - `days` (integer, optional): Days back from today (default 30) - `minSpend` (number, optional): Account currency, default 0 ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_wasted_spend -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## pinterest_creative_fatigue Pinterest creative fatigue. Pinterest campaigns whose CTR fell by 20% or more in the last 7 days against the 7 days before, on at least minImpressions (default 1,000) impressions in each week, from the synced campaign stats (ad-level stats are not synced for Pinterest). Returns both weeks' CTR and last week's spend in the account currency. An empty list means no campaign met the rule. Answer: summary, data, next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Pinterest ad account id or its Valkiria id; may be left out when only one is connected - `minImpressions` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/pinterest_creative_fatigue -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## reddit_wasted_spend Reddit wasted spend. Reddit campaigns that spent money without a conversion in the period, from the synced daily stats, with each campaign's share of the account spend in the account currency. minSpend filters noise. A zero only means Reddit attributed no conversion, which can also be a tracking gap. Answer: summary, data, next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one is connected - `days` (integer, optional): Days back from today (default 30) - `minSpend` (number, optional): Account currency, default 0 ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_wasted_spend -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## reddit_creative_fatigue Reddit creative fatigue. Reddit campaigns whose CTR fell by 20% or more in the last 7 days against the 7 days before, on at least minImpressions (default 1,000) impressions in each week, from the synced campaign stats (ad-level stats are not synced for Reddit). Returns both weeks' CTR and last week's spend in the account currency. An empty list means no campaign met the rule. Answer: summary, data, next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Reddit ad account id or its Valkiria id; may be left out when only one is connected - `minImpressions` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/reddit_creative_fatigue -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## snapchat_wasted_spend Snapchat wasted spend. Snapchat campaigns that spent money without a conversion in the period, from the synced daily stats, with each campaign's share of the account spend in the account currency. minSpend filters noise. A zero only means Snapchat attributed no conversion, which can also be a tracking gap. Answer: summary, data, next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one is connected - `days` (integer, optional): Days back from today (default 30) - `minSpend` (number, optional): Account currency, default 0 ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_wasted_spend -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## snapchat_creative_fatigue Snapchat creative fatigue. Snapchat campaigns whose CTR fell by 20% or more in the last 7 days against the 7 days before, on at least minImpressions (default 1,000) impressions in each week, from the synced campaign stats (ad-level stats are not synced for Snapchat). Returns both weeks' CTR and last week's spend in the account currency. An empty list means no campaign met the rule. Answer: summary, data, next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Snapchat ad account id or its Valkiria id; may be left out when only one is connected - `minImpressions` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/snapchat_creative_fatigue -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## apple_ads_wasted_spend Apple Ads wasted spend. Apple Ads campaigns that spent money without a conversion in the period, from the synced daily stats, with each campaign's share of the account spend in the account currency. minSpend filters noise. A zero only means Apple Ads attributed no conversion, which can also be a tracking gap. Answer: summary, data, next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one is connected - `days` (integer, optional): Days back from today (default 30) - `minSpend` (number, optional): Account currency, default 0 ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_wasted_spend -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## apple_ads_creative_fatigue Apple Ads creative fatigue. Apple Ads campaigns whose CTR fell by 20% or more in the last 7 days against the 7 days before, on at least minImpressions (default 1,000) impressions in each week, from the synced campaign stats (ad-level stats are not synced for Apple Ads). Returns both weeks' CTR and last week's spend in the account currency. An empty list means no campaign met the rule. Answer: summary, data, next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Apple Ads ad account id or its Valkiria id; may be left out when only one is connected - `minImpressions` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/apple_ads_creative_fatigue -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## spotify_creative_fatigue Spotify creative fatigue. Spotify campaigns whose CTR fell by 20% or more in the last 7 days against the 7 days before, on at least minImpressions (default 1,000) impressions in each week, from the synced campaign stats (ad-level stats are not synced for Spotify). Returns both weeks' CTR and last week's spend in the account currency. An empty list means no campaign met the rule. Answer: summary, data, next_actions. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `accountId` (string, optional): Spotify ad account id or its Valkiria id; may be left out when only one is connected - `minImpressions` (integer, optional) ``` curl -X POST https://valkiria.pro/api/v1/tools/spotify_creative_fatigue -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## tiktok_explain_change Compare two periods of TikTok results. Why TikTok results moved between period A and period B: spend, impressions, clicks, conversions from the dated analytics facts, and a verdict that splits the change in conversions (or clicks, when conversions are not measured in both periods) exactly into spend, CPM, CTR and conversion rate, with the main cause and its money effect at period A cost per result. Spend in more than one currency is never converted: spend and CPM are then left out. A null is not measured, not zero. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `periodA` ({ from, to }, required): The earlier period, dates inclusive - `periodB` ({ from, to }, required): The later period, dates inclusive - `advertiserId` (string, optional): TikTok advertiser id (digits) or its Valkiria id; may be left out when only one TikTok advertiser is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/tiktok_explain_change -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"periodA":{"from":"2026-10-01","to":"2026-10-31"},"periodB":{"from":"2026-10-01","to":"2026-10-31"}}' ``` ## linkedin_explain_change Compare two periods of LinkedIn results. Why LinkedIn results moved between period A and period B: spend, impressions, clicks, conversions from the dated analytics facts, and a verdict that splits the change in conversions (or clicks, when conversions are not measured in both periods) exactly into spend, CPM, CTR and conversion rate, with the main cause and its money effect at period A cost per result. Spend in more than one currency is never converted: spend and CPM are then left out. A null is not measured, not zero. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `periodA` ({ from, to }, required): The earlier period, dates inclusive - `periodB` ({ from, to }, required): The later period, dates inclusive - `accountId` (string, optional): LinkedIn ad account id (digits) or its Valkiria id; may be left out when only one LinkedIn ad account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/linkedin_explain_change -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"periodA":{"from":"2026-10-01","to":"2026-10-31"},"periodB":{"from":"2026-10-01","to":"2026-10-31"}}' ``` ## microsoft_explain_change Compare two periods of Microsoft Advertising results. Why Microsoft Advertising results moved between period A and period B: spend, impressions, clicks, conversions from the dated analytics facts, and a verdict that splits the change in conversions (or clicks, when conversions are not measured in both periods) exactly into spend, CPM, CTR and conversion rate, with the main cause and its money effect at period A cost per result. Spend in more than one currency is never converted: spend and CPM are then left out. A null is not measured, not zero. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `periodA` ({ from, to }, required): The earlier period, dates inclusive - `periodB` ({ from, to }, required): The later period, dates inclusive - `accountId` (string, optional): Microsoft Advertising account id (digits) or its Valkiria id; may be left out when only one account is connected ``` curl -X POST https://valkiria.pro/api/v1/tools/microsoft_explain_change -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{"periodA":{"from":"2026-10-01","to":"2026-10-31"},"periodB":{"from":"2026-10-01","to":"2026-10-31"}}' ``` ## forecast_spend_conversions Forecast spend and conversions. Forecast of spend and conversions for the next week, month or quarter from the account's own recorded days: a least-squares linear trend with a ±2σ range, its confidence and the method named. Spend is forecast only for a single-currency account; with fewer than 14 recorded days there is no forecast, with the reason. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `period` (enum, optional, one of week, month, quarter): Horizon (default month) - `platform` (enum, optional, one of google, meta, tiktok, linkedin, microsoft, snapchat, reddit): One platform; all when left out ``` curl -X POST https://valkiria.pro/api/v1/tools/forecast_spend_conversions -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ``` ## recommendation_feedback_report Recommendation feedback report. How often the next_actions Valkiria suggested in its answers were then run, per suggested tool, with the approval outcome of the proposals they produced (applied, rejected, undone), and the answer-quality violations found (summary figure not in data, missing currency, null shown as zero). This is what ranks later suggestions for the same account. Read-only. - Access: read-only; free read - Authorization: OAuth scope `read`; API key scope `analytics:read` - Parameters: - `days` (integer, optional): Days back (default 30) ``` curl -X POST https://valkiria.pro/api/v1/tools/recommendation_feedback_report -H "Authorization: Bearer $VALKIRIA_TOKEN" -H "Content-Type: application/json" -d '{}' ```