Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 4.25 KB

File metadata and controls

53 lines (34 loc) · 4.25 KB

ThirdParty

Overview

Available Operations

ingest_third_party_data

Upload third-party data for the specified data provider for use in audience targeting.

Example Usage

from ttd_data import DataClient


with DataClient() as data_client:

    res = data_client.third_party.ingest_third_party_data(ttd_auth="<value>", data_provider_id="<id>", is_user_id_already_hashed=False)

    assert res.third_party_data_server_response is not None

    # Handle response
    print(res.third_party_data_server_response)

Parameters

Parameter Type Required Description
ttd_auth str ✔️ Data API token for authentication.
data_provider_id str ✔️ N/A
items List[models.ThirdPartyDataItem] N/A
data_load_trace_id OptionalNullable[str] N/A
is_user_id_already_hashed Optional[bool] N/A
data_origins List[models.DataOrigin] N/A
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.
server_url Optional[str] An optional server URL to use.

Response

models.IngestThirdPartyDataResponse

Errors

Error Type Status Code Content Type
errors.ThirdPartyDataServerResponseError 400, 429 application/json
errors.APIError 4XX, 5XX */*