Re: Reporting Crash with v201802

2018-03-16 Thread P Anand

Hi Vincent,

Thanks for all the help and support.

Regards

Pete

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/738c008d-94ab-4921-81c3-056c477597d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reporting Crash with v201802

2018-03-15 Thread P Anand
Hi Vincent,

Thanks for the reply. 

To answer your questions

1) Logs : I have checked the apache logs and get nothing in them. When i 
run this script in the browser, i get 200 response, with nor errors at all.
2) Other Services. I have tested getting a client List which is successful. 
Example given below
3) I have installed the library bu using 

composer upgrade





 However, I created a new project with just googleads/googleads-php-lib 
using composer. composer.json is as follows

"require": {
"php": ">=5.5.9",
"google/auth": "^1.0.0",
"googleads/googleads-php-lib": "^33.1.0"
}



I am running a test report with the same code as previously posted and now 
I am getting the following error:



A PHP Error was encountered

Severity: Parsing Error

Message:  syntax error, unexpected ':', expecting ';' or '{'

Filename: Normalizer/GetSetMethodNormalizer.php

Line Number: 59

Backtrace:


My PHP Version is as follows

PHP 5.6.34-1+ubuntu14.04.1+deb.sury.org+1 (cli)

I have also tried the same code on a different machine with PHP v 7.2.3 on 
Ubuntu 16.04 , but no success on that either.

I have tried using getting a client list using 


 $adWordsServices = new AdWordsServices();

$session = (new AdWordsSessionBuilder())
->withOAuth2Credential($this->client)
->withClientCustomerId($clientId)
->withDeveloperToken($this->developer_token)
->build();

which is successfully working without any errors. To my surprise, 
everything was working fine till i upgraded to v201802. I tested on v201710 
and everything works, without upgrading any PHP version.



I appreciate you help. I look forward for your reply.

Thanks and Regards

Pete

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d72ae9ce-6f55-4333-9e81-20885b215988%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reporting Crash with v201802

2018-03-15 Thread P Anand
Hi Vincent,

Thanks for the reply. 

I have checked the apache logs and get nothing in them.The problem is there 
are no errors and the response in browser console is 200, so there is no 
indication of the error.

 However, I created a new project with just googleads/googleads-php-lib 
using composer. composer.json is as follows

"require": {
"php": ">=5.5.9",
"google/auth": "^1.0.0",
"googleads/googleads-php-lib": "^33.1.0"
}



I am running a test report with the same code as previously posted and now 
I am getting the following error:



A PHP Error was encountered

Severity: Parsing Error

Message:  syntax error, unexpected ':', expecting ';' or '{'

Filename: Normalizer/GetSetMethodNormalizer.php

Line Number: 59

Backtrace:


My PHP Version is as follows

PHP 5.6.34-1+ubuntu14.04.1+deb.sury.org+1 (cli)

I have also tried the same code on a different machine with PHP v 7.2.3 on 
Ubuntu 16.04 , but no success on that either.

I appreciate you help. I look forward for your reply.

Thanks and Regards

Pete



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b088747d-03eb-4632-80f6-d1bf58de2ed0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error with symfony in the PHP API

2018-03-14 Thread P Anand

Hello,
I am getting the same error. I have tried this on PHP v. 5.6.32 and PHP v. 
7.2 and still getting the same error. The googleads/googleads-php-lib 
libaray works fine up to v201710, the moment i upgrade it ti v201802 it 
crashes. Can you please help ?

Thanks
Pete

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/16c46342-345e-4e53-9783-157c3c5a7553%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error with symfony in the PHP API

2018-03-14 Thread P Anand
Hello,
I am getting the same error. I have tried this on PHP v. 5.6.32 and PHP v. 
7.2 and still getting the same error. The googleads/googleads-php-lib 
libaray works fine up to v201710, the moment i upgrade it ti v201802 it 
crashes. Can you please help ?

Thanks
Pete

On Wednesday, 7 February 2018 19:36:29 UTC, Mathieu Dubreuil wrote:
>
> Hi,
>
> I have been trying to update from an old version of AdWords (2016). I am 
> currently getting an error :
> *Parse error*: syntax error, unexpected ':', expecting ';' or '{' in 
> *googleads-php-lib/vendor/symfony/serializer/Normalizer/GetSetMethodNormalizer.php*
>  on 
> line 
> *59*
> I took a look at the file and here is the line causing the error : 
>
> private function supports(string $class): bool
>
>
> From what I could gather, the problem is the " : bool " part and my IDE 
> told me something that might be the problem : Return type declaration is 
> available in PHP 7 only. I am currently using PHP 5.4 and was wondering if 
> it was required to have PHP 7 to use the API, as I thought I saw somewhere 
> the API was compatible with 5.4 or newer. Is there any option besides 
> upgrading my PHP version? I installed the lib using Composer.
>
> Thank you!
> Mathieu
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/961e8257-dc1a-47fd-a5c9-c84fa9adc1d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reporting Crash with v201802

2018-03-12 Thread P Anand
Hello,

I am currently on v201705 version for Adwords API. I am using the Report 
Download with AWQL method to download the reports. This is currently 
working fine since a long time . However, when i use the library v201802 
the code just crashes with no information. Below is a snippet in PHP

echo "A"; 

$session = (new AdWordsSessionBuilder())
->withOAuth2Credential($this->client)
->withClientCustomerId($client_id)
->withDeveloperToken($this->developer_token)
->build();

echo "B";

 try {
$reportDownloader = new ReportDownloader($session);

echo "C";

 $reportDownloadResult = 
$reportDownloader->downloadReportWithAwql($report_query, 
DownloadFormat::CSV);
} catch (Exception $e) {
echo json_encode($e);
log('error', __FUNCTION__ . ', Exception Error ' . 
json_encode($e));
}




The outpiut is AB and never reaches C. This means the line
 $reportDownloader = new ReportDownloader($session);


is crashing. 

Can anyone help on this matter. 

Thanks 

Pete

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/533cb099-74aa-43d5-8f61-a13daef02372%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.