Upgrade Guide: v2 to v3

A practical migration map that pairs common v2 request patterns with their v3 equivalents.

The migration is not a search-and-replace operation. Update the request builder, serializers, and response models together.

V3 changes the route, HTTP method, parameter placement, query names, request bodies, and response envelopes. The resource model remains the same, but each v2 call must be mapped deliberately.

This upgrade guide covers the supported Nextdoor Ads API v3 resource patterns. Use the published API reference for the complete list of available resources and fields.

What you need to change

  • Change /v2/api to /api/v3. Then convert the full route to the v3 resource shape.
  • Put advertiser_id in the {advertiserId} URL segment instead of most request bodies.
  • Put object IDs in item URLs such as {campaignId} and {adId}.
  • Use PUT for updates and status changes.
  • Use DELETE to archive a resource.
  • Use camelCase query parameters: pageSize, cursor, includeArchived, startTime, and endTime.
  • Keep JSON body fields in snake_case.
  • Read v3 pagination metadata from pageInfo.endCursor.
  • Deserialize v3 responses into v3 models, not v2 output classes.

Authentication is not the focus of this migration. The work is in the request and response contract.

Before you start

Use this guide if your team already manages Nextdoor advertising through v2. It focuses on the public v3 contract and the code changes most likely to affect an existing partner client.

1. Inventory your v2 traffic

Before changing code, list every v2 call your application makes:

  • advertiser and campaign reads
  • campaign creation, update, status, and archive
  • ad group creation, update, status, and archive
  • ad creation, update, status, and archive
  • creative creation, update, read, stats, and archive
  • media upload and lookup
  • audience and targeting lookups
  • one-off and scheduled reporting
  • pagination and archived-object handling

Mark each call covered, needs a v3 replacement, or out of scope. This prevents a partial migration in which the URL changes but the method or payload still follows v2.

2. Replace action routes with Nextdoor resources

V2 uses entity/action paths. V3 uses advertiser-scoped resources:

v2: /v2/api/<entity>/<action>
v3: /api/v3/advertisers/{advertiserId}/<resource>

For example:

v2: POST /v2/api/campaign/update
v3: PUT  /api/v3/advertisers/{advertiserId}/campaigns/{campaignId}

The v3 request carries scope and identity in the URL:

v2 body:  { "advertiser_id": "123", "id": "456", "name": "Spring campaign" }
v3 path:  /api/v3/advertisers/123/campaigns/456
v3 body:  { "name": "Spring campaign" }

Do not append /api/v3 to a path that already contains it, and do not carry the v2 action name into the v3 resource path.

3. Use the Nextdoor v3 endpoint map

v2 operationv3 operationChange required
GET /v2/api/campaign/get/{id}GET /api/v3/advertisers/{advertiserId}/campaigns/{campaignId}Add advertiser scope and use the campaign item path.
GET /v2/api/campaign/get/{id}/statsGET /api/v3/advertisers/{advertiserId}/campaigns/{campaignId}/statsMove dates to startTime and endTime.
POST /v2/api/campaign/createPOST /api/v3/advertisers/{advertiserId}/campaignsRemove advertiser_id from the body.
POST /v2/api/campaign/updatePUT /api/v3/advertisers/{advertiserId}/campaigns/{campaignId}Move the ID to the URL; send a partial body.
POST /v2/api/campaign/status/updatePUT /api/v3/advertisers/{advertiserId}/campaigns/{campaignId}/statusSend the public user_status value in a PUT body.
Legacy campaign archive/status behaviorDELETE /api/v3/advertisers/{advertiserId}/campaigns/{campaignId}Replace the archive action with DELETE.
Legacy ad group list/create/update actions/api/v3/advertisers/{advertiserId}/adgroups and /adgroups/{adgroupId}Keep campaign_id in the create body; use the item URL for updates.
GET /v2/api/ad/get/{id}GET /api/v3/advertisers/{advertiserId}/ads/{adId}Add advertiser and ad path parameters.
GET /v2/api/ad/get/{id}/statsGET /api/v3/advertisers/{advertiserId}/ads/{adId}/statsMove dates to camelCase query parameters.
POST /v2/api/ad/createPOST /api/v3/advertisers/{advertiserId}/adsRemove advertiser_id; retain adgroup_id, creative_id, and name.
POST /v2/api/ad/updatePUT /api/v3/advertisers/{advertiserId}/ads/{adId}Move id to {adId} and send the v3 update body.
POST /v2/api/ad/status/updatePUT /api/v3/advertisers/{advertiserId}/ads/{adId}/statusSend user_status using the public enum.
Legacy ad archive/status behaviorDELETE /api/v3/advertisers/{advertiserId}/ads/{adId}Replace the archive action with DELETE.
POST /v2/api/creative/createPOST /api/v3/advertisers/{advertiserId}/creativesUpload/reference public image assets, then send a typed body.
Legacy creative update/status actionsPUT /api/v3/advertisers/{advertiserId}/creatives/{creativeId}Use the v3 body variant for the creative type.
Legacy creative archive actionDELETE /api/v3/advertisers/{advertiserId}/creatives/{creativeId}Replace the archive action with DELETE.
Legacy media actions/api/v3/advertisers/{advertiserId}/media and /media/{mediaId}Separate media lifecycle from creative lifecycle.
Legacy reporting list/schedule actions/api/v3/advertisers/{advertiserId}/reports and /reports/schedulesUse advertiser-scoped report resources and v3 schemas.

4. Move IDs into the URL

A typical v2 mutation may put several identifiers in the body:

{
  "advertiser_id": "123",
  "id": "456",
  "name": "Spring campaign"
}

In v3:

  • advertiser_id becomes {advertiserId} in the URL.
  • id becomes a typed path parameter such as {campaignId}, {adgroupId}, {adId}, or {creativeId}.
  • Relationship IDs remain in the body: campaign_id, adgroup_id, and creative_id.

Do not send a second advertiser identifier in the body unless the specific public v3 schema requires it.

5. Update list and pagination code

A v3 list request looks like this:

GET /api/v3/advertisers/123/campaigns?pageSize=100&cursor=<opaque-cursor>

To include archived objects where supported:

GET /api/v3/advertisers/123/campaigns?includeArchived=true&pageSize=100

Migration rules:

  1. Send pageSize on every v3 list request.
  2. Omit cursor on the first request.
  3. Read pageInfo.endCursor from the response.
  4. URL-encode that cursor and send it unchanged on the next request.
  5. Stop when endCursor is absent.
  6. Keep pageSize between 1 and 500.
  7. Never decode, construct, or compare cursor contents.

Example:

cursor = null
repeat:
    query = "pageSize=100"
    if cursor != null:
        query += "&cursor=" + urlEncode(cursor)

    response = GET(v3CollectionUrl + "?" + query)
    consume(response.items)
    cursor = response.pageInfo.endCursor
until cursor == null

Resource-specific filters use v3 query names:

  • ad groups: campaignId
  • ads: parentId
  • campaigns, ad groups, ads, and creatives: includeArchived where supported

6. Update stats calls

V3 nests stats under the resource and uses camelCase query parameters:

GET /api/v3/advertisers/123/campaigns/456/stats?startTime=2025-01-01&endTime=2025-01-10

Use the same pattern for ad groups, ads, creatives, and advertisers where stats are exposed.

Dates use YYYY-MM-DD; the end date is inclusive. Validate returned timestamps against the advertiser timezone during migration instead of assuming raw UTC boundaries.

7. Replace status and archive operations

Status updates

Status is a dedicated v3 resource operation:

PUT /api/v3/advertisers/123/ads/456/status
Content-Type: application/json

{
  "user_status": "ACTIVE"
}

Use the enum accepted by the specific public resource. Campaign, ad group, and ad statuses are not interchangeable by default.

Archive

Archive with DELETE:

DELETE /api/v3/advertisers/123/ads/456

The response is an archive result, not a normal full-object response. Archived objects disappear from default lists and remain available only where includeArchived=true is supported and requested.

8. Update request bodies

Campaigns

{
  "name": "Spring campaign",
  "objective": "AWARENESS",
  "sub_objective": "..."
}

Remove advertiser_id. Send only fields documented in the v3 campaign schema.

Ad groups

{
  "campaign_id": "456",
  "name": "Spring ad group",
  "placements": ["FEED"],
  "bid": { "...": "..." },
  "budget": { "...": "..." },
  "start_time": "2025-04-01T00:00:00Z",
  "end_time": null,
  "targeting": { "...": "..." }
}

Use only the bid, budget, placement, and targeting enums documented in the v3 schema.

For updates, send only the fields you intend to change. An omitted field means “leave it unchanged”; an explicit null may clear a value when the schema permits it.

Ads

{
  "adgroup_id": "789",
  "creative_id": "321",
  "name": "Spring ad"
}

For an update, put the ad ID in the URL and send only the changed fields:

{
  "creative_id": "654",
  "name": "Spring ad - revised"
}

Creatives

V3 creative input is typed. Use the body variant that matches the selected public creative type.

Migration sequence:

  1. Upload the public image assets through the media API.
  2. Save the returned media IDs.
  3. Build the typed v3 creative body with those IDs.
  4. POST to the advertiser-scoped creative collection.
  5. Preserve the creative type when updating and use its matching update body.

9. Update response models

Keep v2 and v3 models separate. Update:

  • resource outputs for advertisers, campaigns, ad groups, ads, creatives, media, audiences, and reports
  • list envelopes and pageInfo
  • typed creative variants
  • archive responses
  • structured errors
  • stats fields and date boundaries

For errors, read api_error_code first and use message for diagnostics. Do not branch on exact message text.

10. Validate before switching traffic

Run the v2 and v3 clients side by side against the same non-production scenarios.

Minimum test matrix

  • create a campaign, ad group, ad, and public creative
  • read each resource by its v3 item URL
  • update a name without resending unrelated fields
  • change status through the v3 status route
  • archive through DELETE
  • confirm default lists exclude archived objects
  • confirm includeArchived=true returns archived objects where supported
  • paginate across multiple pages and resume with the returned cursor
  • request stats for a known date range
  • verify stats timezone and inclusive end date
  • upload, list, retrieve, and archive a public image asset
  • create and retrieve a public report or schedule if reporting is part of the integration
  • send an invalid request and verify the structured error path

For each resource, compare business behavior, not raw JSON. Check identity, advertiser ownership, parent relationships, status, archive state, editable fields, stats totals, date boundaries, and list cardinality.

Common migration mistakes

MistakeWhat happensFix
Replacing only /v2/api with /api/v3The route still follows the v2 action pattern.Convert the full path and HTTP method.
Leaving advertiser_id in the body and omitting {advertiserId}The request is not correctly scoped.Put the advertiser ID in the v3 URL.
Sending id in an update bodyV3 reads identity from the item URL.Put the object ID in the URL.
Using POST for update or statusThe v3 route expects PUT.Use the resource or status route with PUT.
Sending page_size or start_time as query parametersV3 expects camelCase query names.Use pageSize, startTime, endTime, and includeArchived.
Treating a cursor like an offsetPagination can skip or repeat records.Treat it as opaque and URL-encode it.
Reusing one status enum across resourcesValidation may reject the request.Use the enum for that resource.
Sending fields that are not in the schemaThe request may be rejected.Remove the field and follow the documented schema.
Reusing v2 response modelsDeserialization breaks on v3 envelopes or typed variants.Add dedicated v3 models and migration tests.

Migration checklist

  • Inventory every v2 call and map it to a public v3 resource.
  • Make the base path configurable.
  • Move advertiser and object IDs into v3 URL segments.
  • Change methods for create, read, update, status, and archive.
  • Use camelCase query parameters.
  • Use the public snake_case v3 JSON schemas.
  • Follow pageInfo.endCursor with an opaque cursor.
  • Test archived-object behavior with and without includeArchived=true.
  • Keep v3 request and response models separate from v2.
  • Use public image asset IDs in creative requests.
  • Validate request bodies against the documented v3 schemas.
  • Verify stats date ranges and timezone behavior.
  • Handle errors through api_error_code.
  • Keep a rollback path until v3 parity is confirmed.