Help
Optimise Media credentials
Where to find each Optimise Media credential Affilitera asks for, who can create it, and what each connection error means.
Last updated
Optimise Media connects with an API key from an Optimise Insights Service Account, your Agency ID and your publisher AID. The click-tracking domain from one of your own tracking links lets Affilitera build links.
API Key
The API key of an Optimise Insights Service Account. Affilitera sends it with every call to Optimise Media's API.
Where to find it
- In Optimise Insights, go to Manage → Account → Service Accounts.
- Create a Service Account and copy its API key.
Agency ID
The number of the Optimise Media region your publisher account belongs to, for example 1 for UK, 172 for MENA, 118 for SE Asia, 47 for ANZ or 131 for Global. Every call to Optimise Media is scoped to it.
Where to find it
The connection form explains this field in its placeholder.
Publisher ID (AID)
Your Optimise Media publisher ID, called the AID. It identifies you on campaign, conversion and payment calls, and goes into every tracking link.
Where to find it
- Open the user menu at the top right in Optimise.
- Your AID is near the bottom.
Click-Tracking Host
The domain at the start of your Optimise Media tracking links. It is separate from the API address, and different brands and regions use different domains, so it is taken from your own account.
Where to find it
- Open any tracking link generated in your Optimise account.
- Copy only its domain, without https:// or anything after it.
API Host
Optional. The address of Optimise Media's API. Leave it blank to use the standard address, unless Optimise Media assigns you a different host. If you do enter one, it must be a full https address.
Where to find it
The connection form explains this field in its placeholder.
Common errors
These are the messages a Optimise Media connection can show on its row in My Network, or after Test connection.
Optimise Media: apiKey not configured
The connection has no API key saved.
- Create a Service Account in Optimise Insights (Manage → Account → Service Accounts) and copy its API key.
- Paste it into API Key, save, then test again.
Optimise Media: agencyId not configured
The connection has no Agency ID saved.
- Enter the Agency ID of your region, for example 1 for UK.
- Save and test again.
Optimise Media: publisherId not configured
The connection has no publisher AID saved.
- Open the user menu at the top right in Optimise and copy your AID.
- Paste it into Publisher ID (AID), save, then test again.
Optimise Media: credentials not configured
A sync ran without one of the values it needs. Program syncs also need the Click-Tracking Host.
- Check that API Key, Agency ID, Publisher ID (AID) and Click-Tracking Host are all saved.
- The next sync uses them.
Optimise Media: apiHost is not a valid URL ("…")
The API Host saved is not a web address.
- Clear API Host to use the standard address, or enter the full https address Optimise Media gave you.
- Save and test again.
Optimise Media: apiHost must be an https URL ("…")
The API Host saved does not start with https.
- Clear API Host, or enter the address starting with https://.
- Save and test again.
Optimise Media API HTTP … — …
Optimise Media refused the request. When the number is 401 or 403, the API key was not accepted, or it does not match the Agency ID or AID saved.
- Check the API key of your Service Account in Optimise Insights.
- Check that Agency ID and Publisher ID (AID) belong to the same account.
- Save and test again.
What each status on the connection means
Credentials rejected
Optimise Media refused the saved credentials. They were mistyped, regenerated or revoked on the Optimise Media side, or belong to a user who has lost access.
- Open the connection and choose Update credentials.
- Copy each value again from Optimise Media, using the steps in the field sections above, and save.
- Test the connection. The next sync uses the new values.
Credentials expired
A token Optimise Media issues for a limited time, or for one use only, is no longer valid.
- Create a new token in Optimise Media as described in the field section above.
- Save it on the connection and test again.
Credential missing
A value the connection needs has not been saved, so Affilitera cannot call Optimise Media at all.
- Open the connection and choose Update credentials.
- Fill in every required field and save.
API access off
Optimise Media accepted the credentials but refused the data. API or reporting access is not switched on for this account or site on the Optimise Media side.
- Switch on API or reporting access in Optimise Media (see the setup notes in the field sections above).
- Test the connection again. Nothing needs changing in Affilitera.
Account mismatch
The saved values come from different Optimise Media accounts, for example an ID from one account and a key from another.
- Sign in to the one Optimise Media account you want to connect.
- Copy every value from that same account, save, and test again.
Token save pending
Optimise Media issued a new token and Affilitera could not save it yet. This usually clears on its own at the next sync.
- Wait for the next sync.
- If the message stays, create a new token in Optimise Media and save it on the connection.
Check credentials
Optimise Media refused the connection with a message Affilitera does not recognize.
- Check each saved value against Optimise Media, using the field sections above.
- Save and test again. If it still fails, contact support and quote the message shown on the connection.