To make the process of integrating our ads in Angular Applications, we have created a dedicated Angular component to simplify this process. You can check it out here: https://github.com/AdvertiLLC/ng2-avrtix.

How to use

Install

npm install ng2-avrtix

Add Adverti code

Place our async code within the <head></head> tags:

<script async src="//cdn.avrtix.com/v1/async.min.js"></script>

Import NgModule

import { AdvertiModule } from 'ng2-avrtix';

@NgModule({
  imports: [
    // shown passing global defaults (optional)
    AdvertiModule.forRoot({
      network: 'mynetwork',
      site: 1,
      placement: 1,
      width: 728,
      height: 90,
    }),
    ...

Show ad

Uses global defaults which can be overriden via inputs

<ng-avrtix></ng-avrtix>


For more information about configuring, inputs, etc., check out the repository on GitHub: https://github.com/AdvertiLLC/ng2-avrtix

Did this answer your question?