# Awin module

### How to Get Your Datafeed Download URL

1. If you don’t have an account on the **AWIN affiliate network**, [create one here](https://www.keywordrush.com/go/awin).
2. Navigate to **Toolbox → Create-a-Feed**.
3. Select your desired **language**, **categories**, **advertisers**, and other options, then click **Next**.
4. Copy the **generated feed URL** displayed at the bottom of the page.

<figure><img src="https://4254262503-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3fnB7iKYwDc1Xhr3H3%2Fuploads%2FixlqEhwNVPcdCkbS1uEZ%2Fimage.png?alt=media&#x26;token=2fd47b95-09e8-48bc-9222-0a988df1ce65" alt=""><figcaption></figcaption></figure>

### What Happens After Import

* All products from the datafeed will be imported into your site's **local database**.
* Once imported, you can **search and filter products** by keywords directly from your local database.
* Feed loading starts **in the background** automatically when you **activate** the module or **re-save its settings**.
* Please allow a few minutes for the feed to finish loading before using search features.

> **Note:** The feed will automatically re-sync each time you change the module settings.

#### Check for Feed Loading Errors

To ensure everything is working correctly, verify that **no errors occurred** during the feed import process.

![](https://4254262503-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3fnB7iKYwDc1Xhr3H3%2F-M8R7Uy7KyA-ZIlX1L7y%2F-M8RKZpqEjVC4_Q2KNo4%2Fimage.png?alt=media\&token=bbe56c3f-efa3-4644-8044-a34902f40ee8)

#### Important: Data Feed Size Warning

Large feeds can put significant strain on your server. For best performance:

* **Avoid importing extremely large feeds** (over 100,000 products).
* **Split feeds** by categories or advertisers when possible.
* Use multiple instances of the [**Feed Module**](https://ce-docs.keywordrush.com/modules/feed-modules) to manage separate datafeeds.

![](https://4254262503-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3fnB7iKYwDc1Xhr3H3%2F-M4t4IKRAVex6TdTbYgA%2F-M4t5OM5QEcRcqR4ZirE%2F2019-06-07_170849.png?alt=media\&token=da6816b0-8595-42df-8e22-4ca937e73571)

### Search Options

You can search imported products:

* By **keyword**
* Or by **direct link**

![](https://4254262503-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3fnB7iKYwDc1Xhr3H3%2F-M4t4IKRAVex6TdTbYgA%2F-M4t5a9y4204kqXjDazH%2F2019-06-07_173007.png?alt=media\&token=0df73def-bf49-47fe-b95f-0cd1f8a3bb6d)

### FAQ

#### I can download an advertiser's datafeed, but I'm not joined to them. How is that possible?

Awin has a **"soft membership"** policy.\
This applies to advertisers who:

* Have **auto-join** enabled for affiliate approvals, and
* Provide a valid datafeed.

You can access their feed even if you're not explicitly joined.\
If a sale is made using this feed, **you will still be credited** for the commission.

#### How can I manually update the local database without waiting for the automatic sync?

You can force a manual refresh:

1. Go to **Content Egg → Settings → Awin**.
2. Simply **resave the settings**.

This will clear the local database.\
The datafeed will be **automatically re-downloaded** the next time you perform a product search.

#### What happens if a product no longer exists after the feed update?

If a product is missing from the latest feed:

* Its **stock status** will be set to **"Out of Stock"** in the local database.

#### Why is the domain name or merchant logo missing or incorrect?

Some advertisers **don’t include original product URLs** in their feed.\
As a result, Content Egg can’t detect the correct domain or logo.

You can fix this using a custom mapping in your `functions.php` file:

```php
function my_awin_mapping( $pairs ) {
    $pairs['Cdiscount FR'] = 'cdiscount.com';
    $pairs['Darty FR']     = 'darty.com';
    return $pairs;
}

add_filter( 'cegg_awin_merchant_mapping', 'my_awin_mapping', 1 );
```

&#x20;     &#x20;
