| WordPress Google Ad Manager Plugin Installation and Usage |
| Written by Andreas Berger |
| Saturday, 17 January 2009 18:37 |
|
A step for step tutorial on how to install and use the bretteleben.de Google Ad Manager Plugin for WordPress. Installation1.)Unzip the archive and copy the folder 'wp-google-ad-manager-plugin' into the directory '/wp-content/plugins/'. 2.)Activate the plugin in your WordPress backend.
SetupThe configuration of the plugin is situated at "Settings" > "Google Ad Manager" 1.)The parameter "Pub Id" takes your Google Ad Manager Publisher Id. You may find it e.g. in your Adsense Account at "My Account" > "Account Settings" near the bottom of the screen (AdSense for Content: ###########) 2.)The fields S0 to S6 take 1 Ad-Slotname each. 3.)The fields S7 to S9 take as many Ad-Slotnames you want, separated by a comma ",". When the plugin calls one of these Arrays - referenced by there names 'S7', 'S8' or 'S9' - it will use each of the given Slots one time per page. Usage - BasicsThe fields S0 bis S9 are called from Template, Post or Widget with: <!-- begam{field_name} -->. 1.) from template:To call ads from within your template (above or below content, at a fixed position in your sidebar, and so on ...) insert the call directly into the sourcecode of the template. 2.) from posts:To call ads from within a post, switch to HTML-view and insert the call at the position, you want the ad to be displayed within your post. 3.) from a widget:To place ads in your sidebar, ad a Text-widget (for "Arbitrary text or HTML" - it comes with WordPress) to your sidebar and put into it the call, which again looks such as:
Usage - ParametersThe plugin supports additional attributes. These are - optional - added to the call in two additional sections, separated by forward slashes "/". 1) Custom Targeting - GA_googleAddAttr(key, value)The optional second section may contain custom Ad Manager target-attributes that influence ad selection. Gender,male 2.) Page-level and slot-level attributes - GA_googleAddAdSensePageAttr(param, value), GA_googleAddAdSenseSlotAttr(slotname, param, value)The optional third section may contain Ad Manager page-level attributes and/or Ad Manager slot-level attributes. 2.1) PageAttributes - GA_googleAddAdSensePageAttr(param, value)A PageAttribute always consists of two parts, the parameter and the value. To use more than one attribute, separate them with a semicolon ";" E.g.:
2.2) SlotAttributes - GA_googleAddAdSenseSlotAttr(slotname, param, value)A custom slot-level attribute always consists of three parts, the slot, the parameter and the value. PageAttributes and SlotAttributes are declared in the same - third - section. The order is of no relevance, the plugin separates them by the number of there parts (2 for PageAttributes, 3 for SlotAttributes). 3.) IMPORTANT!!! To use page-level or slot-level attributes without using target-attributes you have to declare an empty second section, otherwise the plugin will not be able to execute the call correctly. In this case, the first section (field_to_use) is followed by 2 forward slashes! The complete call for field S3, using page-level and slot-level attributes but no custom target-attributes may look such as: |
| Last Updated on Saturday, 26 September 2009 12:04 |

Was genau muss ich beim Slotname S0, S1 u.s.w. eingeben... Ich habe den Namen der Google Kampagne, die Slotnummer und die Slotnummer mit # eingegeben leider immer erfolglos?
Besten Dank für Ihre Hilfe.
Hallo SeB!
Nein, die Ereiterung ist für die Verwendung des GoogleAdManager (den Google kürzlich in DoubleClick for Pubslishers umbenannt hat) gedacht. Dieser freie AdServer bietet unter Anderem auch die Möglichkeit AdSense Anzeigen zu verwenden, geht aber vom Funktionsumfang wesentlich weiter.
Gruß
Andreas
Besten Dank für die Antwort.
Aber das ist dann nicht für das original Google AdSense? Ich dachte das Plugin sei für das gemacht. Wenn doch was gebe ich denn nun in S0-Sx ein?
Hallo SeB!
Der AdSlot ist der "Anzeigenblock" im Reiter "Inventar" in Ihrem DoubleClick for Publishers (ehem. Google Ad Manager) Account.
Gruß
Andreas Berger