PRODUCT

Amazon Ad Server will be sunset in Q4 2024, please visit this page (AAS offboarding information) for offboarding support resources and sunset FAQs. Details shared on that page represent the most up to date information in the Help Center, if you find disparate information in other resources please default to the information in the AAS offboarding information page accordingly.

Please note that on October 1, 2024, the ability to create new campaigns, placements and tag managers was disabled.

Follow

Resource URL

https://adapi.sizmek.com/sas/tagManagers/activities/site

Objects Used by This Resource

The following objects are used by this endpoint:

HTTP Method and URI List

HTTP METHOD

URI

DESCRIPTION

GET

tagManagers/activities/site

Retrieves all site activities for a specific advertiser.

GET

tagManagers/activities/site/{ID}

Retrieves a site activity by ID.

POST

tagManagers/activities/site

Creates a site activity.

PUT

tagManagers/activities/site/{ID}

Updates an existing site activity by ID.

Method Examples and Request Parameters

Important

Important:

  • For PUT calls, do the following:

    • For any PUT method that updates an object, make sure that you include the entire "result": object from the GET response in the request body. If there is missing information, even if it is read-only, the request might fail or override the existing fields with the new values.

    • You must also change the "result": to "entities": and make the entities contents into an array. For example, here is the output from the GET request:

       { "result": { "type": "Advertiser", ... } }      

      You should make the following modifications, including your specific modifications, to the json object that you submit for the request.

       { "entities": [{ "type": "Advertiser", ... }] }   
      
  • For POST calls, do the following:

    • Include the fields marked as Required, as indicated in the corresponding Object article.

    • Format the JSON object as follows:

       { "entities": [{ "type": "Advertiser", ... }] }   

GET all Site Activities (GET)

Retrieves multiple site activities. Can be filtered according to query parameters.

Request Query Parameters

NAME

DESCRIPTION

TYPE

REQUIRED

NOTES

from

Starting index by which to fetch new advertisers (for paging purposes).

Long

Required

Getting multiple entities requires using from and max query parameters.

max

Maximum number of advertisers to fetch (for each page).

Long

Required

q

Filtering options for the request (see here).

String

Optional

Example of query string: q={"1":{"RECENT":["1519203216427-1526889216427"]},"2":{"NAME":["smith"]}}

Note

Note: The date is according to the Unix epoch timestamp.

order

Sort order ASC or DESC, required if sort field name is specified (see here).

String

Optional

Note

Note: Required if a sort field name is specified.

By default, the API response is ascending.

sort

Sort by field name (see here).

String

Optional

advertiserId

ID of advertiser.

Long

Required

Request Format

GET https://adapi.sizmek.com/sas/tagManagers/activities/site?advertiserId=1083762205&from=0&max=250&order=asc&sort=name

Response Format

GET a Site Activity (GET)

Retrieves a site activity.

Request Parameters

NAME

DESCRIPTION

TYPE

REQUIRED

NOTES

ID

ID of site activity to fetch

Long

Required

Request Format

GET https://adapi.sizmek.com/sas/tagManagers/activities/site/{ID}

Response Format

A successful request returns the HTTP 200 OK status code and a JSON response body that shows the site activity's details.

Create a Site Activity (POST)

Create a new site activity.

Request Parameters

NAME

DESCRIPTION

TYPE

REQUIRED

NOTES

Body

Request containing site activity body to create.

JSON

Required

Request Format

POST https://adapi.sizmek.com/sas/tagManagers/activities/site

Response Format

A successful request returns the HTTP 200 OK status code and a JSON response body that shows the new site activity.

Update an Existing Site Activity (PUT)

Request Parameters

NAME

DESCRIPTION

TYPE

REQUIRED

NOTES

ID

ID of the site activity.

Long

Required

Body

Request containing site body to update.

JSON

Required

Request Format

PUT https://adapi.sizmek.com/sas/tagManagers/activities/site/{ID}

Response Format

A successful request returns the HTTP 200 OK status code and a JSON response body that shows the updated site activity details.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments