| Background wallpaper/skin questions with 1x1 code | jamespayne | 6/22/12 7:45 AM | Hi everyone, i've setup a 1x1 ad unit to start using a self hosted image as the background images/wallpaper advert on our site. It's 1450x900px. I have a couple of questions… I have included generated ad placement code in the <head> that looks lik |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/22/12 8:15 AM | Do i need to add the invocation tags as an out of page unit? |
| Re: Background wallpaper/skin questions with 1x1 code | Ingraye | 6/22/12 8:21 AM | Yes. The defineSlot merely tells DFP that you want it have that Ad Unit ready. The push/display code is to tell DFP to actually load this Ad Unit. |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/22/12 8:39 AM | Thanks Ingraye, So let me get this right. 1. I need to set up a 1x1 ad zone. 2. In my line item i need to add a new third-party creative with the target size as 1x1 and any code (i.e. jquery or html) inside the code snippet area. 3. I put this as |
| Re: Background wallpaper/skin questions with 1x1 code | Ingraye | 6/22/12 9:23 AM | You should only need to define the Ad Unit once. You currently have it done twice. DFP is a bit weird on the Out-of-page generator in that it doesn't remove the standard defineSlot code. So just remove the first one: |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/22/12 12:06 PM | Thanks very much ingraye. I have read through your guide and found it vey helpful. We have a couple of people at work who will be looking to learn about dfp and I will definitely use your guide to help them. I'll see how I get on James |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/22/12 12:11 PM | A couple more questions, if I'm using jquery to change the background will I need to use the asynchronous or synchronous tag, and how will I incorporate the code with the 4 other standard single call dfp ads on the same page, will I need two differen |
| Re: Background wallpaper/skin questions with 1x1 code | Ingraye | 6/22/12 12:23 PM | Is Jquery already set on the page? The reason I ask this is because IE is very very bad on running functions on a code that is being loaded. So if you load Jquery in your Creative along with the code to execute, you'll need to either create additio |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/22/12 4:17 PM | I've tried all of the above but for some reason i can't get anything to display in the background. All other ads using the same code and using the single call are working fine :-( Am I missing something simple, or is there something i could put in |
| Re: Background wallpaper/skin questions with 1x1 code | Ingraye | 6/22/12 6:40 PM | Can you post a link? What are your Line item settings? You can append ?google_console=1 and then (after page finishes loading) hit CTRL + F10 on keyboard to bring up the Publisher's Console. It'll provide some more info on what DFP is doing. |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/26/12 5:42 AM | <This message has been deleted.> |
| Re: Background wallpaper/skin questions with 1x1 code | Ingraye | 6/26/12 7:33 AM | Which ad are you talking about? What browser are you using? If you mean the Box ad, you put the display code but didn't put the corresponding define code for that Ad Unit. If you launch the console, you can see that error. Background ad seems to |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/26/12 7:36 AM | Hello Ingraye, I can get the ad to work if I use the out of page synchronous code but not asynchronous for some reason. Is this how it works? Regards, James |
| Re: Background wallpaper/skin questions with 1x1 code | Ingraye | 6/26/12 8:05 AM | With your code, yes. Async delivers code in iFrames. Since your code just basically outputs the wallpaper rather than how other people do it (use Javascript to edit an existing div with the wallpaper styles; if doing this method, be sure to target t |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/26/12 8:31 AM | I've changed to using async as i want to use iframes. I'm using the following code but the wallpaper isn't changing. Have i got the correct partent window syntax? <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6. |
| Re: Background wallpaper/skin questions with 1x1 code | Ingraye | 6/26/12 8:57 AM | There might be a conflict. If you have Jquery running on your site, there's no need to include it in the Creative. You'll probably encounter issues in IE since I'm not sure which Jquery IE will attempt to use (IE doesn't play well with dynamically |
| Re: Background wallpaper/skin questions with 1x1 code | Ingraye | 6/26/12 9:54 AM | Hmmm... what is the Status of the Line Item and Creative of the background skin? Not sure why it's putting out an empty iFrame. |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/27/12 1:51 AM | it's strange that the other ads are rendering and the wallpaper not. The the status of both the line item and creative are both active. How long does it take after i make changes to the creative before they show on the website? does it happen prett |
| Re: Background wallpaper/skin questions with 1x1 code | Ingraye | 6/27/12 5:53 AM | It should work by now. Would you mind simply pausing and resuming it? Perhaps copying the Line Item and resuming that? Sometimes Line Items get stuck. Can you check the Publisher's Console Delivery Diagnostics and make sure that that Line Item is |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/27/12 6:47 AM | Hi Ingraye, I managed to get it working. It was the jquery that needed amending i needed to change $ to parent.jQuery. I have now come up with the following which is doing exactly what we need and works cross browser afaik. <script type="text/javas |
| Re: Background wallpaper/skin questions with 1x1 code | Ingraye | 6/27/12 6:59 AM | Glad to hear it! Thanks also for posting the code. I'm sure others who come and ask about this type of ad will appreciate something that they can reference. |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/27/12 7:04 AM | No problem, i'm more than happy to. If it helps someone else then great :-) |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/27/12 7:05 AM | Actually i do have one more question, where would i need to insert the click_macro code? Is it before the http:// bit of the link? James |
| Re: Background wallpaper/skin questions with 1x1 code | Ingraye | 6/27/12 7:41 AM | Yes. Since you have a variable defined (linkURL), you can simply place it in there before the http:// of the actual link (make sure it put it inside the quotes). DFP will replace the Click Macro with a unique URL when it generates the code so the r |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 6/27/12 8:41 AM | I've created a couple of the vars for the link. I presume this would work ok? var clientURL = "http://www.example.com"; var linkURL = "%%CLICK_URL_UNESC%%"+clientURL; The images are background images in a div so they should refresh fine if they ar |
| Re: Background wallpaper/skin questions with 1x1 code | Ingraye | 6/27/12 8:52 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | seeking_answers | 9/4/12 11:31 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | jamespayne | 9/10/12 1:59 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | sonick | 11/20/12 8:32 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | James Payne | 11/20/12 8:45 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | sonick | 11/26/12 7:19 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | James Payne | 11/26/12 8:17 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | sonick | 11/29/12 1:45 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | James Payne | 11/29/12 2:07 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | sonick | 11/29/12 4:14 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | James Payne | 11/29/12 4:45 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | Alan_Jay | 1/9/13 1:05 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | James Payne | 1/14/13 1:48 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | Alan_Jay | 1/14/13 2:33 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | James Payne | 1/14/13 9:01 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | Alan_Jay | 1/14/13 9:43 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | Alan_Jay | 1/14/13 9:51 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | Rocketpig | 3/26/13 8:28 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | James Payne | 3/26/13 9:07 AM | |
| Re: Background wallpaper/skin questions with 1x1 code | Alan_Jay | 3/27/13 12:40 AM |