Fixed.

I was using wrong combination of the emails used for MCC
authentication and emails address in the 'clientEmails ' :

$selector->clientEmails = array('em...@emailserver.tld');

Thank you

On Aug 15, 7:40 pm, ovikast <grosu.ovi...@gmail.com> wrote:
> Hi,
>
> I'm getting the following error when trying to get  APi usage for one
> client under MCC:
>
> [ApiUsageError.INVALID_CLIENT_EMAIL @ selector; trigger:'email']
>
> ---------------------------------------------code
> used---------------------------------------------------------
>       // Get the InfoService.
>       $infoService = $user->GetInfoService('v201101');
>
>       // Create selector.
>       $selector = new InfoSelector();
>       $selector->apiUsageType = 'UNIT_COUNT_FOR_CLIENTS';
>
>       // From the start of the month until today.
>       $selector->dateRange = new DateRange(date('Ym01'), date('Ymd'));
>
>       $selector->clientEmails = array('em...@emailserver.tld');
>
>       // Get api usage info.
>       $apiUsageInfo = $infoService->get($selector);
>
>       // Display api usage info.
>       if (isset($apiUsageInfo)) {
>         print 'The total number of API units used this month is "'
>             . $apiUsageInfo->cost . "\".\n";
>       } else {
>         print "No api usage information was returned.\n";
>       }
>
> -------------------------------------------------------------------------------------------------------------
>
> Any suggestions?
>
> Thank you

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to