---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.4
alternate:
  - https://yandex.com/support/adfox/en/monetization/google.md
  - https://yandex.com/support/adfox/ru/monetization/google.md
  - href: en/monetization/google.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/adfox/en/llms.txt

# Connecting Google with automatic prediction of bids

In Dynamic Monetization (DM), you can connect an external Google monetization platform (ADX or DFP) with automatic prediction of bids.


{% note alert %}

1. DM doesn't support:

    - Measuring campaigns.
    - Session campaigns.
    
1. On placements where there is a campaign with an external Google monetizer set in DM, it is not recommended to use:

    - session campaigns;
    - campaigns with the industry specified to distinguish them from other campaigns;
    - Campaigns with sequential impressions.
    
    In addition, we don't recommend setting the _unrepeatable banners or campaigns_ type for these placements.

{% endnote %}


1. Go to **Monetization** → **Placements** → **External monetization settings** → **Google** → **Presets** and click **Add**. A preset is a set of Google ADX or Google DFP `Slot IDs`, for each of which the CPM threshold is set in the Google interface.

   For each slot in the Adfox preset, specify the same CPM value as in Google, which this slot will use to participate in the auction.
    
   You may have no more than 100 presets in your account with no more than 1000 lines/slots in each preset.
    
1. Select a template:
    
      {% list tabs %}
      
      - Google ADX
      
         1. Specify the preset parameters:

            - **Set name**: An arbitrary name for a set of slot settings.
            
            - **Width**, **Нeight**: Specify the width and height of a banner placement in pixels as an integer without specifying its dimensions.
            
            - **Customer ID**: Specify your Google account ID with the **ca-pub-** prefix.
            
            - **Maximum number of re-requests**: The maximum possible number of Google code downloads with a new slot per page. Recommended value: 1.
            
            - <!-- source: en/_includes/monetization/dm2/currency-description.md -->
              **Currency**: Specify the currency that the CPM thresholds will be set in. You can choose RUB, USD, EUR, and others.
              <!-- endsource: en/_includes/monetization/dm2/currency-description.md -->
            
              <!-- source: en/_includes/monetization/dm2/currency-note.md -->
              {% note info %}

              The currency that you use to set the thresholds is not the [currency of your payments](https://yandex.com/support/partner/payments.html?lang=en). You can find out about the payments of other monetizers included in dynamic monetization from the reference materials of third-party advertising systems.

              {% endnote %}
              <!-- endsource: en/_includes/monetization/dm2/currency-note.md -->
         
         1. Add slots in one of the following ways:

            - Manually: Click **Add**, fill out the form, and then click **Save**.

            - In CSV format: Click **Download CSV example** to get a CSV file template, fill in its fields, save the file, and upload it to the Adfox interface by clicking **Upload CSV** → **Save**.
            
            If you need to add more slots to the list, first save the CSV file, add new values to it, and then upload it to Adfox.
            
            If the ID of the saved slot and the ID from the uploaded CSV file match, a new value from the CSV file is applied to the slot.
         
         1. Fill in the fields:

            - `ID`: Specify any value that is unique within the file. We recommend using an increment of 1 up to the number of slots.
         
            - `Tag ID (the Slot column in the CSV file)`: The slot ID from the Google interfaces.
         
            - `Bid floor CPM (the CMP column in the CSV file)`: The CPM value from Google.
         
            - `Real eCPM (The real_cost column in the CSV file)`: The CPM value that takes into account the block's viewability.
      
      - Google DFP
      
         1. Set the preset parameters:
         
            - **Set name**: An arbitrary name for a set of slot settings.
            
            - **Width**, **Нeight**: Specify the width and height of a banner placement.
            
            - **Targeting variable name**: Since the CPM value in DFP is set via user targeting, create a Key Value in DFP and specify the name of this Key Value in this field.
            
            - **Ad Unit**: The DFP Ad Unit ID.
            
            - **Maximum number of re-requests**: The maximum possible number of Google code downloads with a new slot per page. Recommended value: 1.
            
            - <!-- source: en/_includes/monetization/dm2/currency-description.md -->
              **Currency**: Specify the currency that the CPM thresholds will be set in. You can choose RUB, USD, EUR, and others.
              <!-- endsource: en/_includes/monetization/dm2/currency-description.md -->
            
              <!-- source: en/_includes/monetization/dm2/currency-note.md -->
              {% note info %}

              The currency that you use to set the thresholds is not the [currency of your payments](https://yandex.com/support/partner/payments.html?lang=en). You can find out about the payments of other monetizers included in dynamic monetization from the reference materials of third-party advertising systems.

              {% endnote %}
              <!-- endsource: en/_includes/monetization/dm2/currency-note.md -->
         
         1. Add slots in one of the following ways:
         
            - Manually: Click **Add**, fill out the form, and then click **Save**.

            - In CSV format: Click **Download CSV example** to get a CSV file template, fill in its fields, save the file, and upload it to the Adfox interface by clicking **Upload CSV** → **Save**.

            If you need to add more slots to the list, first save the CSV file, add new values to it, and then upload it to Adfox.
            
            If the ID of the saved slot and the ID from the uploaded CSV file match, a new value from the CSV file is applied to the slot.
            
         1. Fill in the fields:
            
            - `ID`: Specify any value that is unique within the file. We recommend using an increment of 1 up to the number of slots.
            
            - `Targeting variable value (the targeting_value column in the CSV file)`: The Key Value that the corresponding CPM is set for.
            
            - `Bid floor CPM (the CMP column in the CSV file)`: The CPM value from Google.
            
            - `Real eCPM (The real_cost column in the CSV file)`: The CPM value that takes into account the block's viewability.
         
      {% endlist %}

1. Linking a preset to a placement:

   Go to **Monetization** → **Display Advertising** → **Placement** where, in addition to the standard configuration of Yandex Advertising Network ad units, you can link presets to placements.
    
   You can link a preset to all placements with a certain type of banner/placement within a site or to individual sections.
    
   {% note info %}
    
   When linking a preset to a placement, a campaign with the Google monetizer is automatically added to the interface and the necessary banners are created. Therefore, you don't need to add a campaign and banners manually.
    
   {% endnote %}
    
1. In the Google interface, we recommend adding a passback tag to return to selecting campaigns in Adfox.
    
    {% cut "A passback tag that allows returning to Adfox campaign selection" %}
    
    If you didn't select the banner to serve, you can return the selection of campaigns in Adfox to the dynamic monetization level, but it won't take into account the campaign with the Google monetizer.
    
    {% list tabs %}
    
    - For Google ADX
    
        Set the following URL as **backup ads**:
    
        ```
        https://yastatic.net/pcode/adfox/adfox-adx-stub.html
        ```
    
    - For Google DFP
    
        Add the following code to ads:
        
        ```html
        
        ```
    
       ![](../_images/monetization/backup-dfp.png){style="border: solid 1px #cccccc; max-width=700px"}
    
    {% endlist %}
    
    {% endcut %}
    
<!-- source: en/_includes/feedback.md -->
## Contact support


<a href="en/form"> <!--ссылка, куда ведет кнопка. Если внутренняя ссылка, пишем без .md и .html --> 
  <span class="button">Send an email</span> <!--текст на кнопке--> 
</a>



<!-- source: en/_includes/styles/button.md -->

<!-- endsource: en/_includes/styles/button.md -->
<!-- endsource: en/_includes/feedback.md -->


