# DCM/DFA Reporting And Trafficking API . dimensionValues

## Instance Methods

Retrieves list of report dimension values for a list of filters.

Retrieves the next page of results.

### Method Details

`query(profileId, body=None, maxResults=None, pageToken=None)`

    Retrieves list of report dimension values for a list of filters.

    Args:
      profileId: string, The DFA user profile ID. (required)
      body: object, The request body.
        The object takes the form of:

    { # Represents a DimensionValuesRequest.
        "dimensionName": "A String", # The name of the dimension for which values should be requested.
        "endDate": "A String", # The end date of the date range for which to retrieve dimension values. A string of the format "yyyy-MM-dd".
        "filters": [ # The list of filters by which to filter values. The filters are ANDed.
          { # Represents a dimension filter.
            "dimensionName": "A String", # The name of the dimension to filter.
            "kind": "dfareporting#dimensionFilter", # The kind of resource this is, in this case dfareporting#dimensionFilter.
            "value": "A String", # The value of the dimension to filter.
          },
        ],
        "kind": "dfareporting#dimensionValueRequest", # The kind of request this is, in this case dfareporting#dimensionValueRequest.
        "startDate": "A String", # The start date of the date range for which to retrieve dimension values. A string of the format "yyyy-MM-dd".
      }

      maxResults: integer, Maximum number of results to return.
      pageToken: string, The value of the nextToken from the previous result page.

    Returns:
      An object of the form:

        { # Represents the list of DimensionValue resources.
        "etag": "A String", # The eTag of this response for caching purposes.
        "items": [ # The dimension values returned in this response.
          { # Represents a DimensionValue resource.
            "dimensionName": "A String", # The name of the dimension.
            "etag": "A String", # The eTag of this response for caching purposes.
            "id": "A String", # The ID associated with the value if available.
            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
            "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
            "value": "A String", # The value of the dimension.
          },
        ],
        "kind": "dfareporting#dimensionValueList", # The kind of list this is, in this case dfareporting#dimensionValueList.
        "nextPageToken": "A String", # Continuation token used to page through dimension values. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.
      }

`query_next(previous_request, previous_response)`

    Retrieves the next page of results.

    Args:
      previous_request: The request for the previous page. (required)
      previous_response: The response from the request for the previous page. (required)

    Returns:
      A request object that you can call 'execute()' on to request the next
      page. Returns None if there are no more items in the collection.