PRODUCT
Follow

You can use the variable resource to retrieve a specific variable or create a variable.

Resource URL

https://adapi.sizmek.com/sas/tagManagers/variables

Objects Used by This Resource

The following objects are used by this endpoint:

HTTP Method and URI List

HTTP METHOD

URI

DESCRIPTION

GET

/tagManagers/variables/{Id}

Retrieve a specific variable.

POST

/tagManagers/variables

Create a variable.

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 a Variable (GET)

Retrieve a specific variable.

Request Parameters

NAME

DESCRIPTION

TYPE

REQUIRED

NOTES

id

ID of the requested campaign

Integer

Required

Request Format

GET https://adapi.sizmek.com/sas/tagManagers/variables/1234567890

Response Format

A successful request returns the HTTP 200 OK status code and a JSON response body that shows the variable details. If there is no variable, the request returns an empty response.

Create a Variable (POST)

Create a new variable.

Request Parameters

NAME

DESCRIPTION

TYPE

REQUIRED

NOTES

Body

Request containing campaign body to create.

JSON

Required

Request Format

POST https://adapi.sizmek.com/sas/tagManagers/variables

Response Format

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

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

Comments

Powered by Zendesk