Advertiser Management API

The DT Offer Wall Advertiser Management API allows you to update application bids automatically through a GraphQL endpoint. This API is intended for programmatic access only. The API token is only available in the ACP Edge console.

Authentication and Obtaining an API Token

Every request to the DT Offer Wall Advertiser Management API must be authenticated with an API token. This token identifies the advertiser account.

To create an API Token:

  1. In the ACP Edge Consolearrow-up-right, go to Account→Security Tokens and click Add Token. The Create Token window appears.

  1. Select Management API Token and click Create.

  1. To copy and save your newly created token, click Copy Last Created Token and save the copied token in a secure location.

circle-exclamation

Authentication

To authenticate your GraphQL query, set x-api-key HTTP header with the token, for example:

The API endpoint is:

Request

campaignBulkBidsManage allows you to update bids in bulk and change a campaign's activation status.

GraphQL Query

GraphQL Variables

Parameters

  • offerCmsId (Required): Campaign ID in the legacy CMS format. It appears below the Product Name column on the ACP Edge Dashboard. Alternatively, you can retrieve it by including the cmsId field to get it back in the response. For more information, see Query Offer.

  • offerEnabled (Optional, boolean): true enables an offer; false, disables an offer. If not provided, the offer status remains unchanged.

  • bidsList (Required, array): An array of bid objects that can be updated in bulk. Every element of the array can contain up to four options: two filter matching bids, and the remaining two set desired parameters. All elements are matched against the top offerCmsId which means that a single request can only update bids for one campaign.

  • applicationId (Optional, string): Filters for applications using its CMS ID. It appears below the Campaign Name in the ACP Edge Dashboard.

  • SupplyApplicationsList Query and include the cmsld field to get it back in the response.

  • countryCode (Optional, string): Filtering option. Filters for a specific country using its ISO 3166-1 alpha-2 (two letters) country code. Only bids set for this country are updated. You can see the country's ISO code for any country by calling a CountriesList query.

  • bid (Optional, string): Setter option. Sets the bid value for all matching applications and/or country codes or the top-level offer. This field can be set in two ways:

  • As a string representing float value, such as 2.71 by setting a bid to that value.

  • As a word default sets the bid to the default country value (which can be a default value for an offer).

  • dailyBudget (Optional, string): Sets the new daily budget for the matching offer or country. This field can be set in two ways:

  • As a string representing float value such as 2.71.

  • As a word default sets the bid to the default country value (which can be a default value for an offer).

Validation

To ensure data integrity, the following rules apply to each bidsListelement element, before any destructive action takes place:

  • bid or dailyBudget has to be set specifically for application or can be set both for offer or countries.

  • A bid cannot be set to default if a countryCode is not set.

  • A dailyBudget cannot be set at the applicationId level.

  • An applicationId cannot be set without a countryCode.

  • A countryCode must be targeted by a campaign associated with offerCmsId.

  • An applicationId must be targeted by a campaign associated with offerCmsId.

  • A dailyBudget cannot be set for both the offer campaign and the country code simultaneously (this includes offers that already have a daily budget configured).

Examples

HTTP

curl

GO

Java

node.js

Ruby

Query Offer

You can run queries to retrieve attributes from an offer and other related records, as shown in the following example:

GraphQL Query

circle-info

Fragments are included only for brevity. You can also use the full GraphQL query with all associations nested.

GraphQL Variables

Parameters

  • cmsId (Optional, required if id not used): The offer ID in the legacy CMS format, which appears on the ACP Edge Dashboard next to the offer name.

  • id (Optional, required if cmsId is not used): The offer ID, which you can extract from the edit/view offer URL. For example, in https://acp-edge.fyber.com/editOffer/1234, the ID is 1234.

circle-info

You must provide either cmsId or id, but not both. If both are included, the API returns an error.

Last updated