• Resolved Nikonn

    (@nikonn)


    Hello. There is a problem with the encryption of the advertising code. After inserting the advertising code into the block, the plugin encrypts it into a base64 code or another, and when viewing the page code, it cannot be found, only by the block ID. How can I disable encryption?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Nikonn

    (@nikonn)

    on the experimental site, the code is set as expected [BLOCK_NUMBER] – [BLOCK_VERSION_NAME] – <div class=’code-block code-block-center code-block-7′>,

    and on the working site, the code is changed – <div class=’ai-viewports ai-viewport-2 ai-viewport-3 ai-insert-8-91713747′ style=’margin: 8px auto; text-align: center; display: block; clear: both;’ data-insertion-position=’prepend’ data-selector=’.ai-insert-8-91713747′ data-insertion-no-dbg data-code=’…….’ data-block=’8′></div>

    Plugin Author Spacetime

    (@spacetime)

    Hello,

    when the insertion is set to client-side the code is not encrypted, it is only base64 encoded to be stored as a string in an attribute. When the block content is inserted, this attribute is decoded and the code is inserted as configured.

    When the block is configured to be inserted server-side, the block code is inserted as it is.

    Thread Starter Nikonn

    (@nikonn)

    Then please tell me how best to configure for insertion – on the server side or on the client side? The problem is that the advertising network does not see its code and believes that it does not exist. Where are the pros and cons when inserting – on the server side or on the client side?

    Thread Starter Nikonn

    (@nikonn)

    Even when I set the option – download on the server side, the block is still encoded in base64.

    Plugin Author Spacetime

    (@spacetime)

    The right insertion type depends on the website and your needs. Check the explanation here:
    https://adinserter.pro/documentation/plugin-settings#dynamic-blocks

    Download has nothing to do with insertion type. If you need to have ad codes present on the server-side generated HTML page, then they need to be inserted server-side (when the page is geenrated). For this you need to use only settings that insert the code server-side – make sure there is no caching enabled otherwise dynamic functions functions (e.g. rotation) may not work. For server-side insertion you need to set Dynamic blocks to Server-side, do not use client-side insertion at HTML elements, do not use client-side device detection, do not use timed rotation,…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Encryption of the advertising code’ is closed to new replies.