APIlity 1.1.0 is finally ready. This is a major release, an upgrade is recommanded to all APIlity users.
Please check out the complete ChangeLog.
This release primarily introduces CPM-based bidding. This comes along with a new class Criterion.php for be it KeywordCriteria or be it WebsiteCriteria. However, the already existing Keyword objects are still fully supported. This is the promised "best out of both worlds" feature. In spite of all, the new release hopefully is completely compatible to the older versions.
The object hierarchy has been extended to reflect the new features:
Therefore the class organigram has been slightly changed:
The most important new features:
- New CPM-based bidding feature
- AdGroup object extended
AdGroups now have an additional maxCpm attribute. This influences
respectively introduces the following functions:
- addAdGroup() (calling parameters canged)
- Campaigns can have CampaignNegativeWebsiteCriteria and
- New Report download function. The Report class now offers two new functions:
This version took a relatively long time to complete. There are several reasons for this:
- Hidden dependencies for example in AdGroup.php, Report.php and even Campaign.php. New functions where needed for AdGroups as the introduction of Criteria included an extension of the AdGroup objects by a MaxCPM attribute. There were three possibilities to handle this:
- have WebsiteCriterion AdGroups and KeywordCriterion AdGroups (logic, but complex as another sub-class level would be required)
- modify the maxCpc attribute to represent a unique maxCost attribute (logic as the idea of maximum cost remains, but not downwards compatible)
- simply add a maxCpm attribute (not 100% logic as only one of the two maxXxx values can be set, but downwards compatible)
- With the 'best out of both worlds' feature I want to enable clients to get the most out of the API, including the 'old' Keyword functions. However, when the Keyword Service gets deactivated, the Keyword functions can be simply removed.
- The question of the Criterion structure was to decide
- either to model the native API structure (Keyword and Website are both subclasses of Criterion)
- or to create a new Website object
There remains a small logic weak point in the native API structure: Campaigns have the CampaignNegativeKeywords attribute but at the same time support the CampaignNegativeWebsiteCriteria pseudo-attribute (in APIlity only).
- either the CampaignNegativeKeywords attribute should be removed from the Campaign object and Campaign negative items should be managed completely in the Criterion service (IMHO not so logic)
- or there should be added a CampaignNegativeWebsites attribute to the Campaign object (very logic, requires deeper changes however).
Images from google.com/apis/adwords and google-apility.sourceforge.net