Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
AppNexus ads integration module. Very simple to use. The module provides blocks with ability to set Tag IDs, Ad Sizes.
You can also pass global page options:
<?php
use Drupal\appnexus\PageOpts;
/**
* Implements hook_page_attachments().
*/
function mymodule_page_attachments(array &$page) {
$page_opts = (new PageOpts())
->setKeywordQuotes()
->setMember('YOUR_MEMBER_ID')
->setKeyword('var1', 'value')
->setKeyword('var2', ['val1', 'val2'])
->setKeyword('var3', 1234);
if ($opts = $page_opts->build()) {
$page['#attached']['drupalSettings']['appnexus']['opts'] = json_encode($opts);
}
}
Supporting organizations:
Project information
- Seeking new maintainer
The current maintainers are looking for new people to take ownership. - Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: E-commerce, Content Editing Experience
- Created by minnur on , updated
- Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.