ajax - DFP Ads on an AngularJS app -


we building angularjs web app , trying integrate dfp ads. way, have php web app dfp ads running familiar how dfp integration works, of course different on angularjs app, due front end loading nature. so, know there 3 components need working:

in <head>:

  • the dfp tag either sync or async, shown here, https://support.google.com/dfp_sb/answer/1651549. know google recommends async, on our php app had switch sync, since async doesn't support rich media, , facing reporting discrepancies async. so, angularjs app, can still use sync, or async?

  • the dfp tag in define ad slots, , call enableservices, singlerequest or syncrendering, etc. way, want have dynamically populated ad slots per page (app state), have figure out.

, , in <body>:

  • the tags displaying ads ad divs. on angularjs app work .display() or need call .refresh() method?

any appreciated, in advance.

cheers,
iraklis

try ngdfp

ngdfp simple library angular js allows add doubleclick publishers tags angular site.

to show ad, use

<div data-ng-dfp-ad="div-gpt-ad-1234567890123-0"></div> 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -