-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from ThatGerber/importer
0.2.0
- Loading branch information
Showing
19 changed files
with
7,674 additions
and
5,604 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,6 @@ cache | |
|
||
# Ignore Composer directory | ||
/vendor/ | ||
|
||
# Ignore WordPress repo | ||
/plugin/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
index.php | ||
plugin.php | ||
readme.txt | ||
js/ | ||
lib/ | ||
src/ | ||
widget/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
BUILD=`pwd`; | ||
|
||
echo 'Building WordPress plugin.'; | ||
|
||
echo -n 'What is the version number? '; | ||
read VERSION; | ||
echo "$VERSION"; | ||
|
||
cd $BUILD/../; | ||
|
||
### | ||
# Change Version Number | ||
### | ||
echo "Updating version to $VERSION"; | ||
sed -i '' "s|\* Version: *.*.*|\* Version: $VERSION|" plugin.php | ||
|
||
### | ||
# Make directory of files to import | ||
### | ||
mkdir plugin/; | ||
rsync -av --files-from=build/wordpress-files.txt . plugin/ | ||
|
||
### | ||
# Move vendor files to lib folder | ||
### | ||
mkdir lib; | ||
rsync -vah vendor/ plugin/lib/ | ||
|
||
### | ||
# Change autoload | ||
### | ||
echo "Changing location of autoload"; | ||
sed -i '' "s|require_once 'vendor/autoload.php'|require_once 'lib/autoload.php'|" plugin/plugin.php | ||
|
||
### | ||
# Return Home; We're Complete | ||
### | ||
cd $BUILD; | ||
echo 'Build Complete.'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,64 @@ | ||
=== DFP Ad Manager === | ||
|
||
Contributors: chriswgerber | ||
Tags: dfp, doubleclick, ads, ad trafficking | ||
Requires at least: 3.0.0 | ||
Tested up to: 4.1.1 | ||
License: GPLv2 or later | ||
License URI: http://www.gnu.org/licenses/gpl-2.0.html | ||
Stable tag: trunk | ||
Contributors: chriswgerber | ||
Requires at least: 3.0.0 | ||
Tested up to: 4.1.1 | ||
License: GPLv2 or later | ||
License URI: http://www.gnu.org/licenses/gpl-2.0.html | ||
Tags: dfp, doubleclick, ads, ad trafficking, ad ops | ||
|
||
Manager for ad positions and targeting through DoubleClick for Publishers. | ||
Simpler management of DFP (DoubleClick for Publishers) ad positions | ||
|
||
== Description == | ||
|
||
**For simple management of DoubleClick for Publishers ad positions.** | ||
|
||
Follow development of the plugin on [Github.com/ThatGerber/dfp-ads](http://github.com/ThatGerber/dfp-ads] | ||
|
||
== Installation == | ||
|
||
Documentation in progress | ||
= Install plugin = | ||
|
||
1. Download Zip File | ||
2. Navigate to your website's admin page: `example.com/wp-admin/` | ||
3. Go to Plugins, "Add New" | ||
4. At the top of the page, choose "Upload Plugin" | ||
5. Upload zip file and install now | ||
6. Activate plugin | ||
|
||
= Set Up Ad Network = | ||
|
||
1. Visit [https://www.google.com/dfp/](https://www.google.com/dfp/) and get your Account ID | ||
1. To find your Account ID, go to Settings. On the left sidebar, choose "Network Settings" and "All Network Settings". | ||
2. Copy your "Network Code". It should be an 8-digit integer for identifying your ad network. | ||
2. Visit the Ad Positions "Settings" in the WordPress Admin page. | ||
3. Add the DFP Network Code for Identifying the ad network for ad positions. | ||
|
||
== Screenshots == | ||
|
||
Visit [chriswgerber.com/dfp-ads/](http://www.chriswgerber.com/dfp-ads/) for screenshots and more information. | ||
|
||
== Frequently Asked Questions == | ||
|
||
Submit your questions at [chriswgerber.com/contact/](http://www.chriswgerber.com/contact/) | ||
|
||
== Upgrade Notice == | ||
|
||
If you're coming from the pre-release, many features have been changed and improved. You will be required to re-setup your network. | ||
|
||
== Changelog == | ||
|
||
= 0.2.0 | ||
|
||
* Added functionality for importing DFP Ads | ||
* Added Travis CI Integration. | ||
* Added Composer | ||
* Begin Unit Testing | ||
* Added Code Coverage Reporting | ||
* Updated JS to make extensions easier | ||
* Added Asynchronous ad loading | ||
* Made plugin compatible with PHP 5.3 | ||
|
||
= 0.1.0 | ||
* Initial Release | ||
* Initial Pre-Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.