Meta tags:
Headings (most frequently used words):
for, instructions, url, default, callbacks, options, available, usage, setup, tester, unit, ad, demo, dfp, google, implementation, jquery, code, targeting,
Text of the page (most frequently used words):
the (86), #this (41), dfp (31), you (30), #adunit (23), div (21), #unit (20), #data (20), url (19), can (18), #script (17), for (17), #targeting (16), page (15), #your (14), #will (14), #jquery (12), com (12), dimensions (11), set (11), with (11), google (11), that (11), object (10), and (10), units (10), class (9), example (9), #default (9), true (8), are (8), answer (8), dfpid (8), information (8), not (8), ads (7), when (7), ad_unit_id (7), support (7), xxxxxxxxx (7), custom (7), https (7), value (7), string (7), also (7), use (6), option (6), 393x176 (6), dfp_premium (5), using (5), following (5), test (5), function (5), found (5), called (5), allows (5), more (5), selector (5), companion (5), any (5), page1 (4), below (4), browser (4), console (4), used (4), yourdomain (4), sets (4), name (4), parameters (4), target (4), have (4), see (4), options (4), which (4), could (4), specify (4), include (4), call (4), back (4), boolean (3), location (3), means (3), should (3), then (3), them (3), anonymize (3), multiple (3), http (3), www (3), way (3), adding (3), async (3), optionally (3), line (3), ad_sizes (3), would (3), description (3), rendering (3), video (3), identify (3), program (3), has (3), working (3), contains (3), user (3), after (3), per (3), false (3), specifying (3), identifiable (3), key (3), debug (3), attribute (2), basis (2), adunits (2), parameter (2), head (2), add (2), make (2), account (2), afteralladsloaded (2), dfp_sb (2), setup (2), ajax (2), aftereachadloaded (2), into (2), companionads (2), src (2), seturltargeting (2), finished (2), out (2), outofpage (2), double (2), once (2), min (2), 1191131 (2), size (2), adunitname (2), body (2), setting (2), ways (2), callbacks (2), need (2), possible (2), all (2), beforeeachadloaded (2), each (2), required (2), title (2), including (2), content (2), original (2), ctrl (2), display (2), from (2), users (2), secondcategory (2), personally (2), firstcategory (2), feature (2), there (2), code (2), some (2), tags (2), initialised (2), down (2), whether (2), calling (2), setcategoryexclusion (2), exclusions (2), category (2), instructions (2), load (2), replace (2), window (2), criteria (2), f10 (2), but (2), host (2), urlquery (2), urlpath (2), item (2), what (2), element (2), different (2), 980 (2), param1 (2), staging (2), before (2), sizemapping (2), setlocation (2), within (2), same (2), value1 (2), look (2), character (2), help (2), having (2), limit (2), precision, level, globally, 640, latitude, specifies, 185, 600, separated, 1000, list, 480, current, where, longitude, pairs, further, 728, settargeting, 1024, unique, available, init, 768, pull, googleapis, replaces, toggled, querystring, googfc, show, without, press, 181070, included, delivery, demo, tester, generated, admin, drop, pagerequests, solution, getting, click, publishers, initialising, described, find, very, easy, get, implementation, sync, toggle, navigation, require, subsequent, libs, many, middle_feature, 76431457, usage, order, create, property, exclusion, city_id, 450x500, method, useful, copies, part, placement, creatives, pressing, selectors, toggling, google_debug, google_console, done, like, well, course, above, specified, minimum, css, defined, corresponding, comma, auto, valid, furthermore, read, subject, longer, criterias, form, free, operator, 188092, begins, both, supports, now, regarding, important, about, query, docs, take, inventory, built, beware, urlhost, rest, care, live, was, pushing, environment, names, segment2, only, match, path, 177383, persons, these, version, ignoring, empty, occurances, email, how, shows, anonymized, result, providing, tostring, rule, shutting, other, functionality, end, individual, track, utilized, anything, utilize, network, party, third, allow, actions, prohibited, full, turned, values, refreshed, visible, stay, none, divs, its, refreshexisting, instead, hidden, again, already, times, happens, controls, 3423562, matter, items, responsive, want, geolocalization, enablesinglerequest, initial, loading, typically, than, request, unless, single, fetched, collapseemptydivs, event, fall, inside, existing, sizing, enable, off, alteradunitname, little, two, provides, callback, selected, containing, overrided, serving, modified, return, started, 2983838, bin, easier, plays, mapping, pass, combination, maps, named, defines, purpose, being, serve, sdk, ima, videos, accompany, disableinitialload, impressions, avoid, basic,
Text of the page (random words):
basic example test toggle navigation dfp js async instructions async example async test sync example instructions for code a jquery implementation for google dfp this script is a drop in solution for getting double click for publishers dfp by google working on your page by including this script on your page and then initialising it in the ways described below you should find it very easy to get dfp working do not include any of the generated dfp script tags from the dfp admin on your page this script replaces them demo ad unit tester you can use this page to test your dfp ads using the dfp js script there is some debug code included to help debug the ad delivery you can also use the google console https support google com dfp_sb answer 181070 hl en gb to debug your ad units this is done by by adding a google_console 1 or google_debug 1 to the url and toggling the console by pressing ctrl f10 subsequent pagerequests will not require the parameters and the console can be toggled adding the querystring googfc to an url will also load the console but also show it without having to press ctrl f10 setup you can add ad units to your page in any location that you would like to display an ad by default this script will look for ad units with a class of adunit but you can of course use jquery selectors as well the minimum information required for an ad unit to function is having the ad unit specified to do this you can use the id parameter of the element for example div class adunit id ad_unit_id div in the example above the id of the div element will be used to look up a corresponding ad unit in dfp and the dimensions of the adunit will be set to the same dimensions of the div which could be defined in your css you can optionally specify the adunit name and dimensions in the following way div class adunit data adunit ad_unit_id data dimensions 393x176 div this method can be useful for including multiple copies of an ad unit with the same name which when part of a dfp placement will then pull in as many different creatives as possible you can also specify multiple dimensions sets div class adunit data adunit ad_unit_id data dimensions 393x176 450x500 div also you can optionally specify custom targeting on a per ad unit basis in the following way div class adunit data adunit ad_unit_id data dimensions 393x176 data targeting city_id 1 div also you can optionally specify custom exclusion category on a per ad unit basis in the following way div class adunit data adunit ad_unit_id data dimensions 393x176 data exclusions firstcategory secondcategory div to create an out of page ad unit set the data outofpage property on the ad unit dimensions are not required for out of page ad units div class adunit data adunit ad_unit_id data outofpage true div in order to identify an add unit on the page that is a video companion ad set the data companion attribute on that unit div class adunit data adunit ad_unit_id data dimensions 393x176 data companion true div usage calling the script head title dfp test title script src ajax googleapis com ajax libs jquery 1 9 0 jquery min js script script src dfp min js script head body div class adunit id middle_feature data dimensions 393x176 div script dfp dfpid 76431457 script body you can init the script in the following ways dfp xxxxxxxxx dfp dfpid xxxxxxxxx selector dfp dfpid xxxxxxxxx selector dfp dfpid xxxxxxxxx setcategoryexclusion firstcategory secondcategory selector dfp dfpid xxxxxxxxx setlocation latitude 34 longitude 45 12 precision 1000 selector dfp dfpid xxxxxxxxx sizemapping my default browser 1024 768 ad_sizes 980 185 browser 980 600 ad_sizes 728 90 640 480 browser 0 0 ad_sizes 88 31 available options option description dfpid this string is your unique dfp account id settargeting this object is where you set custom targeting key value pairs also see the default targeting options that are set further down the page url this string is the url used by the url targeting feature the default value of this option is the value found by calling window location seturltargeting this boolean specifies whether the targeting should include information found in the url of the current page the default value of this option is true setcategoryexclusion this comma separated list sets category exclusions globally page level setlocation this object sets geolocalization string values are not valid enablesinglerequest this boolean sets whether the page ads are fetched with a single request or not you will need to set this to false it you want to call dfp more than once typically you would do this if you are loading ad units into the page after the initial load collapseemptydivs this can be set to true false or original if its set to true the divs will be set to display none if no line item is found false means that the ad unit div will stay visible no matter what setting this to original the default option means that the ad unit div will be hidden if no line items are found unless there is some existing content inside the ad unit div tags this allows you to have fall back content in the ad unit in the event that no ads are found refreshexisting this boolean controls what happens when dfp is called multiple times on ad units by default it is set to true which means that if an already initialised ad is initialised again it will instead be refreshed sizemapping defines named size maps that can be used with in combination with the data size mapping attribute to enable responsive ad sizing https support google com dfp_premium answer 3423562 hl en companionads if adding companion ads to accompany videos using the ima sdk to serve video ads then pass this parameter as true to identify the units being used for that purpose https support google com dfp_premium answer 1191131 disableinitialload this allows for serving companion ad units when the video on the page auto plays you ll need to include this setting with companionads as true to avoid possible double impressions https support google com dfp_premium answer 1191131 aftereachadloaded this is a call back function see below for more information afteralladsloaded this is a call back function see below for more information beforeeachadloaded this is a call back function see below for more information callbacks this script provides two callbacks which you can use to make working with dfp a little easier callback parameters description aftereachadloaded adunit adunit jquery object the jquery object this is called after each ad unit has finished rendering afteralladsloaded adunits adunits jquery object the jquery object containing all selected ad units this is called after all ad units have finished rendering alteradunitname adunitname adunit adunitname string the default ad unit name adunit jquery object the jquery object return the modified or overrided ad unit name this function is called once per ad unit beforeeachadloaded adunit adunit jquery object the jquery object this is called before each ad unit has started rendering default url targeting the following targeting options are built into this script and should be setup in your dfp account within inventory custom targeting https support google com dfp_sb bin answer py hl en answer 2983838 to make full use of them these targeting parameters can be turned on off with the seturltargeting option beware the targeting string has a 40 character limit key description urlhost this allows you to target different host names for example you could test your ads on your staging environment before pushing them live by specifying a host of staging yourdomain com within dfp this script will take care of the rest urlpath this allows you to target the path of the users browser for example if you set urlpath to page1 on the targeting options of the dfp line item it would match http www yourdomain com page1 only and not http www yourdomain com page1 segment2 urlquery this allows you to target the query parameters of a page for example if the url was http www yourdomain com page1 param1 value1 you could target it with a dfp ad by specifying a urlquery targeting string of param1 value1 dfp now supports both a begins with and a contains operator when specifying the custom criteria value furthermore the value when using free form key value custom criterias is no longer subject to a 40 character limit read more about custom criteria in the dfp help https support google com dfp_premium answer 188092 important regarding user identifiable information in url targeting if your url contains user identifiable information you have to anonymize the url when using url targeting if your url contains user identifiable information you have to anonymize the url when using url targeting from the dfp docs https support google com dfp_premium answer 177383 2 3 prohibited actions you will not and will not allow any third party to h utilize any feature or functionality of the program or include anything in program data or program ads that could be so utilized to personally identify and or personally track individual end users or any other persons ignoring this rule can result in google shutting down your network you can anonymize the url by providing an anonymized version in the url option this example shows how to replace email occurances in the url with an empty string selector dfp dfpid xxxxxxxxx url window location tostring replace b a z0 9 _ a z0 9 a z 2 4 b gi
|