I'm thinking about adding a weight to an ad within an ad group. The reason for this is that the client would like to have ad be displayed in a random order, but would like certain ads to appear more often than others. The way I think I could implement this is to add a weight field to the Simple Ad content type, and then modify the view sort criteria somehow to do a weighted random sort. I haven't worked through the details yet, but I'm curious if you can think this approach makes sense? I just started taking a look at the module, so I just want to make sure that I'm on the right track.
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#13 | simpleads_1416908.patch | 11.32 KB | dtamajon |
Comments
Comment #1
minnur CreditAttribution: minnur commentedHi! Looks like you are on the right direction.
You may also try add custom order. See simpleads.api.php (this will work only for automatically generated blocks, NOT for blocks created in Views)
Comment #2
minnur CreditAttribution: minnur commented@Spry_Julia, Do you still need assistance with this ? If not, please close this issue.
Thank you.
Comment #3
JuliaKoelsch CreditAttribution: JuliaKoelsch commentedSorry about that -- I'll close it for now. This feature has been put on hold. If it comes up and I have questions, I'll let you know. Thanks for your help!
Comment #4
jaskegreen CreditAttribution: jaskegreen commentedThis is exactly what I need as well. What needs to be added to the api file to make the sorting by weight work so higher ranked ads show more often?
Cheers,
Jason
Comment #5
minnur CreditAttribution: minnur commented@jaskegreen you will need add some logic to SQL query and you probably will need to add a new entity field and "Join" that field in your custom SQL query.
Comment #6
jaskegreen CreditAttribution: jaskegreen commentedErr, haven't done custom SQL in a long while. I don't really have the time right now to make this happen. If anyone has the itch and is able to rank the ads, it would be of great service to all.
Cheers
Comment #7
tiagojsag CreditAttribution: tiagojsag commented+1 for this feature
Comment #8
firfin CreditAttribution: firfin commentedMarked and closed #1881250: Weighting of Campaigns as a duplicate.edit: Apparantly this is an unrelated issue, sorry.
Did anyone get this functionality working with SimpleAds ?
I think the Random Weight or Probabilistic Weight modules might help getting to a working solution for this.
Client request : "Some ads are more random than others." :-)
Comment #9
firfin CreditAttribution: firfin commentedMarked #1894414: Display probability as a duplicate.
Comment #10
barurumm CreditAttribution: barurumm commentedAnyone with a working solution?
Comment #11
dtamajon CreditAttribution: dtamajon commentedI have created a patch to allow sort ads using draggableviews. The idea is you can create your own draggableview to sort the ads, and then select that view on the block as the order mode.
I have done it over 7.x-1.9 version.
This is a first version with my current needs, so any test and improvements are welcome.
Comment #12
dtamajon CreditAttribution: dtamajon commentedJust to say, the first time you edit an existing ads block, you will see 2 errors given that there are 2 new fields. After you save the block, the error will not appear again. And of course, it does not happen with a new ads block.
Comment #13
dtamajon CreditAttribution: dtamajon commentedIn the previous patch, not sorted ads were not included in the results. Now, those results are included and you can choose if you want them at the beginning or at the end of the list.
Comment #14
minnur CreditAttribution: minnur as a volunteer commented