AAffilitera Help

Help

Rakuten Advertising credentials

Where to find each Rakuten Advertising credential Affilitera asks for, who can create it, and what each connection error means.

Last updated

Rakuten Advertising connects with an API credential (Client ID and Client Secret) from Rakuten's developer portal, your Site ID and your encrypted Affiliate ID. A separate Security Token adds payment history from Advanced Reports.

Client ID

The Client ID of an API credential in Rakuten's developer portal. With the Client Secret and your Site ID, Affilitera gets a token for every Rakuten API call.

Where to find it

  1. Sign in at developers.rakutenadvertising.com.
  2. Open Account → Applications.
  3. Create an API credential.
  4. Copy its Client ID.

Client Secret

The Client Secret of the same API credential as the Client ID. Rakuten checks the two together when Affilitera asks for a token.

Where to find it

  1. In developers.rakutenadvertising.com, open Account → Applications.
  2. Copy the Client Secret of the same credential you took the Client ID from.

Site ID

Your Rakuten Site ID (SID), a number. Affilitera sends it when it asks Rakuten for a token.

Where to find it

  1. Sign in to the Publisher Dashboard at publisher.rakutenadvertising.com.
  2. Read the SID shown at the top right.

Affiliate ID (Encrypted ID)

Your 11-character encrypted Affiliate ID. Affilitera puts it in every Rakuten tracking link. It is not the same as your Site ID, and the Site ID cannot stand in for it.

Where to find it

  1. In the Publisher Dashboard, open Advertisers → My Advertisers.
  2. Pick a link and choose Get Link → View Code.
  3. Copy the 11-character value after id=.

Security Token (Advanced Reports)

The Security Token for Rakuten's Advanced Reports. Affilitera uses it only to read your payment history. It is not the Web Services token and not the Bearer token.

Where to find it

  1. In the Publisher Dashboard, click APIs in the page footer.
  2. Open the Manage Tokens tab.
  3. Copy the Security Token.

SFTP host

Optional. Rakuten's product-catalogue server, aftp.linksynergy.com unless Rakuten told you otherwise.

Where to find it

Optional. Rakuten's catalogue server is aftp.linksynergy.com; change it only if Rakuten gave you a different one.

Protocol

Optional. How Affilitera connects to the catalogue server. Leave it on SFTP: Rakuten recommends SFTP and is retiring plain FTP.

Where to find it

Leave on SFTP. Rakuten recommends SFTP and is retiring plain FTP.

Choices: SFTP (recommended), FTP (Rakuten is retiring plain FTP)

SFTP username

Optional. The SFTP username Rakuten support sends you for your product catalogue files. See "FTP login" below for how to ask for it.

Where to find it

The connection form explains this field in its placeholder.

SFTP password

Optional. The SFTP password that goes with the username. It is saved encrypted and never shown again; use Test FTP connection to check it.

Where to find it

Saved encrypted. It is never shown again, not even to you: type a new one to replace it, or use the bin icon to remove it. With these saved, products are read from Rakuten's catalogue files instead of its product search API.

FTP login

Optional. With your Rakuten catalogue SFTP login saved, Affilitera reads each of your approved advertisers' product catalogues as one file from Rakuten's catalogue server instead of searching it page by page through Rakuten's API, so large catalogues are read in full every day. Without one, nothing changes.

Why FTP

Rakuten's product search returns a catalogue a page at a time under an hourly request limit, so a very large catalogue can take more than a day to read that way. Over SFTP each advertiser's catalogue is one file, read in full every day, with a daily file of changes in between; only the products that changed are written.

Get your FTP login from Rakuten Advertising

  1. Email Rakuten Advertising's publisher support and ask for SFTP access to your product catalogue files. Give them your Rakuten username and your Site ID.
  2. Rakuten replies with an SFTP username, a password and the account's server address. You send this email yourself: Affilitera never contacts Rakuten for you.
  3. Make sure each advertiser whose products you want has approved you for its Product Catalog — Rakuten publishes a file only for those.
  4. Enter the username and password in this connection's SFTP username and SFTP password, leave Protocol on SFTP, and save.

Host: aftp.linksynergy.com — already filled in. Change it only if Rakuten's reply names a different server.

Protocol: SFTP. Rakuten recommends SFTP and is retiring plain FTP; choose FTP only if Rakuten tells you to.

What Test FTP connection checks

Test FTP connection logs in with the details in the form (or the saved password, on the saved server) and lists the catalogue files your login can see, one per advertiser. It shows how many it found, or the exact message Rakuten's server answered. It downloads nothing and changes nothing.

Without an FTP login

Without an SFTP login the connection still works: products are read through Rakuten's product search, as before. Only very large catalogues are slower.

Common errors

These are the messages a Rakuten Advertising connection can show on its row in My Network, or after Test connection.

Rakuten: clientId not configured

The connection has no Client ID saved.

  1. Copy the Client ID from developers.rakutenadvertising.com → Account → Applications.
  2. Paste it into Client ID, save, then test again.

About Client ID

Rakuten: clientSecret not configured

The connection has no Client Secret saved.

  1. Copy the Client Secret of the same API credential.
  2. Paste it into Client Secret, save, then test again.

About Client Secret

Rakuten: siteId not configured

The connection has no Site ID saved.

  1. Read your SID at the top right of the Publisher Dashboard.
  2. Paste it into Site ID, save, then test again.

About Site ID

Rakuten: OAuth credentials not configured

A sync ran without the Client ID, Client Secret or Site ID saved.

  1. Save Client ID, Client Secret and Site ID on the connection.
  2. The next sync uses them.

About Client ID

About Client Secret

About Site ID

Rakuten: affiliateId not configured — cannot build tracking links (siteId is not a substitute)

The connection has no encrypted Affiliate ID, so tracking links cannot be built. Brands are not updated, so no wrong links are saved.

  1. In the Publisher Dashboard, open Advertisers → My Advertisers, pick a link and choose Get Link → View Code.
  2. Copy the 11-character value after id= into Affiliate ID and save.

About Affiliate ID (Encrypted ID)

Rakuten: securityToken not configured — required for Advanced Reports payment history

Payment history comes from Rakuten's Advanced Reports, which needs the Security Token, and none is saved.

  1. In the Publisher Dashboard, click APIs in the page footer and open the Manage Tokens tab.
  2. Copy the Security Token into Security Token (Advanced Reports) and save.

About Security Token (Advanced Reports)

Rakuten OAuth failed (…): …

Rakuten refused to give a token for the saved Client ID, Client Secret and Site ID. The number in brackets is Rakuten's answer, followed by its own words.

  1. Check that the Client ID and Client Secret come from the same API credential in Account → Applications.
  2. Check that the Site ID is the SID shown in your Publisher Dashboard.
  3. Save the corrected values and test again.

About Client ID

About Client Secret

About Site ID

Rakuten Advanced Reports (/advancedreports/1.0, reportid=1) answered with a body that is not JSON…: …

Rakuten's Advanced Reports did not return payment data. Its own words follow the colon. A rejected Security Token reads differently from a missing setting, so read them first.

  1. If Rakuten's words point at the token, copy the Security Token again from APIs → Manage Tokens.
  2. Make sure it is the Security Token, not the Web Services token.
  3. Save it and wait for the next sync.

About Security Token (Advanced Reports)

What each status on the connection means

Credentials rejected

Rakuten Advertising refused the saved credentials. They were mistyped, regenerated or revoked on the Rakuten Advertising side, or belong to a user who has lost access.

  1. Open the connection and choose Update credentials.
  2. Copy each value again from Rakuten Advertising, using the steps in the field sections above, and save.
  3. Test the connection. The next sync uses the new values.

Credentials expired

A token Rakuten Advertising issues for a limited time, or for one use only, is no longer valid.

  1. Create a new token in Rakuten Advertising as described in the field section above.
  2. Save it on the connection and test again.

Credential missing

A value the connection needs has not been saved, so Affilitera cannot call Rakuten Advertising at all.

  1. Open the connection and choose Update credentials.
  2. Fill in every required field and save.

API access off

Rakuten Advertising accepted the credentials but refused the data. API or reporting access is not switched on for this account or site on the Rakuten Advertising side.

  1. Switch on API or reporting access in Rakuten Advertising (see the setup notes in the field sections above).
  2. Test the connection again. Nothing needs changing in Affilitera.

Account mismatch

The saved values come from different Rakuten Advertising accounts, for example an ID from one account and a key from another.

  1. Sign in to the one Rakuten Advertising account you want to connect.
  2. Copy every value from that same account, save, and test again.

Token save pending

Rakuten Advertising issued a new token and Affilitera could not save it yet. This usually clears on its own at the next sync.

  1. Wait for the next sync.
  2. If the message stays, create a new token in Rakuten Advertising and save it on the connection.

Check credentials

Rakuten Advertising refused the connection with a message Affilitera does not recognize.

  1. Check each saved value against Rakuten Advertising, using the field sections above.
  2. Save and test again. If it still fails, contact support and quote the message shown on the connection.
Was this helpful?