List campaigns
Changed onGet a list of the campaigns in the specified ad_account_id, filtered by the specified options.
- The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via Business Access: Admin, Analyst, Campaign Manager.
Request
- Base URLhttps://api.pinterest.com/v5
- Auth
- OAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesads:read
- or OAuth 2Client credentialsToken URLhttps://api.pinterest.com/v3/oauth/access_token/Scopesads:read
- TypeScripthttps://skmtc.dev/pinterest/apis/pinterest-rest-api/docs/ad_accounts/:ad_account_id/campaigns/get.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
Unique identifier of an ad account.
Query parameters
Cursor used to fetch the next page of items
Maximum number of items to include in a single page. See documentation on Pagination for more information.
The order in which to sort the items returned: "ASCENDING" or "DESCENDING" by ID. Note that higher-value IDs are associated with more-recently added items.
List of Campaign Ids to use to filter the results.
Entity status
[ "ACTIVE" ]
Response
The request has succeeded.
Example response
{
"items": [
{
"ad_account_id": "549755885175",
"bid_options": {
"age_bucket_multipliers": {
"18-24": 0.9,
"25-34": 1.1,
"35-44": 1.2
},
"app_type_multipliers": {
"android_mobile": 1.1,
"android_tablet": 1.1,
"ipad": 1.2,
"iphone": 1.2,
"web": 0.9,
"web_mobile": 0.8
},
"audience_multipliers": {
"123": 1.1,
"456": 1.2
},
"frequency_multipliers": {
"0": 1.5,
"1": 1.3,
"2": 0.8
},
"gender_multipliers": {
"female": 2.1,
"male": 0.8
},
"placement_multipliers": {
"browse": 0.9,
"search": 1.2,
"related_pins": 1.1
}
},
"created_time": 1432744744,
"daily_spend_cap": 1432744744,
"end_time": 1644023526,
"id": "549755885175",
"is_automated_campaign": true,
"is_campaign_budget_optimization": true,
"is_carting": true,
"is_flexible_daily_budgets": true,
"is_ltv_optimized": true,
"is_performance_plus": true,
"is_top_of_search": true,
"lifetime_spend_cap": 1432744744,
"name": "ACME Tools",
"order_line_id": "549755885175",
"start_time": 1580865126,
"status": "ACTIVE",
"tracking_urls": {
"impression": [
"URL1",
"URL2"
],
"click": [
"URL1",
"URL2"
],
"engagement": [
"URL1",
"URL2"
],
"buyable_button": [
"URL1",
"URL2"
],
"audience_verification": [
"URL1",
"URL2"
]
},
"type": "campaign",
"updated_time": 1432744744
}
]
}Changes
- breaking
for the
queryrequest parameterorder, default valueASCENDINGwas added - breaking
the response's body type changed from no type to
objectfor status - info
removed
subschema #2from the response bodyallOflist for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
for the
queryrequest parametercampaign_ids, the maxItems was increased from100to250
- info