Pinterest Ads
pinterest_adsPinterest Ads API for managing advertising accounts, campaigns, ad groups, ads, targeting, and reporting.
Acciones disponibles (10)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Get Ads AnalyticsPINTEREST_ADS_GET_ANALYTICSAcciónGet synchronous Pinterest Ads performance metrics for an advertiser or selected campaigns, ad groups, or ads over a date range.
PINTEREST_ADS_GET_ANALYTICSAcciónGet synchronous Pinterest Ads performance metrics for an advertiser or selected campaigns, ad groups, or ads over a date range.
Parámetros de entrada
columnsstring[]ObligatorioSupported Pinterest metrics and identifiers to return. MICRO_DOLLAR values are advertiser-currency microunits.
end_datestringObligatoriodateUTC report end date; must be on or after start_date and at most 90 days after it.
entity_idsstring[]Campaign, ad-group, or ad IDs for the chosen entity_level. Required unless entity_level is AD_ACCOUNT; forbidden for AD_ACCOUNT.
start_datestringObligatoriodateUTC report start date. It may be at most 90 days before today, or 8 days before today when granularity is HOUR.
granularitystringObligatorioenumTime grouping for metric rows: TOTAL, DAY, HOUR, WEEK, or MONTH. HOUR no longer provides conversion metrics, is limited to the previous 8 days, and has a 3-day maximum range for campaign, ad-group, and ad reports.
TOTALDAYHOURWEEKMONTHentity_levelstringObligatorioenumReporting level. Entity IDs are required for CAMPAIGN, AD_GROUP, and AD, and forbidden for AD_ACCOUNT.
AD_ACCOUNTCAMPAIGNAD_GROUPADad_account_idstringObligatorioAdvertiser account whose performance data to read.
view_window_daysintegerenumPinterest Tag view-attribution window in days.
017143060click_window_daysintegerenumPinterest Tag click-attribution window in days.
017143060conversion_report_timestringenumAttribute conversion rows to the ad interaction date or conversion date.
TIME_OF_AD_ACTIONTIME_OF_CONVERSION
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Metrics Ready StatePINTEREST_ADS_GET_METRICS_READY_STATEAcciónCheck whether Pinterest conversion and non-conversion metrics are finalized for a UTC report date before relying on analytics results.
PINTEREST_ADS_GET_METRICS_READY_STATEAcciónCheck whether Pinterest conversion and non-conversion metrics are finalized for a UTC report date before relying on analytics results.
Parámetros de entrada
datestringObligatorioUTC analytics report date to check, in YYYY-MM-DD format.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Targeting OptionsPINTEREST_ADS_GET_TARGETING_OPTIONSAcciónGet Pinterest's valid targeting values for a targeting type, such as age buckets, gender, locale, location, interests, or keywords.
PINTEREST_ADS_GET_TARGETING_OPTIONSAcciónGet Pinterest's valid targeting values for a targeting type, such as age buckets, gender, locale, location, interests, or keywords.
Parámetros de entrada
ad_account_idstringOptional advertiser account context. Omit to retrieve options for the connected Pinterest user.
targeting_typestringObligatorioenumPinterest targeting dimension whose valid values to retrieve.
APPTYPEGENDERLOCALEAGE_BUCKETLOCATIONGEOINTERESTKEYWORDAUDIENCE_INCLUDEAUDIENCE_EXCLUDE
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Ad AccountsPINTEREST_ADS_LIST_AD_ACCOUNTSAcciónList advertiser accounts the connected Pinterest user owns or can access, including the IDs needed by all other Ads tools.
PINTEREST_ADS_LIST_AD_ACCOUNTSAcciónList advertiser accounts the connected Pinterest user owns or can access, including the IDs needed by all other Ads tools.
Parámetros de entrada
page_sizeintegerMaximum advertiser accounts in this page (1-250).
next_cursorstringContinuation cursor returned by a previous call. Omit for the first page.
include_shared_accountsbooleanInclude ad accounts shared with the connected user through Business Access.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Ad GroupsPINTEREST_ADS_LIST_AD_GROUPSAcciónList ad groups for an advertiser, filter by parent campaigns, or look up specific ad groups by ID.
PINTEREST_ADS_LIST_AD_GROUPSAcciónList ad groups for an advertiser, filter by parent campaigns, or look up specific ad groups by ID.
Parámetros de entrada
orderstringenumSort by ad-group ID; higher IDs are newer.
ASCENDINGDESCENDINGpage_sizeintegerMaximum ad groups in this page (1-250).
next_cursorstringContinuation cursor returned by a previous call. Repeat the same filters when continuing.
ad_group_idsstring[]Optional ad-group IDs to look up. Pinterest marks this filter beta, so availability may vary by advertiser.
campaign_idsstring[]Optional parent campaign IDs used to filter ad groups.
ad_account_idstringObligatorioAdvertiser account ID returned by LIST_AD_ACCOUNTS.
entity_statusesstring[]Statuses to include. If omitted, Pinterest returns only ACTIVE and PAUSED ad groups.
translate_interests_to_namesbooleanReturn interest targeting as readable names instead of topic IDs.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List AdsPINTEREST_ADS_LIST_ADSAcciónList ads for an advertiser, filter by one hierarchy level, or look up specific ads by ID. Archived and draft ads must be requested explicitly with entity_statuses.
PINTEREST_ADS_LIST_ADSAcciónList ads for an advertiser, filter by one hierarchy level, or look up specific ads by ID. Archived and draft ads must be requested explicitly with entity_statuses.
Parámetros de entrada
orderstringenumSort by ad ID. Higher IDs are associated with more recently added ads.
ASCENDINGDESCENDINGad_idsstring[]Optional ad IDs to look up. Cannot be combined with campaign_ids or ad_group_ids; omit all ID filters to list ads.
page_sizeintegerMaximum ads in this page (1-250).
next_cursorstringContinuation cursor returned by a previous call. Repeat the same filters when continuing.
ad_group_idsstring[]Optional parent ad-group IDs used to filter ads. This beta filter may not be available to every advertiser and cannot be combined with campaign_ids or ad_ids.
campaign_idsstring[]Optional parent campaign IDs used to filter ads. Cannot be combined with ad_group_ids or ad_ids.
ad_account_idstringObligatorioAdvertiser account ID returned by LIST_AD_ACCOUNTS.
entity_statusesstring[]Statuses to include. If omitted, Pinterest returns only ACTIVE and PAUSED ads.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List CampaignsPINTEREST_ADS_LIST_CAMPAIGNSAcciónList campaigns for an advertiser, or look up specific campaigns by ID using campaign_ids. Archived and draft campaigns must be requested explicitly with entity_statuses.
PINTEREST_ADS_LIST_CAMPAIGNSAcciónList campaigns for an advertiser, or look up specific campaigns by ID using campaign_ids. Archived and draft campaigns must be requested explicitly with entity_statuses.
Parámetros de entrada
orderstringenumSort by campaign ID; higher IDs are newer.
ASCENDINGDESCENDINGpage_sizeintegerMaximum campaigns in this page (1-250).
next_cursorstringContinuation cursor returned by a previous call. Repeat the same filters when continuing.
campaign_idsstring[]Optional campaign IDs to look up; omit to list campaigns.
ad_account_idstringObligatorioAdvertiser account ID returned by LIST_AD_ACCOUNTS.
entity_statusesstring[]Statuses to include. If omitted Pinterest returns only ACTIVE and PAUSED campaigns.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Ad GroupsPINTEREST_ADS_UPDATE_AD_GROUPSAcciónRename, pause, or resume up to 30 existing ad groups. Setting status to ACTIVE can restart delivery and incur spend under existing budgets. Budget, bid, targeting, schedule, and restricted-setting changes are not exposed.
PINTEREST_ADS_UPDATE_AD_GROUPSAcciónRename, pause, or resume up to 30 existing ad groups. Setting status to ACTIVE can restart delivery and incur spend under existing budgets. Budget, bid, targeting, schedule, and restricted-setting changes are not exposed.
Parámetros de entrada
updatesobject[]ObligatorioOne to 30 ad-group changes. IDs must be unique; each item must set a new name, ACTIVE status, or PAUSED status.
ad_account_idstringObligatorioAdvertiser account that owns every ad group being updated.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update AdsPINTEREST_ADS_UPDATE_ADSAcciónRename, pause, or resume up to 30 existing Pinterest ads. Setting status to ACTIVE can restart delivery and incur spend under existing budgets. Creative, Pin, destination, tracking, and disclosure changes are not exposed.
PINTEREST_ADS_UPDATE_ADSAcciónRename, pause, or resume up to 30 existing Pinterest ads. Setting status to ACTIVE can restart delivery and incur spend under existing budgets. Creative, Pin, destination, tracking, and disclosure changes are not exposed.
Parámetros de entrada
updatesobject[]ObligatorioOne to 30 ad updates. IDs must be unique, and each item must set a name, an ACTIVE status, or a PAUSED status.
ad_account_idstringObligatorioAdvertiser account that owns every ad being updated.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update CampaignsPINTEREST_ADS_UPDATE_CAMPAIGNSAcciónRename, pause, or resume up to 30 existing campaigns. Setting status to ACTIVE can restart delivery and incur spend under existing budgets. Budget, schedule, objective, archive, and restricted-setting changes are not exposed.
PINTEREST_ADS_UPDATE_CAMPAIGNSAcciónRename, pause, or resume up to 30 existing campaigns. Setting status to ACTIVE can restart delivery and incur spend under existing budgets. Budget, schedule, objective, archive, and restricted-setting changes are not exposed.
Parámetros de entrada
updatesobject[]ObligatorioCampaign changes (1-30). Each item requires a unique campaign ID and at least one of non-empty name or ACTIVE/PAUSED status.
ad_account_idstringObligatorioAdvertiser account that owns every campaign being updated.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not