Hi Silvano,
I have been going through all examples in google-api-php-client (v 0.4.9 beta), and this is what I have found:
1. In GetAllCustomChannels, I was getting the names for the custom channels, but not the ids, checking your code you have $customChannel['productCode'] (#47), but with a var_dump I saw that the property is called "code", so I changed $customChannel['productCode'] to $customChannel['code'] and the id was shown then.
2. There are 2 examples not working for me, these are:GetAllAdUnitsForCustomChannel and GetAllCustomChannelsForAdUnit.
I have replaced:
define('CUSTOM_CHANNEL_ID', 'my channel id here');
define('AD_UNIT_ID', 'my ad unit id here');
with values coming from requests using the API, to get all channel ids/ad unit ids
Maybe I am doing something wrong here?
The rest of examples work beautifully for me, thanks for the great code, it is priceless!
Cheers!
Raul