Skip to content

Changing ADX Domain

vladasdrejeris edited this page Jul 25, 2017 · 2 revisions

It is possible to change ad exchange server by specifying a server domain that should be used by SDK. To do so you need to use static setAdxDomain() method on AdformSDK class. There are three standard ADX domain values:

  1. NetworkSettings.ADX_SERVER_DOMAIN_EUR - an ADX server located in Eurupe;
  2. NetworkSettings.ADX_SERVER_DOMAIN_USA - an ADX server located in USA;
  3. NetworkSettings.ADX_SERVER_DOMAIN_DEFAULT - a default ADX server, at the moment this value is equal to NetworkSettings.ADX_SERVER_DOMAIN_EUR.

You can also set another custom ADX domain provided to you by Adform.

It is important that you set ADX domain before loading any ads.

An example bellow shows you how to change ADX domain used by SDK:

	// Set one of the standard ADX domains:
	AdformSDK.setAdxDomain(NetworkSettings.ADX_SERVER_DOMAIN_DEFAULT);

	// Set a custom ADX domain:
	AdformSDK.setAdxDomain("adxXXX.adform.net");

For more information feel free to contact support.

Clone this wiki locally