UPDATE:
Working on integration with Views and Domain Access modules.
Keep suggesting new features! I will implement the most asked ones as I will have free time.
UPDATE:
1. Working on Draggable order.
2. Implementing support of Domain Access module for blocks (already works for blocks created via Views (see development version))
Please get the latest code from GIT repo: git clone --branch 7.x-1.x http://git.drupal.org/project/simpleads.git Latest version has:
- Integration with Views module
- Integration with Domain Access module
- Integration with Nodequeue module
Do you plan to add Channels? I am trying to figure out how to assign ads to different sections and sub sections of my site without creating too many blocks.
1) To be able to send advertisers an email showing how well their ads are working on our website.
2) To generate a report of how ads did during a certain campaign. It would be wonderful if the stats were available in views. Then we could play with different ways to present data.
If anyone interested in Campaigns module, please download development version of SimpleAds (enable Campaigns submodule). Please report any problems.
Thank you.
I would suggest to add new permission "Access own ad statistics", which allows users to access only statistics of ads they created. This would ofcourse require that users are added as authors of ads in sites where new ads are created by administrators.
Features module support.
Currently I can not see the Ad nor Campaign node types in the available content types in features.
I think it would be great to have this possibility.
Is it possible please?
Thanks...
What is the status on 2.0? I see a dev version, but there's only one issue tagged with 7.x-2.x that is on needs work or needs review. Two are tested and reviewed. Is there a list of differences between 1.x and 2.0? Is there (or going to be) an upgrade path?
Maybe an alpha or beta version of 2.0 would help things forward. I'd be happy to test and review patches.
I'd like to see some token replacement in the URL field. For example, some of our ad clients send us click tracking URLs that must include the timestamp of the click like this:
At this moment, I just hacked the _simpleads_redirect() function in order to replace a defined token in the URL string.
Haven't had a chance to use the 2.x branch, but I see that it now requires the Link module to handle the URL field. Does it mean that token replacement would be easier to implement?
A nice addition to the SimpleAds module would be the possibility to have Ads with different time delays between them.
Currently this is controlled by the block as a whole and not by Ad itself.
This would be a good way of prioritizing how Ads are displayed.
With "responsive ads" you may mean something different, but I think what you are asking for is a way to enable/disable ads depending on the user's device.
If I'm right, and while "proper" responsive ads support would be nice, if you don't mind a bit of hacking this is quite easy to achieve right now using the Context module (in conjunction with Context mobile detect). Here's a mini tutorial for the 7.x-1.x branch:
1. Install both modules and its associated libraries, create a new context (call it "mobile_context") and make sure you've added a "Device type" condition to it in which both "Mobile" and "Tablet" options are checked.
2. Add a new Boolean custom field to the Simple Ad content type, call it "Only for mobile devices" or something similar and use "field_ad_is_mobile" as machine name. Configure the rest of the options as you like, but make sure to allow only one value.
3. Modify the _simpleads_load_ads() function located in simpleads.helper.inc as follows:
function _simpleads_load_ads($tid, $limit) {
$result = array();
$term_ids = array();
if (is_array($tid)) $term_ids = $tid; else $term_ids[] = $tid;
if (is_numeric($limit)) {
$ad_settings = _simpleads_adgroup_settings($tid);
$order_delta = isset($ad_settings['ads_order']) ? $ad_settings['ads_order'] : 'random';
$queries = module_invoke_all('simpleads_order', $order_delta, $term_ids, $limit);
if (count($queries) > 0) {
// Get currently active contexts
$contexts = context_active_contexts();
// The array key "mobile_context" will exist only on mobile devices
$is_mobile = array_key_exists('mobile_context', $contexts);
foreach ($queries as $i => $query) {
foreach ($queries[$i] as $row) {
$node = node_load($row->nid);
$active = TRUE;
if (isset($node->field_ad_is_mobile[$node->language])) {
// Check if the ad has been labeled as "Only for mobile devices"
if ($is_mobile && $node->field_ad_is_mobile[$node->language][0]['value'] != 1) {
$active = FALSE;
}
}
if (isset($node->field_ad_status[$node->language])) {
if ($node->field_ad_status[$node->language][0]['value'] != 1) {
$active = FALSE;
}
}
if ($active) {
$result[] = _simpleads_ads_data($node);
}
}
}
}
}
return $result;
}
And that's pretty much all of it. Warning: I didn't test the code, but it should work or get you close enough. Create or edit some ads and set the "Only for mobile devices" for testing (note that you must do the testing on actual mobile devices or use one of the emulators available for your development platform).
I would like to be able to embed ads in outgoing emails sent with Forum Email Integration (FEmail) module for Drupal 7 and possibly other modules as well.
Comments
Comment #1
minnur commentedUPDATE:
Working on integration with Views and Domain Access modules.
Keep suggesting new features! I will implement the most asked ones as I will have free time.
Comment #2
minnur commentedPlease download development version to test Views integration.
1. http://drupal.org/node/1375716
Comment #3
minnur commentedComment #4
minnur commentedUPDATE:
1. Working on Draggable order.
2. Implementing support of Domain Access module for blocks (already works for blocks created via Views (see development version))
Comment #5
minnur commentedPlease get the latest code from GIT repo: git clone --branch 7.x-1.x http://git.drupal.org/project/simpleads.git
Latest version has:
- Integration with Views module
- Integration with Domain Access module
- Integration with Nodequeue module
Comment #6
minnur commentedUPDATE:
7.x-1.7 released:
- Integration with Views module
- Integration with Domain Access module
- Integration with Nodequeue module
Currently working:
- Campaigns (will support campaigns by clicks/impressions)
Comment #7
adrnand commentedDo you plan to add Channels? I am trying to figure out how to assign ads to different sections and sub sections of my site without creating too many blocks.
Comment #8
minnur commentedUpdate:
Currently I am working on some other project, will get back to this module very soon.
I will add Campaigns to the next release.
Thank you for using SimpleAds module.
Comment #9
MtRoxx commentedFirst: Thank you for a great module.
Wish List
1) To be able to send advertisers an email showing how well their ads are working on our website.
2) To generate a report of how ads did during a certain campaign. It would be wonderful if the stats were available in views. Then we could play with different ways to present data.
Comment #10
minnur commentedComment #11
minnur commentedProject update:
- Implementing Ad Campaigns.
Comment #12
minnur commentedIf anyone interested in Campaigns module, please download development version of SimpleAds (enable Campaigns submodule). Please report any problems.
Thank you.
Comment #13
minnur commentedComment #14
minnur commented@Mt_Roxx
per item 2. Stats now available in Views.
See dev. version.
Comment #15
minnur commentedAny other suggestions ?
Comment #16
dgastudio commentedyes:
1. transform Active Date and End Date, from simple text field to date field.
2. geotargeting please...
http://www.plethoradesign.com/blog/drupal/583-geo-targeted-blocks-based-...
+
http://drupal.org/project/ip2country
thank you
Comment #17
sketman commentedI would suggest to add new permission "Access own ad statistics", which allows users to access only statistics of ads they created. This would ofcourse require that users are added as authors of ads in sites where new ads are created by administrators.
Comment #18
minnur commentededit own SimpleAd content type permission might work.
Comment #19
minnur commentedI am currently very busy with some projects, will get back to this module as soon as I will have some capacity.
Comment #20
minnur commentedUpdate: I will begin working on version 2.0 this Fall-Winter.
Comment #21
sketman commentedFeatures module support.
Currently I can not see the Ad nor Campaign node types in the available content types in features.
I think it would be great to have this possibility.
Is it possible please?
Thanks...
Comment #22
dries arnoldsWhat is the status on 2.0? I see a dev version, but there's only one issue tagged with 7.x-2.x that is on needs work or needs review. Two are tested and reviewed. Is there a list of differences between 1.x and 2.0? Is there (or going to be) an upgrade path?
Maybe an alpha or beta version of 2.0 would help things forward. I'd be happy to test and review patches.
Comment #23
proteo commentedI'd like to see some token replacement in the URL field. For example, some of our ad clients send us click tracking URLs that must include the timestamp of the click like this:
http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=tf&c=20&mc=click&pli=12345678&PluID=0&ord=[timestamp]At this moment, I just hacked the _simpleads_redirect() function in order to replace a defined token in the URL string.
Haven't had a chance to use the 2.x branch, but I see that it now requires the Link module to handle the URL field. Does it mean that token replacement would be easier to implement?
Comment #24
cimo75 commentedHi I d like to have Adsense support, it would just be a new ad type, with an extra field for the Label of the event to track.
It would be also usefull to be able to disable the Simpleads statitics.
Simone
Comment #25
SDOCpub commentedI'd like to be able to edit the names of ad groups, instead of just adding new ones.
Comment #26
cimo75 commentedResponsive ads!
Comment #27
billy66 commentedHi,
A nice addition to the SimpleAds module would be the possibility to have Ads with different time delays between them.
Currently this is controlled by the block as a whole and not by Ad itself.
This would be a good way of prioritizing how Ads are displayed.
Comment #28
proteo commentedWith "responsive ads" you may mean something different, but I think what you are asking for is a way to enable/disable ads depending on the user's device.
If I'm right, and while "proper" responsive ads support would be nice, if you don't mind a bit of hacking this is quite easy to achieve right now using the Context module (in conjunction with Context mobile detect). Here's a mini tutorial for the 7.x-1.x branch:
1. Install both modules and its associated libraries, create a new context (call it "mobile_context") and make sure you've added a "Device type" condition to it in which both "Mobile" and "Tablet" options are checked.
2. Add a new Boolean custom field to the Simple Ad content type, call it "Only for mobile devices" or something similar and use "field_ad_is_mobile" as machine name. Configure the rest of the options as you like, but make sure to allow only one value.
3. Modify the
_simpleads_load_ads()function located insimpleads.helper.incas follows:And that's pretty much all of it. Warning: I didn't test the code, but it should work or get you close enough. Create or edit some ads and set the "Only for mobile devices" for testing (note that you must do the testing on actual mobile devices or use one of the emulators available for your development platform).
Best regards.
Comment #29
cimo75 commentedHi
I ve used context_breakpoints instead but it works nicely, thanks!
It works also for 2.x as the function hasn t changed
S.
Comment #30
DrCord commentedI would like to be able to embed ads in outgoing emails sent with Forum Email Integration (FEmail) module for Drupal 7 and possibly other modules as well.
Comment #31
minnur commented