<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Complex Logic

[ad_1]

Replies: 1

Hi,

I’m asking for your help in implementing the algorithm for displaying ads.

Right now the algorithm is as follows:

[ADINSERTER CHECK countries="G1"]

[ADINSERTER VIEWPORT="Desktop"]

AdCode_for_G1_desktop

[ADINSERTER VIEWPORT="Phone"]

AdCode_for_G1_mobile


[ADINSERTER CHECK countries="^G1"]


[ADINSERTER ROTATE name="Ad1"]

[ADINSERTER VIEWPORT="Desktop"]

AdCode_for_non-G1_desktop_Rotation-1

[ADINSERTER VIEWPORT="Phone"]

AdCode_for_non-G1_mobile_Rotation-1


[ADINSERTER ROTATE name="Ad2"]

[ADINSERTER VIEWPORT="Desktop"]

AdCode_for_non-G1_desktop_Rotation-2

[ADINSERTER VIEWPORT="Phone"]

AdCode_for_non-G1_mobile_Rotation-2

I need to insert an additional ad code (let’s call it AddonAdCode).

Insertion options and related questions are as follows, and I’ll start by shortcode priority:

Where should AddonAdCode be inserted so that it is inserted regardless of the CHECK countries shortcode, that is, in both G1 and ^G1?

Where should AddonAdCode be inserted so that it is inserted regardless of the ROTATE shortcode, i.e. in both Ad1 and Ad2?

Where should the AddonAdCode be inserted so that it is inserted regardless of the VIEWPORT shortcode, i.e. in both Desktop and Phone (for example, in the ^G1 –> Ad2 section)?

Thank you in advance for your reply.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer