import_paid_results
Import paid results
Stores ad results the person gives you (an Ads Manager export they pasted, numbers from their own reporting) as normalized rows: one row per account, campaign, ad set or ad and period, with spend and the metrics the platform reported.
It is the same importer as POST /api/v1/ads/import and only writes to this workspace: it never contacts an ad platform. The account currency is required and never guessed. Leave a metric out when the source does not state it: missing stays missing, zero is stored only when the source says zero. Copy the numbers exactly; never estimate or fill gaps. Importing the same rows again changes nothing; a row overlapping an older row of the same entity replaces it. A bad row comes back in errors with its index and reason, the others are stored. Then map new campaigns with map_paid_campaign.
Arguments
| Name | Type | Needed | What it is |
|---|---|---|---|
account |
object | yes | The ad account the rows belong to. |
account. |
string | yes | The ad account's id at the platform, or a stable name of your own. The same id always means the same account. |
account. |
string | no | A readable name for the account. |
account. |
string | yes | ISO 4217 currency every amount in this call is in, for example DKK. Required; one account has one currency. |
account. |
string | no | IANA time zone of the account, for example Europe/Copenhagen. |
account. |
string | no | The platform's attribution setting as it states it, for example "7-day click or 1-day view". |
rows |
array of object | yes | Up to 500 rows. A row with campaign, ad set and ad is an ad-level row; fewer levels give a row at that level. |
rows[]. |
string | yes | First day the row covers, YYYY-MM-DD. |
rows[]. |
string | no | Last day the row covers, YYYY-MM-DD. Default: date_start. |
rows[]. |
string | no | The campaign's id at the platform. Leave campaign, ad set and ad out for an account-level row. |
rows[]. |
string | no | |
rows[]. |
string | no | |
rows[]. |
string | no | |
rows[]. |
string | no | |
rows[]. |
string | no | |
rows[]. |
integer | yes | Amount spent in minor units of the account currency: 125050 for 1,250.50. |
rows[]. |
integer | no | |
rows[]. |
integer | no | |
rows[]. |
integer | no | All clicks. |
rows[]. |
integer | no | Clicks on the link only. Kept apart from all clicks. |
rows[]. |
integer | no | Leads as the platform counts them. |
rows[]. |
integer | no | Conversions as the platform counts them. |
rows[]. |
integer | no | Conversion value the platform reports, in minor units. |
rows[]. |
string | no | |
rows[]. |
string | no | |
rows[]. |
string | no | Delivery status as the platform states it. |
rows[]. |
string | no | The utm_campaign value of the ads, used to suggest which of our campaigns it belongs to. |
rows[]. |
string | no | |
rows[]. |
string | no | |
rows[]. |
string | no | |
rows[]. |
string | no |
Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.
How it behaves
- It changes something in the workspace, within what the signed-in person's role allows.
- It is in the list every assistant sees when it connects.
How tools behave: confirmation, review links, errors and limits
In the same group
get_experiment · get_funnel_matrix · get_paid_draft · list_ad_accounts · list_budget_requests · list_experiments · list_paid_drafts · list_paid_performance · manage_experiment · map_paid_campaign · save_budget_request · save_experiment_draft · save_paid_draft