List ad groups
Changed onList ad groups based on provided campaign IDs or ad group IDs.(campaign_ids or ad_group_ids). Note: Provide only campaign_id or ad_group_id. Do not provide both.
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/ad_groups/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.
List of Ad group Ids to retrieve keywords from. This feature is currently in BETA and is not available to all users.
Entity status
[ "ACTIVE" ]
Return interests as text names (if value is true) rather than topic IDs.
Response
The request has succeeded.
Example response
{
"items": [
{
"billable_event": "CLICKTHROUGH",
"placement_group": "ALL",
"status": "ACTIVE",
"targeting_spec": {
"SHOPPING_RETARGETING": [
{
"lookback_window": 30,
"exclusion_window": 14,
"tag_types": [
0,
6
]
}
]
},
"tracking_urls": {
"impression": [
"URL1",
"URL2"
],
"click": [
"URL1",
"URL2"
],
"engagement": [
"URL1",
"URL2"
],
"buyable_button": [
"URL1",
"URL2"
],
"audience_verification": [
"URL1",
"URL2"
]
}
}
]
}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
- breaking
the
/////////response property's minItems was decreased from100to0for the response status - breaking
the
/////////response property's minItems was decreased from100to0for the response status
- breaking