The APIlity PHP Library provides an object-oriented way to easily access and manage the Google AdWords API from within PHP. This comes along with an abstraction from the SOAP and WSDL details.
The name APIlity is a wordplay on "API" and "ability", symbolizing that the AdWords API gives you the ability to do whatever you wanted to do with AdWords, and even more.
With the AdWords API you can not only manage and organize your accounts more efficiently, easily and smoothly, but also more creatively.
Using the API, you can create your own report-pulling software, synchronize your bids with your warehousing or have your own mass uploading tool control your accounts.
When using the API, you need to think in IDs. Everything in the AdWords world has an ID which represents its only point of access.
To get all Keywords for an AdGroup you first need to know the Campaign in which the AdGroup concerned resides. When you have found the correct Campaign, you need to remember its ID.
Then you need to know what AdGroups this Campaign contains and among these find the ID of the one you are searching for. Now with these two IDs, the one for the AdGroup concerned and the one for the Campaign concerned, you are ready to get a list of all Keywords which in turn - yes, you guessed it - are equipped with IDs.