Hi Jesse,

I apologize for the problems that bugged caused you.  It was caught by
another developer and was fixed in the 2.3.0 release.

  http://code.google.com/p/google-api-adwords-php/issues/detail?id=43&can=1

Best,
- Eric

On Nov 9, 10:31 am, "je...@getsidecar.com" <je...@getsidecar.com>
wrote:
> I figured out what it was but forgot to post back. There is an error
> in your ReportUtils.php file.
>
> You have code that looks like this:
>
>     if (isset($clientId)) {
>       if (strpos($clientId, '@') >= 0) {
>         $headers[] = 'clientEmail: ' . $clientId;
>       } else {
>         $headers[] = 'clientCustomerId: ' . $clientId;
>       }
>     }
>
> The problem is that strpos may return 0 if the search string is not
> found (http://php.net/strpos) so while the above code will work on
> sandbox accounts it would also attempt to add an email to live
> accounts.
>
> I changed it to >= 1 and everything worked out.
>
> On Sep 23, 4:48 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
> wrote:
>
>
>
>
>
>
>
> > Hi Jesse,
>
> > Do you have the report ID for a report that failed to download with
> > this error?
>
> > Best,
> > - Eric
>
> > On Sep 22, 10:11 am, "je...@getsidecar.com" <je...@getsidecar.com>
> > wrote:
>
> > > I'm having this same error, but only with one specific live account.
> > > How do I confirm the quoted settings?
>
> > > On Aug 24, 2:43 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
> > > wrote:
>
> > > > Hi Kyle,
>
> > > > Can you confirm that the credentials used when creating the
> > > > AdWordsUser is an MCC and has that the account with that
> > > > clientCustomerId as a client?
>
> > > > Best,
> > > > - Eric Koleda, AdWords API Team
>
> > > > On Aug 22, 9:46 pm, "Kyle (NBM)" <k...@nbm.com.au> wrote:
>
> > > > > Hi there,
>
> > > > > I've searched through the PHP API Documentation, this AdWords API
> > > > > Group, and further abroad online and I can't find any solution for
> > > > > this error I get when I try to download reports.
>
> > > > > I'm using the Live API Servers and a fresh copy of the PHP Libary
> > > > > code.
>
> > > > > This is roughly the code I'm using (with fake Client/Report ID's):
>
> > > > > $user = new AdWordsUser();
> > > > > $user->SetClientId('123-456-7890');
> > > > > ReportUtils::DownloadReport(123456, 'report.csv', $user);
>
> > > > > The report file is successfully saved, but contains the following text
> > > > > (I've replaced the actual Report ID with "123456"):
>
> > > > > !!!1|||123456|||AuthenticationError.CLIENT_EMAIL_INVALID???
>
> > > > > The DownloadReport function also throws "ReportDownloadException".
>
> > > > > I've tried the client ID in the above format (string, with hyphen
> > > > > separators), string (no hyphens), and Integer, and all fail.
>
> > > > > Any ideas or solutions would be greatly appreciated!
>
> > > > > Cheers,
>
> > > > > Kyle

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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