# Mapping Ad Groups / Ad Sets to Sales Channels &  Products

You can customise the mapping of ad groups / ad sets from your connected Google Ads, Facebook Ads and TikTok Ads accounts, to specific channels of your store and products.

{% hint style="info" %}
By default, AnyX sets the following mappings when you connect an advertisement platform:

* Google Ads -> To Shopify store across Products\* following the proportional distribution below
* Facebook Ads -> To Shopify store across Products\* following the proportional distribution below
* TikTok Ads -> To TikTok Shop across Products\* following the proportional distribution below&#x20;
{% endhint %}

**Mapping Ad Sets**

1. From a 'single-store' view, click on Data Source and select your connected advertisement platform

<figure><img src="https://147424774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkq0WPsUE0E8vFc2yPr%2Fuploads%2FLIpTmX4Hd4W1fSCej4b0%2Fimage.png?alt=media&#x26;token=7f7ea84b-e09e-4685-95e3-ffb7eecead66" alt=""><figcaption></figcaption></figure>

<figure><img src="https://147424774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkq0WPsUE0E8vFc2yPr%2Fuploads%2F3YoyFcahFW13EWlw233E%2Fimage.png?alt=media&#x26;token=a2827370-a16c-4846-a2d3-69a961ff104a" alt=""><figcaption></figcaption></figure>

2. On the page, click on Mapping tab

<figure><img src="https://147424774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkq0WPsUE0E8vFc2yPr%2Fuploads%2FJN0TZWX3a6lsWOdZjPCC%2Fimage.png?alt=media&#x26;token=ab35f80b-8361-4a7a-b488-16cb6e358819" alt=""><figcaption></figcaption></figure>

3. Select the campaign to review the ad group / ad sets for which you are looking to map. To map an entire campaign, you would have to select all ad groups / ad sets within a campaign.

<figure><img src="https://147424774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkq0WPsUE0E8vFc2yPr%2Fuploads%2F3fzi4VR6poqJ6FwYEBPW%2Fimage.png?alt=media&#x26;token=8fb7c688-81ed-464d-bcca-a6960d884b07" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
When mapping mutiple ad groups or ad sets within a campaign, it will overwrite any previously set mapping.
{% endhint %}

4. Select the sales channel or channels, product or products to apply the mapping of these ad groups / ad sets to

<figure><img src="https://147424774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkq0WPsUE0E8vFc2yPr%2Fuploads%2F66vOQoia9VePa7USO4rp%2Fimage.png?alt=media&#x26;token=4c189480-e4f4-4782-95ee-f6d2c85eb8e2" alt=""><figcaption></figcaption></figure>

5. If All Products are selected for product mapping - the ad groups / ad sets costs and attributed revenue from the platforms, are mapped to all existing products and also future products added to your channel.

<figure><img src="https://147424774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkq0WPsUE0E8vFc2yPr%2Fuploads%2F6yT7a9SMsodP9Ufmyh6Z%2Fimage.png?alt=media&#x26;token=afba6ffa-c943-4eb6-8dcf-38892cd7d7eb" alt=""><figcaption></figcaption></figure>

6. If you choose to map against specific products, you will have to select and Add specific products to the list.

<figure><img src="https://147424774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkq0WPsUE0E8vFc2yPr%2Fuploads%2F4fpvIlwsHlSLWU2XZFlf%2Fimage.png?alt=media&#x26;token=f35c8de5-ae55-4355-b6ea-53dabaca9442" alt=""><figcaption></figcaption></figure>

<figure><img src="https://147424774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkq0WPsUE0E8vFc2yPr%2Fuploads%2FbOlcTk5CX82uowjFDYvp%2Fimage.png?alt=media&#x26;token=028081b6-890d-4890-be51-9489133acc69" alt=""><figcaption></figcaption></figure>

7. Once you have made your selection on setting ad groups / ad sets to your channel(s) and product(s) click the "Save" button to complete the mapping setting.

{% hint style="info" %}
**How AnyX distributes attributed revenue and advertising expenses from connected ad platforms to your selected sales channels and products?**
{% endhint %}

**Revenue from Advertising**

From the total Revenue via Ads data as received from the connected ad platform (Google Ads, Facebook Ads) - AnyX proportionally distributes it based on total sales from your selected set channel(s) and / or product(s), for the given duration of the campaign.

**Advertising Expenses (Costs)**

The total advertising costs from the ad groups / ad sets are divided equally between your selected set channel(s) and / or product(s), , for the given duration of the campaign.
