Ok I thought of something I could say here.
I would like a cross-ppc platform API. Either via scraping or using their real API.
So class structure may be like
That way you can just call it like this
I'd make it myself but don't have the time. Also with adwords and their new beta, honestly I'd be worried all the regexs would break.
I would like a cross-ppc platform API. Either via scraping or using their real API.
So class structure may be like
- PPCManager
- Campaign
- Adgroup
- Keyword
- Ad
- Settings
- Adgroup
- PlatformInstance(campaign $c)
- MSNPlatform(campaign $c)
- YahooPlatform(campaign $c)
- GooglePlatform(campaign $c)
- Campaign
That way you can just call it like this
PHP:
$ppcManager=new PPCManager();
$ppcManager->createCampaign("Obama");
$ppcManager->setDefaultURL("Obama", $myurl);
for($i=0; $i<sizeof($myadgroups); $i++)
{
$ppcManager->adAdgroup($myadgroups[$i]);
$ppcManager->adTextAd("Obama", ,$myadgroups[$i]->getAdgroupName(),$headline, $line1, $line2, $displayurl);
$ppcManager->createOnYahoo(true);
$ppcManager->createOnGoogle(true);
}
$ppcManager->uploadCampaign();