• Resolved Sam Reichgott, LMT

    (@samrockingoodhealthcom)


    I am new to Ad Inserter, and having difficulty understanding documentation on rotation groups.

    Would someone please show an example of actual block code to:
    * define a rotation group (documentation is sketchy here)
    * include a rotation group in a block (I think I understand this)

    I will keep experimenting, but a sample group definition and block that rotates groups would be very helpful.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Spacetime

    (@spacetime)

    Before I explain I would like to be sure this is what you need.
    Ad rotation groups (multiple positions for ad rotation) are rarely used.

    In most cases normal ad rotation for single ad position is used.

    Therefore I suggest to first explain what exactly do you need.

    Thread Starter Sam Reichgott, LMT

    (@samrockingoodhealthcom)

    Thanks for the reply. Here’s the goal.
    I would like to define groups, each of which contains multiple ads from a single vendor. Separate groups for separate vendors. This, I believe, will make it easier if I want to add or remove individual ads for a given vendor site.
    Then, in one or more locations on my site, I would like to rotate among ads for multiple vendors.
    I currently have two blocks, one for posts, and another for sidebar. Each of these should show different ads. I expect, due to different sizes, I may need to define different (sized) ads for these blocks. So, probably multiple groups, each with differently formatted ads.
    I may want to add additional blocks for other locations (multiple on posts, for example), and again, different ad (groups) rotating in each, but without having to completely reproduce (copy) the content, because I’ll be pulling from groups.
    I hope that makes sense….

    Plugin Author Spacetime

    (@spacetime)

    Ok, I see.

    I will create an example for rotation grops (4 ad positions and 6 ads in rotation for each position).
    You need to create 5 blocks (4 ad positions + 1 block for roattion).

    Block 1: Block for actual rotation of groups:

    [ADINSERTER GROUP="A"]
    [ADINSERTER ROTATE]
    [ADINSERTER GROUP="B"]  
    [ADINSERTER ROTATE]
    [ADINSERTER GROUP="C"]  
    [ADINSERTER ROTATE]
    [ADINSERTER GROUP="D"]  
    [ADINSERTER ROTATE]
    [ADINSERTER GROUP="E"]
    [ADINSERTER ROTATE]
    [ADINSERTER GROUP="F"]

    Block 2: Ad position 1:

    [ADINSERTER ROTATE group="A"]
    AD_CODE_1
    [ADINSERTER ROTATE group="B"]
    AD_CODE_2
    [ADINSERTER ROTATE group="C"]
    AD_CODE_3
    [ADINSERTER ROTATE group="D"]
    AD_CODE_4
    [ADINSERTER ROTATE group="E"]
    AD_CODE_5
    [ADINSERTER ROTATE group="F"]
    AD_CODE_6

    Block 3: Ad position 2:

    [ADINSERTER ROTATE group="A"]
    AD_CODE_2
    [ADINSERTER ROTATE group="B"]
    AD_CODE_3
    [ADINSERTER ROTATE group="C"]
    AD_CODE_4
    [ADINSERTER ROTATE group="D"]
    AD_CODE_5
    [ADINSERTER ROTATE group="E"]
    AD_CODE_6
    [ADINSERTER ROTATE group="F"]
    AD_CODE_1

    Block 4: Ad position 3:

    [ADINSERTER ROTATE group="A"]
    AD_CODE_3
    [ADINSERTER ROTATE group="B"]
    AD_CODE_4
    [ADINSERTER ROTATE group="C"]
    AD_CODE_5
    [ADINSERTER ROTATE group="D"]
    AD_CODE_6
    [ADINSERTER ROTATE group="E"]
    AD_CODE_1
    [ADINSERTER ROTATE group="F"]
    AD_CODE_2

    Block 5: Ad position 4:

    [ADINSERTER ROTATE group="A"]
    AD_CODE_4
    [ADINSERTER ROTATE group="B"]
    AD_CODE_5
    [ADINSERTER ROTATE group="C"]
    AD_CODE_6
    [ADINSERTER ROTATE group="D"]
    AD_CODE_1
    [ADINSERTER ROTATE group="E"]
    AD_CODE_2
    [ADINSERTER ROTATE group="F"]
    AD_CODE_3

    Explanation:

    Block 1 defines which ad group is active – it rotates 6 groups (this block needs to be inserted first).

    Each ad position shows ad from the active group.
    So when group A is active the following ads will be displayed:

    Ad position 1: AD_CODE_1
    Ad position 2: AD_CODE_2
    Ad position 3: AD_CODE_3
    Ad position 4: AD_CODE_4

    When group B is active the following ads will be displayed:

    Ad position 1: AD_CODE_2
    Ad position 2: AD_CODE_3
    Ad position 3: AD_CODE_4
    Ad position 4: AD_CODE_5

    When group C is active the following ads will be displayed:

    Ad position 1: AD_CODE_3
    Ad position 2: AD_CODE_4
    Ad position 3: AD_CODE_5
    Ad position 4: AD_CODE_6

    etc.

    For each group you need to make sure ads do not repeat.
    And each ad position shoud have ads with size for that position.

    Of course, each group can have different ads. In the code above I used the same ads but shifted so they don’t repeat on the page.

    This is how ad rotation groups work.

    Thread Starter Sam Reichgott, LMT

    (@samrockingoodhealthcom)

    I assume that
    * Block 1 produces nothing visible, just determines the active group. Do I need to check any visibility boxes for this block?
    * AD_CODE_N represents HTML for a single banner.
    * Block 2 could be the code in my block called “Posts”, for example, and Block 3 in my block called “Sidebar”

    So I would not create a group=X for vendor X, or all positions would show ads for the same vendor. Instead, we are making blocks by format/size for each position. To be sure each vendor shows in only one position at a time, I make sure the same vendor’s ads are under a different group name in Blocks 2..N.

    Let me know if I have misunderstood.
    In any case, thank you for your time.

    Plugin Author Spacetime

    (@spacetime)

    1. Correct. Yes, as you need to insert the block before other actual ad blocks.

    2. Yes

    3. Yes

    4. Yes. Only ads from the active group are shown at a time. To show only one vendor you need to make sure each group contains only one vendor.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Rotation Group Example Please’ is closed to new replies.