Ana içeriğe geç

Connecting Yandex Direct

Qubix reads Yandex Direct through an application that you register in Yandex yourself. The Connection tab of the Yandex Direct window holds three groups for it: Yandex application, Connect an account and Connected accounts. The ID and the password of the application and the access keys of the accounts are kept on your own server.

Before you start​

  • The window needs the permission Servis anahtarlarını yönet.
  • You need a Yandex login that has access to the Direct account you connect.
  • The application is registered on oauth.yandex.ru. The hint of the group says: Create an application on oauth.yandex.ru with access to the Yandex Direct API (direct:api) and paste its ClientID and Client secret.

Step 1 — Save the Yandex application​

  1. In the group Yandex application, copy the address from the line Redirect URI. The hint under it says: Enter this address in the Redirect URI field of the application on oauth.yandex.ru. The address is selected with one click.
  2. On oauth.yandex.ru create the application with access to the Yandex Direct API and paste that address into its Redirect URI field.
  3. Copy the ID of the application into the field ClientID and its password into the field Client secret. Both are 32 characters: digits and the letters a to f, in any letter case. The password field shows dots as you type; once a password is saved, the field shows four dots and the last four characters of the saved password as a reminder.
  4. Click Kaydet. The button turns active when the ClientID field holds text, and reads Kaydediliyor… during the save.

An unsuitable value shows its reason in red under the fields: the ID or the password of another form, or an empty password for a new ID. To change the ID, enter the password together with it; to keep the saved password, leave the password field empty and the ID as it is.

Remove the application​

The button Remove application stands beside Kaydet once an application is saved. A question asks Remove the Yandex application? and confirms with Sil. While accounts are connected, the button is disabled and its tip says Disconnect all accounts first. The access keys of the accounts are renewed with the application, so the application stays until every account is disconnected.

Step 2 — Connect an account​

The group Connect an account opens once the application is saved; before that it says Save the Yandex application first.

  1. In the row Allow access, click Open Yandex page. Yandex opens in a new browser tab. The hint says: Sign in to Yandex with the Direct login of the account and click “Allow”. Yandex asks every time and lets you pick the account, so a second account connects in the same way.
  2. Allow access. Yandex shows a confirmation code.
  3. Paste the code into the field Confirmation code (Paste the code Yandex showed after you allowed access.).
  4. Click Connect. The button reads Connecting… while Qubix talks to Yandex, and turns active once the field holds text.

The new account appears in the group Connected accounts. A code serves once and lives ten minutes. A wrong, used or older code shows a red line under the fields, and a new code from the Yandex page fits. Connecting an account that is connected already replaces its access key and keeps its sync settings.

The red line also carries the other answers of Yandex in words: the application is rejected, the application waits for the approval of access to the Direct API, Yandex Direct refused access to the account (with its error code and message), or Yandex is silent for the moment, and the text asks to try again in a few minutes.

The list of connected accounts​

The group Connected accounts holds a table of connected accounts; an empty table says Connected accounts appear here.

ColumnWhat it shows
LoginThe login of the account. A warning line stands under it when the account was connected through another application: Connected through another application — connect it again
AdThe name of the account; a dash stands for an unnamed account.
TürAdvertiser or Agency.
CurrencyThe currency of the account.
ClientsFor an agency: the login and the name of each client; a dash for an advertiser.
Connected byThe name of the person who connected the account.
Connected onThe date and time of the connection, in your time zone.
Access untilThe date when the access key ends.
SyncThree lines: the interval, the recount, VAT. A click opens the settings — see Sync of an account.
The last columnThe button Disconnect.

A click on a row opens the same settings as a click on the column Sync.

The access key is renewed with the password of the application before it ends, so the date in Access until moves forward by itself. When Yandex withdraws the key, or the application changed after the account was connected, the next action on the account asks to connect it again: the answer says that the access to the Direct account has ended and names the tab Connection. A person who holds the permission Servis anahtarlarını yönet gets the way to the tab, and every other person is asked to turn to an administrator.

Disconnect an account​

  1. In the row of the account, click Disconnect.
  2. A question names the login and says that the sync of the account stops: Disconnect the account …? Its sync stops. (the dots stand for the login). Confirm with Disconnect.

The button reads Disconnecting… during the call. The access key leaves your server. The campaigns, ads and spend that came earlier stay in Qubix, and the account stands on the Accounts tab with the state disconnected. A failed call shows its reason in red above the table.

Agency

Connect the account of the agency once: every client of the agency becomes an account in the list, and the sync settings of the agency apply to all of them. The list of clients is refreshed every night.

What's next​