Managing Targeting Groups
Introduction
The targeting group is the entity where you set the targeting options for distribution. Targeting groups are made up of the various targeting options available for that campaign type. This can include ages, genders, OS, among other things.
One campaign can have multiple targeting groups. For example, a single campaign can target the following.
Campaign: US, UK, CA
Female users with an age of 25+
Both Male and Female users 50+ using operating system 12+
Bids can be set on 3 levels within a targeting group.
Default bid level: this covers the bid for the entire target group.
Country level: allows you to adjust the targeting group’s default bids for a single country or multiple countries.
Sub-publisher level: here you can adjust the bids for each sub-publisher app within each country selection.
In addition to adjusting the bids, this API can deny certain sub-publisher's apps from a targeting group.
Get the list of targeting groups
%TOKEN%
The token is a hex string, which is given to the advertiser by the account manager.
Method:
The http request type
GET
URL Query Parameters
Querying active targeting groups follows a similar way to querying active campaigns. By default, all targeting groups for all campaigns are returned. However, it is possible to exclusively query active targeting groups. The query response will be limited to 1000 targeting groups in response. The next batch of targeting groups can be obtained by making the request with the NextKey from the previous request as the paging_key. The number of targeting groups to return is controlled by the limit parameter. If NextKey is missing or set to null you have reached the final page and there are no more results. Optional:
active_only=true paging_key=eyJLZXkiOiJhYmMxMjMifQ== limit=100
Success Response:
When successful, the API responds with a http OK status code, and a valid json object. There will be one item in Content for each targeting group in the adjoe system. A campaign can have multiple targeting groups.
Code: 200
Content-Type: application/json; charset=utf-8
Content:
JSON schema definition
Error Response:
The API does respond with different status codes, depending on the error:
Code: 401 UNAUTHORIZED
If the authorization fails, the API returns status code 401 with error message.
Content-Type: application/json; charset=utf-8
Content:
Code: 400 BAD REQUEST
If one of the URL parameters has a wrong format, the API returns status code 400 with error specific message.
Content-Type: application/json; charset=utf-8
Content:
Sample Curl Call:
Updating a single targeting group
%TOKEN%
The token is a hex string, which is given to the advertiser by the account manager.
%CAMPAIGN_UUID%
The unique UUID of the campaign obtained by previously fetching the available campaigns/targeting groups.
%TARGETING_GROUP_UUID%
The unique UUID of the targeting group obtained by previously fetching the available targeting groups.
Method:
The http request type
PUT
Request body
Content
Fields that are not included in the json body will not be updated. This doesn't apply to items in the CountryBids array. If the CountryBid is no longer present for some Countries it is considered to be removed and adjoe will take the targeting groups bid. You can, however, leave out the "CountryBids" field completely and then adjoe will not make and update to them. Similarly if a SubPublisherUUID is removed from a CountryBid we will use the Bid from the Countries. It is only possible to set either an install limit or a budget limit on a targeting group. If you want to remove the install limit, please set both
InstallLimits.Daily
andInstallLimits.Total
to0
.Success Response:
When successful, the API responds with a http OK status code and a valid json object.
Code: 200
Content-Type: application/json; charset=utf-8
Content:
JSON Schema definition
Error Response:
The API does respond with different status codes, depending on the error:
Code: 401 UNAUTHORIZED
If the authorization fails, the API returns status code 401 with error message.
Content-Type: application/json; charset=utf-8
Content:
Code: 404 NOT FOUND
If either the campaign or the targeting group does not exist.
Content-Type: application/json; charset=utf-8
Content:
Sample Curl Call:
Getting a single targeting group by UUID
%TOKEN%
The token is a hex string, which is given to the advertiser by the account manager.
%TARGETING_GROUP_UUID%
The key is a UUIDV4 string, which is assigned to a targeting group resource on creation.
Method:
The http request type
GET
Success Response:
When successful, the API responds with a http OK status code, and a valid json object. There will be one item in Content for each targeting group in the adjoe system. A campaign can have multiple targeting groups.
Code: 200
Content-Type: application/json; charset=utf-8
Content:
JSON schema definition
Error Response:
The API does respond with different status codes, depending on the error:
Code: 401 UNAUTHORIZED
If the authorization fails, the API returns status code 401 with error message.
Content-Type: application/json; charset=utf-8
Content:
Code: 404 NOT FOUND If the targeting group cannot be found Content-Type: application/json; charset=utf-8 Content:
Code: 400 BAD REQUEST
If one of the URL parameters has a wrong format, the API returns status code 400 with error specific message.
Content-Type: application/json; charset=utf-8
Content:
Sample Curl Call:
Last updated