Retrieve a target

GET/ads/{connection_id}/target/{id}

Parameters

fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection
idstring required
ID of the Target

Returns

Targeting search result (for ads_target list endpoint)

idstring required
namestring
type enum
Valid values:
"INTEREST"
"BEHAVIOR"
"LOCALE"
"COUNTRY"
"REGION"
Targeting search types for ads_target list endpoint (Meta: adinterest, adbehavior, adlocale, adgeolocation; Google: geoTargetConstants, user_interest, topic_constant, language_constant)
is_activeboolean
parent_idstring
audience_count_minnumber
audience_count_maxnumber
const options = {
  method: 'GET',
  url: 'https://api.unified.to/ads/5de520f96e439b002043d8dc/target/5de520f96e439b002043d8d8',
  headers: {
    authorization: 'bearer .....'
  },
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?