Pinterest Ad API

The Ad API from Pinterest — 63 operation(s) for ad.

GitHub OpenAPI
Business capability
Digital Marketing Management BC-400.60

Operations 85

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /ad_accounts List ad accounts · List ad accounts #
Ask an LLM
“Which ad accounts can my user account access?”
“Can I include shared ad accounts in the list?”
Tell an agent
List my ad accounts.
List ad accounts including shared ones: {include_shared_accounts}.
POST /ad_accounts Create an ad account · Create ad account #
Ask an LLM
“How do I create a new ad account?”
“Can I set the country and name of a new ad account?”
Tell an agent
Create an ad account named {name}.
Create an ad account {name} in {country} for owner {owner_user_id}.
GET /ad_accounts/{ad_account_id} Get an ad account · Get ad account #
Ask an LLM
“What are the details of one ad account?”
“Can I fetch a single ad account by ID?”
Tell an agent
Get ad account {ad_account_id}.
Show the details of ad account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/ad_groups List ad groups · List ad groups #
Ask an LLM
“Which ad groups are in an ad account?”
“Can I list ad groups for specific campaigns?”
Tell an agent
List ad groups in ad account {ad_account_id}.
List ad groups for campaigns {campaign_ids} in {ad_account_id}.
POST /ad_accounts/{ad_account_id}/ad_groups Create ad groups · Create ad groups #
Ask an LLM
“How do I create new ad groups?”
“Can I set a budget and bid when creating ad groups?”
Tell an agent
Create ad groups in ad account {ad_account_id}.
Create new ad groups under {ad_account_id}.
PATCH /ad_accounts/{ad_account_id}/ad_groups Update ad groups · Update ad groups #
Ask an LLM
“Can I edit several ad groups at once?”
“What's the way to update existing ad groups?”
Tell an agent
Update ad groups in ad account {ad_account_id}.
Edit the existing ad groups under {ad_account_id}.
GET /ad_accounts/{ad_account_id}/ad_groups/analytics Get ad group analytics · Get ad group analytics #
Ask an LLM
“How are my ad groups performing?”
“Can I get ad group analytics for a date range?”
Tell an agent
Get ad group analytics for {ad_group_ids} in {ad_account_id} from {start_date} to {end_date}, columns {columns}, granularity {granularity}.
Show daily analytics for ad groups {ad_group_ids} in {ad_account_id} between {start_date} and {end_date}.
GET /ad_accounts/{ad_account_id}/ad_groups/targeting_analytics Get ad group targeting analytics · Get targeting analytics for ad groups #
Ask an LLM
“Which audiences are my ad groups reaching?”
“Can I break down ad group performance by age and gender?”
Tell an agent
Get targeting analytics for ad groups {ad_group_ids} in {ad_account_id} from {start_date} to {end_date}, columns {columns}, granularity {granularity}, targeting {targeting_types}.
Break down ad group {ad_group_ids} performance by {targeting_types} in {ad_account_id} between {start_date} and {end_date}.
POST /ad_accounts/{ad_account_id}/ad_groups/audience_sizing Estimate an ad group's audience size · Get audience sizing #
Ask an LLM
“How many people could my ad group reach?”
“Can I estimate audience size before launching an ad group?”
Tell an agent
Estimate the audience size of ad group {ad_group_id} in {ad_account_id}.
Size the potential audience for ad group {ad_group_id} in {ad_account_id} with targeting {targeting_spec}.
GET /ad_accounts/{ad_account_id}/ad_groups/{ad_group_id} Get an ad group · Get ad group #
Ask an LLM
“What are the settings of one ad group?”
“Can I fetch a single ad group by ID?”
Tell an agent
Get ad group {ad_group_id} in {ad_account_id}.
Show the details of ad group {ad_group_id} under {ad_account_id}.
POST /ad_accounts/{ad_account_id}/ad_previews Create an ad preview · Create ad preview with pin or image #
Ask an LLM
“How do I preview an ad before launching it?”
“Can I create an ad preview from an existing pin?”
Tell an agent
Create an ad preview in ad account {ad_account_id}.
Create an ad preview for ad account {ad_account_id} from a pin.
GET /ad_accounts/{ad_account_id}/ads List ads · List ads #
Ask an LLM
“Which ads are in an ad account?”
“Can I list ads by campaign or ad group?”
Tell an agent
List ads in ad account {ad_account_id}.
List ads for campaigns {campaign_ids} in {ad_account_id}.
POST /ad_accounts/{ad_account_id}/ads Create ads · Create ads #
Ask an LLM
“How do I create new ads?”
“What do I need to create an ad, like an ad group and creative type?”
Tell an agent
Create ads in ad account {ad_account_id}.
Create new ads under {ad_account_id} with creative type and source pin.
PATCH /ad_accounts/{ad_account_id}/ads Update ads · Update ads #
Ask an LLM
“Can I edit several ads at once?”
“What's the way to update existing ads?”
Tell an agent
Update ads in ad account {ad_account_id}.
Edit the existing ads under {ad_account_id}.
GET /ad_accounts/{ad_account_id}/ads/analytics Get ad analytics for a date range · Get ad analytics #
Ask an LLM
“How do I pull spend and impressions for several ads over a custom date range?”
“What is the oldest date analytics can go back for these ads?”
Tell an agent
Get {columns} for ads {ad_ids} in ad account {ad_account_id} from {start_date} to {end_date}, granularity {granularity}.
Pull {columns} for ad {ad_ids} in {ad_account_id} by {granularity} between {start_date} and {end_date}, converted from {click_window_days} days.
GET /ad_accounts/{ad_account_id}/ads_credit/discounts List ad credit discounts · Get ads credit discounts #
Ask an LLM
“What discounts have been applied to my ad account?”
“Can I see the ad credit discount history?”
Tell an agent
List ad credit discounts for ad account {ad_account_id}.
Show the discount history of {ad_account_id}.
POST /ad_accounts/{ad_account_id}/ads_credit/redeem Redeem ad credits · Redeem ad credits #
Ask an LLM
“How do I redeem an ad credit offer code?”
“Can I validate an ad credit code before redeeming it?”
Tell an agent
Redeem ad credit offer code {offerCodeHash} in {ad_account_id}.
Validate ad credit code {offerCodeHash} for {ad_account_id} with validate only {validateOnly}.
GET /ad_accounts/{ad_account_id}/ads/targeting_analytics Get ad targeting analytics · Get targeting analytics for ads #
Ask an LLM
“Can I see spend broken down by age and gender for selected ads?”
“What do conversion metrics look like when the click attribution window is 14 days?”
Tell an agent
Get {columns} for ads {ad_ids} in account {ad_account_id} by {granularity} from {start_date} to {end_date}, targeting {targeting_types}.
Break down the {columns} for ad {ad_ids} in {ad_account_id} by {granularity} between {start_date} and {end_date}, attributed to {click_window_days}-day clicks.
GET /ad_accounts/{ad_account_id}/ads/{ad_id} Get an ad by ID · Get ad #
Ask an LLM
“Why was a particular ad rejected by Pinterest's review?”
“Can I fetch one ad's ID, name and status in a single call?”
Tell an agent
Get ad {ad_id} in account {ad_account_id}.
Show the status and rejection reasons for ad {ad_id} in {ad_account_id}.
GET /ad_accounts/{ad_account_id}/analytics Get ad account analytics · Get ad account analytics #
Ask an LLM
“How is my ad account performing overall?”
“Can I get account analytics for a date range?”
Tell an agent
Get ad account analytics for {ad_account_id} from {start_date} to {end_date}, columns {columns}, granularity {granularity}.
Show daily analytics for ad account {ad_account_id} between {start_date} and {end_date}.
GET /ad_accounts/{ad_account_id}/audience_insights Get audience insights for an ad account · Get audience insights #
Ask an LLM
“How engaged is my ad account's audience on Pinterest?”
“What are the total and engaged audience sizes for my ad account?”
Tell an agent
Get {audience_insight_type} audience insights for ad account {ad_account_id}.
Show {audience_insight_type} audience numbers for ad account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/audiences List audiences in an ad account · List audiences #
Ask an LLM
“Which audiences have I created in my ad account?”
“Can I filter my audiences by ownership type?”
Tell an agent
List audiences in ad account {ad_account_id}.
Show {ownership_type} audiences in ad account {ad_account_id}.
POST /ad_accounts/{ad_account_id}/audiences Create a targeting audience · Create audience #
Ask an LLM
“How do I create an audience to target specific users?”
“Can I build an audience from a customer list?”
Tell an agent
Create a {audience_type} audience named {name} in ad account {ad_account_id}.
Create a {audience_type} audience {name} in ad account {ad_account_id} with rule {rule}.
GET /ad_accounts/{ad_account_id}/audiences/{audience_id} Get an audience · Get audience #
Ask an LLM
“What rule defines a specific audience?”
“Can I look up one audience by its ID?”
Tell an agent
Get audience {audience_id} in ad account {ad_account_id}.
Show the rule of audience {audience_id} in ad account {ad_account_id}.
PATCH /ad_accounts/{ad_account_id}/audiences/{audience_id} Update or remove an audience · Update audience #
Ask an LLM
“How do I change the rule of an existing audience?”
“Can I remove an audience I no longer target?”
Tell an agent
Update audience {audience_id} in ad account {ad_account_id} with rule {rule}.
Set operation {operation_type} on audience {audience_id} in ad account {ad_account_id}.
POST /ad_accounts/{ad_account_id}/audiences/custom Create a custom audience · Create custom audience #
Ask an LLM
“How do I target only people on my email list with a custom audience?”
“Can a custom audience be shared with syndicated partners?”
Tell an agent
Create a {sharing_type} audience {name} in account {ad_account_id} from the rule {rule}.
Share a custom audience for {name} in {ad_account_id} with {sharing_type} partners, ruled by {rule}.
POST /ad_accounts/{ad_account_id}/bid_floor Get bid floors for ad groups · Get bid floors #
Ask an LLM
“What bid floors are set for my ad groups?”
“Can I check bid floors for a specific targeting spec?”
Tell an agent
Get bid floors for ad account {ad_account_id} with specs {bid_floor_specs}.
Check bid floors for targeting spec {targeting_spec} in ad account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/billing_profiles Get billing profiles · Get billing profiles #
Ask an LLM
“Which billing profiles are set up for my ad account?”
“Can I list only the active billing profile?”
Tell an agent
List billing profiles in ad account {ad_account_id}.
Show active billing profiles in ad account {ad_account_id}, is_active {is_active}.
POST /ad_accounts/{ad_account_id}/bulk/download Download campaigns, ad groups and ads in bulk · Get advertiser entities in bulk #
Ask an LLM
“How do I export my campaigns and ad groups to a file?”
“Can I download only the campaigns that changed recently?”
Tell an agent
Create a bulk download of {entity_types} in ad account {ad_account_id}.
Export campaigns {campaign_filter} in ad account {ad_account_id} changed since {updated_since}.
POST /ad_accounts/{ad_account_id}/bulk/upsert Create or update ad entities in bulk · Create/update ad entities in bulk #
Ask an LLM
“How do I create many campaigns and ad groups at once?”
“Can I update existing ads in bulk?”
Tell an agent
Create campaigns and ad groups in ad account {ad_account_id}.
Upsert {create} and update {update} in ad account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/bulk/{bulk_request_id} Download bulk upsert results · Download advertiser entities in bulk #
Ask an LLM
“Where do I download the results of a bulk upsert request?”
“Did my bulk upsert request succeed?”
Tell an agent
Get bulk request {bulk_request_id} in ad account {ad_account_id}.
Download the results of bulk request {bulk_request_id} in ad account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/campaigns List campaigns in an ad account · List campaigns #
Ask an LLM
“Which campaigns are running in my ad account?”
“Can I list only the campaigns with a given status?”
Tell an agent
List campaigns in ad account {ad_account_id}.
Show campaigns {campaign_ids} in ad account {ad_account_id} with status {entity_statuses}.
POST /ad_accounts/{ad_account_id}/campaigns Create campaigns · Create campaigns #
Ask an LLM
“How do I create several new campaigns?”
“What spend caps do I set when creating campaigns?”
Tell an agent
Create new campaigns in ad account {ad_account_id}.
Set up several campaigns in ad account {ad_account_id}.
PATCH /ad_accounts/{ad_account_id}/campaigns Update campaigns · Update campaigns #
Ask an LLM
“How do I pause or edit several campaigns at once?”
“Can I change the daily spend cap on existing campaigns?”
Tell an agent
Update campaigns in ad account {ad_account_id}.
Edit the existing campaigns in ad account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/campaigns/analytics Get campaign analytics · Get campaign analytics #
Ask an LLM
“How are my campaigns performing over time?”
“Can I see campaign spend broken down by day or hour?”
Tell an agent
Get analytics for campaigns {campaign_ids} in ad account {ad_account_id} from {start_date} to {end_date}.
Show {columns} for campaigns {campaign_ids} in ad account {ad_account_id} by {granularity}.
GET /ad_accounts/{ad_account_id}/campaigns/targeting_analytics Get campaign targeting analytics · Get targeting analytics for campaigns #
Ask an LLM
“Can I see where my campaign spend by age and gender is going?”
“Which age and gender buckets drove the most conversions for my campaign?”
Tell an agent
Get {columns} for campaigns {campaign_ids} in account {ad_account_id} by {granularity} from {start_date} to {end_date}, targeting {targeting_types}.
Break down campaign {campaign_ids} spend in {ad_account_id} by {granularity} between {start_date} and {end_date}, attributing conversions to {engagement_window_days}-day engagement conversions.
GET /ad_accounts/{ad_account_id}/campaigns/{campaign_id} Get a campaign · Get campaign #
Ask an LLM
“What are the settings of a specific campaign?”
“Can I look up one campaign by its ID?”
Tell an agent
Get campaign {campaign_id} in ad account {ad_account_id}.
Show the settings of campaign {campaign_id} in ad account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/conversion_tags List conversion tags · Get conversion tags #
Ask an LLM
“Which conversion tags are set up in my ad account?”
“Can I exclude deleted conversion tags from the list?”
Tell an agent
List conversion tags in ad account {ad_account_id}.
Show conversion tags in ad account {ad_account_id} with filter {filter_deleted}.
POST /ad_accounts/{ad_account_id}/conversion_tags Create a conversion tag · Create conversion tag #
Ask an LLM
“How do I set up the Pinterest tag to track conversions?”
“Can I enable enhanced match when creating a conversion tag?”
Tell an agent
Create conversion tag {name} in ad account {ad_account_id}.
Create conversion tag {name} in ad account {ad_account_id} with enhanced match {aem_enabled}.
GET /ad_accounts/{ad_account_id}/conversion_tags/ocpm_eligible Get conversion events eligible for OCPM · Get Ocpm eligible conversion tags #
Ask an LLM
“Which conversion events are eligible for optimized cost per mille?”
“What events can I target with OCPM bidding?”
Tell an agent
Get OCPM eligible conversion events for ad account {ad_account_id}.
List conversion events eligible for OCPM in ad account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/conversion_tags/page_visit List page visit conversion tags · Get page visit conversion tags #
Ask an LLM
“Which page visit events have been tracked for my ad account?”
“Can I see the page visit conversion tags on an account?”
Tell an agent
List page visit conversion tags for ad account {ad_account_id}.
Show page visit events for account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/conversion_tags/{conversion_tag_id} Get a conversion tag · Get conversion tag #
Ask an LLM
“What are the details of one conversion tag?”
“Can I look up a single conversion tag by ID?”
Tell an agent
Get conversion tag {conversion_tag_id} for ad account {ad_account_id}.
Show details of conversion tag {conversion_tag_id} in account {ad_account_id}.
POST /ad_accounts/{ad_account_id}/customer_lists Create a customer list · Create customer lists #
Ask an LLM
“How do I upload a list of emails to target as a customer list?”
“Is there a minimum number of matching Pinterest accounts a customer list must have?”
Tell an agent
Create customer list {name} in ad account {ad_account_id} from {records}.
Upload {records} as a {list_type} customer list named {name} for account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/customer_lists List customer lists · Get customer lists #
Ask an LLM
“Which customer lists does my ad account have?”
“Can I sort my customer lists by name?”
Tell an agent
List customer lists in ad account {ad_account_id}.
Show customer lists in {ad_account_id} ordered {order} by ID.
GET /ad_accounts/{ad_account_id}/customer_lists/{customer_list_id} Get a customer list · Get customer list #
Ask an LLM
“What records are in a specific customer list?”
“Can I fetch one customer list by ID?”
Tell an agent
Get customer list {customer_list_id} for ad account {ad_account_id}.
Show the records in customer list {customer_list_id} on account {ad_account_id}.
PATCH /ad_accounts/{ad_account_id}/customer_lists/{customer_list_id} Add or remove records from a customer list · Update customer list #
Ask an LLM
“How do I append new emails to an existing customer list?”
“Can I remove records from a customer list I already created?”
Tell an agent
Apply {operation_type} records {records} to customer list {customer_list_id} in account {ad_account_id}.
Append {records} to customer list {customer_list_id} on account {ad_account_id}.
POST /ad_accounts/{ad_account_id}/events Send conversion events · Send conversions #
Ask an LLM
“How do I send web or in-app conversion data to Pinterest?”
“Can I test conversion events before going live?”
Tell an agent
Send conversion events {data} to ad account {ad_account_id}.
Record conversions {data} for account {ad_account_id} in test mode {test}.
GET /ad_accounts/{ad_account_id}/insights/audiences List audience scope and type · Get audience insights scope and type #
Ask an LLM
“Which scopes and types of audiences have recently interacted with pins?”
“What audience types can I get insight metrics for?”
Tell an agent
List audience scope and type for ad account {ad_account_id}.
Show the audience types available to account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/keywords List keywords · Get keywords #
Ask an LLM
“What keywords are set on my campaigns and ad groups?”
“Can I filter keywords by match type?”
Tell an agent
List keywords for ad account {ad_account_id}.
Show keywords on campaign {campaign_id} in account {ad_account_id}.
POST /ad_accounts/{ad_account_id}/keywords Create keywords · Create keywords #
Ask an LLM
“How do I add keywords to an ad group?”
“Can I create keywords at the advertiser or campaign level?”
Tell an agent
Create keywords {keywords} under {parent_id} in ad account {ad_account_id}.
Add keywords {keywords} to {parent_id} for account {ad_account_id}.
PATCH /ad_accounts/{ad_account_id}/keywords Update keywords · Update keywords #
Ask an LLM
“How do I archive keywords so they stop receiving metrics?”
“Can I change the bid on several keywords at once?”
Tell an agent
Update keywords {keywords} in ad account {ad_account_id}.
Archive keywords {keywords} for account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/keywords/metrics Get keyword metrics for a country · Get country's keyword metrics #
Ask an LLM
“How much search volume do these keywords get in a given country?”
“Can I see aggregated keyword metrics for a country?”
Tell an agent
Get keyword metrics for {keywords} in {country_code} for ad account {ad_account_id}.
Show country-level metrics for keywords {keywords} in {country_code} on account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/lead_forms List lead forms · Get lead forms #
Ask an LLM
“What lead forms exist in my ad account?”
“Can I page through my lead forms?”
Tell an agent
List lead forms in ad account {ad_account_id}.
Show the first {page_size} lead forms for {ad_account_id}.
GET /ad_accounts/{ad_account_id}/lead_forms/{lead_form_id} Get a lead form · Get lead form by id #
Ask an LLM
“What questions does a specific lead form ask?”
“Can I fetch one lead form by ID?”
Tell an agent
Get lead form {lead_form_id} for ad account {ad_account_id}.
Show the questions on lead form {lead_form_id} in account {ad_account_id}.
POST /ad_accounts/{ad_account_id}/lead_forms/{lead_form_id}/test Test a lead form · Create lead form test data #
Ask an LLM
“How do I test a lead form with sample answers before going live?”
“Can I submit test answers to a lead form?”
Tell an agent
Submit test answers {answers} to lead form {lead_form_id} in ad account {ad_account_id}.
Test lead form {lead_form_id} on account {ad_account_id} with answers {answers}.
POST /ad_accounts/{ad_account_id}/leads/subscriptions Subscribe to lead form webhooks · Create lead ads subscription #
Ask an LLM
“How do I get lead data delivered to my server when people fill out a lead form?”
“Can I subscribe to lead forms at the account level?”
Tell an agent
Subscribe webhook {webhook_url} to lead form {lead_form_id} in account {ad_account_id}.
Create a lead ads subscription at {webhook_url} for account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/leads/subscriptions List lead form webhook subscriptions · Get lead ads subscriptions #
Ask an LLM
“Which lead forms am I getting lead data for through webhooks?”
“Can I see all lead ads subscriptions on an account?”
Tell an agent
List lead ads subscriptions for ad account {ad_account_id}.
Show webhook subscriptions on account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/leads/subscriptions/{subscription_id} Get a lead ads subscription · Get lead ads subscription #
Ask an LLM
“What URL and status does one lead ads subscription have?”
“Can I fetch a single lead form webhook subscription?”
Tell an agent
Get lead ads subscription {subscription_id} for ad account {ad_account_id}.
Show the webhook subscription {subscription_id} on account {ad_account_id}.
DELETE /ad_accounts/{ad_account_id}/leads/subscriptions/{subscription_id} Unsubscribe a lead form webhook · Delete lead ads subscription #
Ask an LLM
“How do I stop receiving lead data for a lead form?”
“Can I delete a lead ads subscription?”
Tell an agent destructive · confirm first
Delete lead ads subscription {subscription_id} from ad account {ad_account_id}.
Unsubscribe webhook {subscription_id} on account {ad_account_id}.
GET /ad_accounts/{ad_account_id}/mmm_reports Get a Marketing Mix Modeling report · Get advertiser Marketing Mix Modeling (MMM) report #
Ask an LLM
“How do I download the Marketing Mix Modeling report for my account?”
“Where do I get the MMM report URL from the creation token?”
Tell an agent
Get the MMM report for ad account {ad_account_id} using token {token}.
Download the Marketing Mix Modeling report for account {ad_account_id} with token {token}.
POST /ad_accounts/{ad_account_id}/mmm_reports Request a Marketing Mix Modeling report · Create a request for a Marketing Mix Modeling (MMM) report #
Ask an LLM
“How do I request a Marketing Mix Modeling report for an ad account?”
“Can I choose the granularity and targeting types for an MMM report?”
Tell an agent
Create an MMM report for ad account {ad_account_id} from {start_date} to {end_date} at {granularity} for targeting types {targeting_types}.
Request MMM report {report_name} for {ad_account_id} over {columns}.
GET /ad_accounts/{ad_account_id}/order_lines List an ad account's order lines · Get order lines #
Ask an LLM
“What order lines exist in my ad account?”
“Can I page through an account's order lines?”
Tell an agent
List order lines for ad account {ad_account_id}.
Show {page_size} order lines for {ad_account_id} sorted {order}.
GET /ad_accounts/{ad_account_id}/order_lines/{order_line_id} Get an order line · Get order line #
Ask an LLM
“How do I look up one order line by ID?”
“What does a single order line record contain?”
Tell an agent
Get order line {order_line_id} in ad account {ad_account_id}.
Show order line {order_line_id} for {ad_account_id}.
POST /ad_accounts/{ad_account_id}/product_group_promotions Add product groups to an ad group · Create product group promotions #
Ask an LLM
“How do I promote product groups into an ad group?”
“Can I add several product groups to an ad group at once?”
Tell an agent
Add product group promotion {product_group_promotion} to ad group {ad_group_id} in {ad_account_id}.
Promote these product groups into ad group {ad_group_id} for {ad_account_id}.
PATCH /ad_accounts/{ad_account_id}/product_group_promotions Update product group promotions · Update product group promotions #
Ask an LLM
“How do I change the product groups in an existing promotion?”
“Can I edit several product group promotions in one request?”
Tell an agent
Update product group promotions {product_group_promotion} in ad group {ad_group_id} for {ad_account_id}.
Edit existing product group promotions {product_group_promotion} in {ad_account_id}.
GET /ad_accounts/{ad_account_id}/product_group_promotions List product group promotions · Get product group promotions #
Ask an LLM
“Which product group promotions are in my ad account?”
“Can I list product group promotions for one ad group?”
Tell an agent
List product group promotions for ad account {ad_account_id}.
Show product group promotions for ad group {ad_group_id} in {ad_account_id}.
GET /ad_accounts/{ad_account_id}/product_group_promotions/{product_group_promotion_id} Get a product group promotion · Get a product group promotion by id #
Ask an LLM
“How do I look up one product group promotion by ID?”
“What product groups are in a specific promotion?”
Tell an agent
Get product group promotion {product_group_promotion_id} in ad account {ad_account_id}.
Show the product groups in promotion {product_group_promotion_id} for {ad_account_id}.
GET /ad_accounts/{ad_account_id}/product_groups/analytics Get product group analytics · Get product group analytics #
Ask an LLM
“How do I get spend and impressions for specific product groups?”
“Can I see hourly product group analytics for a date range?”
Tell an agent
Get product group analytics for {ad_account_id} from {start_date} to {end_date} at {granularity} for product groups {product_group_ids} with columns {columns}.
Show {granularity} analytics for product groups {product_group_ids} in {ad_account_id} between {start_date} and {end_date}.
GET /ad_accounts/{ad_account_id}/product_groups/catalogs Get product groups from the deprecated catalog endpoint · Get catalog product groups #
Ask an LLM
“Is there still a deprecated endpoint for getting product groups from a feed?”
“Can I list catalog product groups by feed profile?”
Tell an agent
List catalog product groups for ad account {ad_account_id} using the deprecated endpoint.
Get product groups from feed profile {feed_profile_id} for {ad_account_id} via the deprecated catalog endpoint.
GET /ad_accounts/{ad_account_id}/reports Download an account analytics report · Get the account analytics report created by the async call #
Ask an LLM
“How do I download the analytics report once it's ready?”
“How long is the report download link valid?”
Tell an agent
Download the analytics report for ad account {ad_account_id} using token {token}.
Get the finished report for {ad_account_id} with download token {token}.
POST /ad_accounts/{ad_account_id}/reports Request an account analytics report · Create async request for an account analytics report #
Ask an LLM
“How do I request a large account analytics report asynchronously?”
“Can I set a conversion attribution window on an analytics report?”
Tell an agent
Create an async analytics report for {ad_account_id} from {start_date} to {end_date} at {granularity} with columns {columns} at level {level}.
Request an analytics report for {ad_account_id} with attribution windows {click_window_days}, {engagement_window_days} and {view_window_days}.
DELETE /ad_accounts/{ad_account_id}/sandbox Delete an ad account's data in the sandbox · Delete ads data for ad account in API Sandbox #
Ask an LLM
“How do I wipe an ad account's ads data in the API sandbox?”
“Is there a way to reset an account for testing?”
Tell an agent destructive · confirm first
Delete ad account {ad_account_id} and all its ads data in the sandbox.
Reset the sandbox account {ad_account_id} by removing its ads data.
GET /ad_accounts/{ad_account_id}/ssio/accounts Get Salesforce bill-to details for an account · Get Salesforce account details including bill-to information #
Ask an LLM
“How do I get the bill-to company and address for an ad account?”
“Where can I find the Salesforce account details for an insertion order?”
Tell an agent
Get the Salesforce bill-to account details for ad account {ad_account_id}.
Show the bill-to company and address for {ad_account_id}.
POST /ad_accounts/{ad_account_id}/ssio/insertion_orders Create an insertion order through SSIO · Create insertion order through SSIO #
Ask an LLM
“How do I create an insertion order through SSIO?”
“What do I need to submit an insertion order, like a PMP and budget?”
Tell an agent
Create an SSIO insertion order {order_name} for {ad_account_id} with PMP {pmp_id}, budget {budget_amount} and bill-to {billto_company_id}.
Submit insertion order {order_name} for {ad_account_id} with terms {accepted_terms_id} and currency {currency_info}.
PATCH /ad_accounts/{ad_account_id}/ssio/insertion_orders Edit an insertion order through SSIO · Edit insertion order through SSIO #
Ask an LLM
“How do I edit an existing insertion order through SSIO?”
“Can I change the start and end dates of an insertion order?”
Tell an agent
Edit insertion order {salesforce_order_id} for {ad_account_id} to end on {end_date}.
Change the PO number on insertion order {salesforce_order_id} in {ad_account_id} to {po_number}.
GET /ad_accounts/{ad_account_id}/ssio/insertion_orders/status Get insertion order status for an account · Get insertion order status by ad account id #
Ask an LLM
“What is the status of all insertion orders in my ad account?”
“Can I page through insertion order statuses?”
Tell an agent
Get insertion order statuses for ad account {ad_account_id}.
Show the first {page_size} insertion order statuses for {ad_account_id}.
GET /ad_accounts/{ad_account_id}/ssio/insertion_orders/{pin_order_id}/status Get insertion order status by pin order ID · Get insertion order status by pin order id #
Ask an LLM
“How do I check the status of one insertion order by its pin order ID?”
“What does a single insertion order status record show?”
Tell an agent
Get the status of insertion order {pin_order_id} in ad account {ad_account_id}.
Check whether pin order {pin_order_id} for {ad_account_id} has been processed.
GET /ad_accounts/{ad_account_id}/ssio/order_lines Get Salesforce order lines for an account · Get Salesforce order lines by ad account id #
Ask an LLM
“Which Salesforce order lines are in my ad account?”
“Can I filter an account's order lines by pin order ID?”
Tell an agent
Get Salesforce order lines for ad account {ad_account_id}.
Show order lines for pin order {pin_order_id} in {ad_account_id}.
GET /ad_accounts/{ad_account_id}/targeting_analytics Get targeting analytics for an ad account · Get targeting analytics for an ad account #
Ask an LLM
“How do I see spend by age and gender for my ad account?”
“Can I get targeting analytics for a specific date range?”
Tell an agent
Get targeting analytics for {ad_account_id} from {start_date} to {end_date} at {granularity} for targeting types {targeting_types} with columns {columns}.
Show spend by {targeting_types} for {ad_account_id} between {start_date} and {end_date}.
GET /ad_accounts/{ad_account_id}/targeting_templates List targeting templates · List targeting templates #
Ask an LLM
“What targeting templates are available in my ad account?”
“Can I search targeting templates by keyword?”
Tell an agent
List targeting templates for ad account {ad_account_id}.
Search targeting templates in {ad_account_id} for {search_query}.
POST /ad_accounts/{ad_account_id}/targeting_templates Create a targeting template · Create targeting templates #
Ask an LLM
“How do I save a set of audience lists and placements as a template?”
“Can I turn on auto-targeting when creating a targeting template?”
Tell an agent
Create targeting template {name} in ad account {ad_account_id}.
Save targeting template {name} with keywords {keywords} and placements {placement_group}.
PATCH /ad_accounts/{ad_account_id}/targeting_templates Update targeting templates · Update targeting templates #
Ask an LLM
“How do I change the audience filters on an existing targeting template?”
“Can targeting templates be edited after creation?”
Tell an agent
Apply {operation_type} {id} to targeting templates in ad account {ad_account_id}.
Update targeting template {id} in {ad_account_id} with operation {operation_type}.
GET /ad_accounts/{ad_account_id}/templates List templates in an ad account · List templates #
Ask an LLM
“Which targeting templates exist in my ad account?”
“Can I sort my templates by creation date?”
Tell an agent
List templates in ad account {ad_account_id}.
Show {page_size} templates in ad account {ad_account_id} ordered {order}.
POST /ad_accounts/{ad_account_id}/templates/{template_id}/reports Run an analytics report from a template · Create async request for an analytics report using a template #
Ask an LLM
“How do I get a performance report using a saved template?”
“Can I run a template report for a custom date range?”
Tell an agent
Create an analytics report from template {template_id} in ad account {ad_account_id}.
Run template report {template_id} for {start_date} to {end_date} at {granularity} granularity.
GET /ad_accounts/{ad_account_id}/terms_of_service Get the ad account's terms of service · Get terms of service #
Ask an LLM
“What are the current terms of service for my ad account?”
“Has my ad account accepted the terms of service?”
Tell an agent
Get the terms of service for ad account {ad_account_id}.
Show the {tos_type} terms of service for ad account {ad_account_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pinterest:pinterest-ad-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pinterest-ad-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 5.13.0
  title: Pinterest Ad API
  description: This is the description of your API.
  contact:
    name: Pinterest, Inc.
    url: https://developers.pinterest.com/
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://developers.pinterest.com/terms/
servers:
- url: https://api.pinterest.com/v5
tags:


# --- truncated at 32 KB (440 KB total) ---
# Full source: https://artifacts.apis.io/pinterest/openapi/pinterest-ad-api-openapi.yml