Set up the AWIN interface

Connect affiliate-toolkit to AWIN: add your feed list URL, activate advertisers as sub shops, import their feeds and embed the products.

This guide connects affiliate-toolkit to AWIN. You add one AWIN shop, pick the advertisers you want to promote and affiliate-toolkit imports their product feeds. After that, you can search the feeds in the backend, embed products and lists and show AWIN merchants in your price comparison.

You need:

  • affiliate-toolkit with the AWIN module installed and activated. The module is included in every pass; see Installation of affiliate-toolkit.
  • An AWIN publisher account and at least one advertiser that has accepted you and provides a product feed.
  • The PHP option allow_url_fopen enabled on your server. affiliate-toolkit needs it to download the feeds.

Copy the feed list URL

AWIN has no product API for regular publishers, so affiliate-toolkit works with the product feeds instead. The entry point is the feed list URL, a link to the list of all feeds you have access to.

Log in to AWIN and open Toolbox → Create-a-Feed.

The Toolbox menu in the AWIN publisher interface with the Create-a-Feed entry
Create-a-Feed in the AWIN toolbox

On that page you find the Feed List URL. Select and copy the complete URL.

The Feed List URL on the Create-a-Feed page in AWIN
The feed list URL in AWIN

You do not have to choose any columns in Create-a-Feed. affiliate-toolkit requests the columns it needs (title, prices, EAN, images, deep link, availability and more) from each advertiser feed itself.

Requirements for your server

affiliate-toolkit downloads each advertiser feed as a CSV file and imports it into its own database table. Keep these limits in mind:

  • Database size: a feed of 1 GB takes roughly 1 GB in your database. Some hosts limit the database size, so check this before you activate large advertisers.
  • AWIN download limits: AWIN allows at most 5 simultaneous download requests and at most 5 downloads of the same feed within one hour.
  • allow_url_fopen: without it, the shop shows the message that this PHP setting should be enabled and no feed can be read.

Create the AWIN shop

  1. Go to affiliate-toolkit → Shops and click Add new Shop.
  2. Enter a title. It is only used in the backend.
  3. Select AWIN Feed as Data supplier.
  4. Paste the link into Feed List URL and click Publish. affiliate-toolkit reads the feed list and shows every advertiser with an active membership under Subshops.
  5. Tick the advertisers you want to use (or Select all) and save again. Each selected advertiser becomes a sub shop of its own.
The AWIN shop with the feed list URL, image sizes and the list of advertiser feeds that can be activated as sub shops.
The AWIN shop with its advertisers

Fields of the AWIN shop

FieldDescription
Feed List URLThe link from Create-a-Feed. Do not shorten it.
Use merchant id as unique id (recommended)Identifies products by the advertiser's own product number instead of the AWIN product ID. Some advertisers change the AWIN product ID from time to time, so this option keeps your products matched.
Modify URLNone, &cons=0 or &cons=1. The parameter is added to every AWIN link and tells AWIN whether the visitor consented to tracking. Details are in AWIN's consent framework documentation.
Small image size / Medium image sizeWidth in pixels for small and medium product images. If you leave them empty, 75 px and 160 px are used.
SubshopsThe advertisers from your feed list. Only advertisers with an active membership appear here, each with feed name and number of products.
Display shop logoShows the logo of the advertiser instead of its name in your boxes and the price comparison.
Automatic loading of offers for price comparisonSearches the feeds for further offers of your products by EAN, GTIN and ISBN and adds them to the price comparison.

Decide on Use merchant id as unique id before you import products. If you change it later, affiliate-toolkit can no longer find the products you already imported.

Import the advertiser feeds

Every activated advertiser is listed as a sub shop under affiliate-toolkit → Shops, together with its parent shop. As long as its feed has not been loaded, the sub shop is marked in orange with Download & Import required.

The activated AWIN advertisers (Kaffeeland, Klangraum, TechPunkt) as sub shops with their parent shop.
AWIN advertisers as sub shops

You have two ways to load the feed:

  • Wait for the cronjob. It downloads and imports due feeds in the background, the ones that were never imported first. This is the recommended way, especially for large feeds.
  • Import manually. Open the sub shop, tick Download & Import AWIN-files now and save. This runs in your browser request and can hit a timeout with large feeds.

When the import has finished, the sub shop shows Updated on with date and time and the number of imported lines.

If you get a server error 500 during a manual import, the import usually ran into a time limit. Not all products may be available yet; the cronjob picks the feed up again later.

The cronjob downloads each feed again in the interval set under affiliate-toolkit → Settings → General settings → AWIN Import intervall: 6 hours, 12 hours, 1 day (default), 3 days or 1 week. Make sure the cronjob runs, see How to set up the cronjob for updates.

Database table and files

For every sub shop, affiliate-toolkit creates a database table named {prefix}atkp_awin_{shop ID}, for example wp_atkp_awin_1234. The downloaded feed is stored as {shop ID}.csv in the folder /wp-content/uploads/affiliate-toolkit/.

When you move a sub shop to the trash, its table and CSV file are deleted as well.

Import products in the backend

Open affiliate-toolkit → Product import and select the AWIN sub shop of the advertiser. You can search its feed by keyword, EAN, GTIN or ISBN.

The product import searching the feed of the AWIN merchant Kaffeeland for
Searching an AWIN feed in the product import

Tick the products you want and import them. From then on, they are updated from the feed after every import. A full walkthrough is in How to import and display your first product.

Create search lists

A list is a group of products. AWIN shops support search lists and advanced search lists, both based on the imported feed. How to create and embed lists is explained in How to import and display your first list.

To place a product box or list on a page, use the shortcode generator or the block editor; all options are listed in affiliate-toolkit WordPress shortcodes.

Why does the shop list no advertisers after saving?

Only advertisers with an active membership are listed. Check in AWIN that the advertiser has accepted you and offers a product feed, and that the feed list URL is complete. If the status shows a message about allow_url_fopen, ask your host to enable this PHP option.

How often are AWIN prices updated?

As often as the feeds are downloaded again, once a day by default. You can set the interval between 6 hours and 1 week under Settings → General settings. AWIN itself updates the feeds on its own schedule.

Why is a sub shop still marked "Download & Import required"?

The feed has not been imported yet. Either the cronjob has not reached this sub shop or it is not running. Start the import manually in the sub shop or check your cronjob.

Can I use AWIN feeds with the CSV module instead?

Yes, the CSV interface can import single AWIN feeds as well. The AWIN module is more convenient because it reads all your advertisers from one feed list URL and creates the sub shops for you.