adClientId is one of the required parameters, and is usually in the form "ca-pub-xxxxx" for AFC, so make sure you're including that in your request. You can retrieve all ad clients with the respective "list" method.
As for specifying multiple custom channels, this is already possible; the API call can take this parameter multiple times. In the case of PHP, giving the method an array of custom channel IDs should do the trick.
---
Sérgio Gomes
Developer Relations
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902
On Wednesday, 2 January 2013 06:17:31 UTC, sorry chou wrote:
hello:
i want to add customchannel to adunit, and the document says using optional parameter "hostcustomchannelid" when call "getAdCode" as follows
$adSenseHost->accounts_adunits->getAdCode($accountid, $clientid, $adunitid, $hostCustomChannelId);
but always get error message "(getAdCode) missing required param: 'adClientId'"
remove hostCustomChannelId can get success message, why?
and how to add more than one channel?
thanks!