Skip to content
Denne side findes på dansk. Læs på dansk
HeyMySocial

import_paid_results

Import paid results

writes listed directly

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

NameTypeNeededWhat it is
account object yes The ad account the rows belong to.
account.external_id 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.name string no A readable name for the account.
account.currency string yes ISO 4217 currency every amount in this call is in, for example DKK. Required; one account has one currency.
account.timezone string no IANA time zone of the account, for example Europe/Copenhagen.
account.attribution_setting 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[].date_start string yes First day the row covers, YYYY-MM-DD.
rows[].date_stop string no Last day the row covers, YYYY-MM-DD. Default: date_start.
rows[].campaign_external_id string no The campaign's id at the platform. Leave campaign, ad set and ad out for an account-level row.
rows[].campaign_name string no
rows[].adset_external_id string no
rows[].adset_name string no
rows[].ad_external_id string no
rows[].ad_name string no
rows[].spend_minor integer yes Amount spent in minor units of the account currency: 125050 for 1,250.50.
rows[].impressions integer no
rows[].reach integer no
rows[].clicks integer no All clicks.
rows[].link_clicks integer no Clicks on the link only. Kept apart from all clicks.
rows[].platform_leads integer no Leads as the platform counts them.
rows[].platform_conversions integer no Conversions as the platform counts them.
rows[].platform_conversion_value_minor integer no Conversion value the platform reports, in minor units.
rows[].attribution_setting string no
rows[].objective string no
rows[].status string no Delivery status as the platform states it.
rows[].utm_campaign string no The utm_campaign value of the ads, used to suggest which of our campaigns it belongs to.
rows[].creative_title string no
rows[].creative_body string no
rows[].creative_cta string no
rows[].creative_link 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

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