Hi Belem,
I think that what you're seeing here is that the Apps Script IDE does not pass parameter values into functions when you run them interactively.
In this case you have (from
https://developers.google.com/apps-script/advanced/adsense#list_ad_clients):
function listAdClients(accountName) {
[...]
}
and so running that will pass an empty value into the accountName parameter, producing the result that you're seeing.
Instead, you can create a helper function similar to:
function run() {
listAdClients("accounts/pub-1234"); // from Account.name, as returned by Accounts.list.
}
and then running that interactively should work the way that you expect.
Thanks,
Malcolm (AdSense API team)
![](https://ci5.googleusercontent.com/proxy/JdF5XCPiXNPnbhOdm20I4IQ0lgzI8hSVI94U92-RLRFcZUtJZ0km_G2P4iy_fhTAjQe1EUgs7BNdm7wdPi-cStBl1vV3Yx8eOBxANVbJCJxW_eJxlld59r-HXY1SOuTWMnTCdt-WY6PIhDyjOSM0I3KJWY6elEnKPpA2DqZZbIekTEKTTZWUkl6PShZwMxg=s0-d-e1-ft#https://google-dev-relations.my.salesforce.com/servlet/servlet.ImageServer?oid=00D1U000001174p&esid=0184Q00001NEZpb&from=ext)
![](https://ci6.googleusercontent.com/proxy/vbyamsIUJSi1F16TmhAvAuJ7J2qgLL1dYNxLraOaoBBMwUftKEdsjkUrt3qrqyTClM9O6hqNdnQ2A8QjwRS7QSZiqRrmRjAIh9Hotk5rg1vob_qek1_c1C6owuBkMHKd3Oyoh2SNv4jW_WHnyM6jU5F_YrXc9SIyl--cgeCAjsobQUmYnFwR_qFaFD358-c=s0-d-e1-ft#https://google-dev-relations.my.salesforce.com/servlet/servlet.ImageServer?oid=00D1U000001174p&esid=0184Q00001MzfOY&from=ext)
ref:!00D1U01174p.!5004Q02pVTGr:ref