DFP ads/ Update <head> on an AngularJS app

353 views
Skip to first unread message

Iraklis Alexopoulos

unread,
Jun 27, 2014, 10:19:00 AM6/27/14
to ang...@googlegroups.com
Hello,

We are building an AngularJS web app and we are trying to integrate DFP ads. By the way, we already have a PHP web app with DFP ads running so I am familiar with how DFP integration works, but of course it is different on an AngularJS app, due to its front end loading nature. I have already posted a question on the DFP product forum,https://productforums.google.com/forum/?utm_medium=email&utm_source=footer#!msg/dfp/3uoGte6HxNA/twm-gT8Z0z0J, but I was hoping that I can find more AngularJS specific answers here. So, the challenge we are having is with updating what's in the <head>, specifically a <script> block in which we define the ad slots. 

What would be the best way to do this on AngularJS? Create a service/provider to populate the <head> and call this from a controller/directive? Can you please provide some examples of manipulating the <head> on AngularJS?

Thanks in advance!

Iraklis

Raffael Tancman

unread,
Jun 28, 2014, 7:05:17 PM6/28/14
to ang...@googlegroups.com
Hi,

Last week I had the same problem. I discovered this project at github https://github.com/ianmurrays/ngDfp

thx
Raffael Tancman

Iraklis Alexopoulos

unread,
Jun 29, 2014, 12:52:01 AM6/29/14
to ang...@googlegroups.com
Hi Raffael,

Yes, I have across this module, haven't used it yet. Did you end up using it, and did it work for you? Not sure if you guys are in a similar scenario, where you have to dynamically populate the defineSlot calls in the <head>.

Cheers,
Iraklis

Raffael Tancman

unread,
Jun 29, 2014, 1:35:32 AM6/29/14
to ang...@googlegroups.com
Yes work for me but I use in only one page ( http://www.personare.com.br/ ). ngDFP is the new project and I will go developer because I need more functions to DFP. In your case ngDFP not work for you. Help us implements this function ;)

thx

Raffael Tancman

Iraklis Alexopoulos

unread,
Jun 29, 2014, 5:57:13 AM6/29/14
to ang...@googlegroups.com
I see, thanks Raffael, I will look into this and let you know if I come up with a solution!


--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/gEHr9D3LgSY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Olivier Moise

unread,
Jul 19, 2018, 6:11:12 AM7/19/18
to Angular and AngularJS discussion

Hi all,

I see that the last post is almost 4 years ago but I still wanted to ask if any of you guys came up with a working solution for this issue?

It would be great if you could share your experience dealing with this.

 

Thanks

Olivier

Reply all
Reply to author
Forward
0 new messages