Keyword Performance Report help

2018-05-09 Thread Stephen Barrett
I'm trying to pull Keyword Performance Report and I'm having trouble 
figuring out 

I want to use the AWQL method: 

// Create report query to get the data for last 7 days.
$reportQuery = 'SELECT CampaignId, AdGroupId, Id, Criteria, CriteriaType, '
. 'Impressions, Clicks, Cost FROM KEYWORD_PERFORMANCE_REPORT '
. 'WHERE Status IN [ENABLED, PAUSED] DURING LAST_7_DAYS';


but I'm confused on how to implement it. Am I supposed to use the Query 
Method to pull this off? I'm looking at the examples and I don't see 
anything about where to put KEYWORD_PERFORMANCE_REPORT.

Right now I'm taking an example and just replacing the $query with what I 
need, but I don't know where to put KEYWORD_PERFORMANCE_REPORT. Am I 
suppose to put it as a *use Google\AdsApi\Adwords\v201802\cm\.. *and if 
so, I couldn't find a Keyword performance file to help me out.  

Any help would be greatly appreciated. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/4435df06-827e-4536-a486-540b38374df4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Keyword Performance Report help

2018-05-09 Thread 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Stephen,

Here is a sample PHP guide 

 for 
you to better understand the implementation. Just change the report type 
definition to cater the type of report you want to generate. If your 
concern is where the download location will be, AdWords API automatically 
generates the report file in the temp folder which will be specified in the 
logs. More so, you can also specify the path where you want it to generate 
by adding this line of code.

$filePath = '/user/local/...'
$reportDownloadResult->saveToFile($filePath); 

Let me know if you have further concerns.

Regards,
Dannison
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/a6a47b5e-5bc3-404e-a081-8cbde7ba4c41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Keyword Performance Report help

2018-05-10 Thread Stephen Barrett
So by changing the report type, would I have to also change the use cases 
too?



On Wednesday, May 9, 2018 at 10:08:27 PM UTC-6, Dannison Yao (AdWords API 
Team) wrote:
>
> Hi Stephen,
>
> Here is a sample PHP guide 
> 
>  for 
> you to better understand the implementation. Just change the report type 
> definition to cater the type of report you want to generate. If your 
> concern is where the download location will be, AdWords API automatically 
> generates the report file in the temp folder which will be specified in the 
> logs. More so, you can also specify the path where you want it to generate 
> by adding this line of code.
>
> $filePath = '/user/local/...'
> $reportDownloadResult->saveToFile($filePath); 
>
> Let me know if you have further concerns.
>
> Regards,
> Dannison
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/ff7ef2c2-b30f-4f2d-bb39-15d001614f1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Keyword Performance Report help

2018-05-10 Thread Stephen Barrett
And update:

I tested that sample code just how it is and I'm getting a parse error.
Parse error: syntax error, unexpected ':', expecting ';' or '{' in 
/home/../symfony/serializer/Normalizer/GetSetMethodNormalizer.php 
on 
line 59

I assume that the file it's mentioning doesn't have any errors. So I'm 
going to think its the sample file. I checked through the code and it 
doesn't look like anything is wrong with it either. any help?

On Thursday, May 10, 2018 at 9:10:04 AM UTC-6, Stephen Barrett wrote:
>
> So by changing the report type, would I have to also change the use cases 
> too?
>
>
>
> On Wednesday, May 9, 2018 at 10:08:27 PM UTC-6, Dannison Yao (AdWords API 
> Team) wrote:
>>
>> Hi Stephen,
>>
>> Here is a sample PHP guide 
>> 
>>  for 
>> you to better understand the implementation. Just change the report type 
>> definition to cater the type of report you want to generate. If your 
>> concern is where the download location will be, AdWords API automatically 
>> generates the report file in the temp folder which will be specified in the 
>> logs. More so, you can also specify the path where you want it to generate 
>> by adding this line of code.
>>
>> $filePath = '/user/local/...'
>> $reportDownloadResult->saveToFile($filePath); 
>>
>> Let me know if you have further concerns.
>>
>> Regards,
>> Dannison
>> AdWords API Team
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/5c5f1e79-492c-47ac-879a-c08b5bad94a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Keyword Performance Report help

2018-05-10 Thread Stephen Barrett
Another update. I've been working through this. And I had to update my PHP 
version to 7.0.29 in order to remove that error above. Now I'm not seeing 
any errors or anything.


On Thursday, May 10, 2018 at 9:45:57 AM UTC-6, Stephen Barrett wrote:
>
> And update:
>
> I tested that sample code just how it is and I'm getting a parse error.
> Parse error: syntax error, unexpected ':', expecting ';' or '{' in 
> /home/../symfony/serializer/Normalizer/GetSetMethodNormalizer.php 
> on 
> line 59
>
> I assume that the file it's mentioning doesn't have any errors. So I'm 
> going to think its the sample file. I checked through the code and it 
> doesn't look like anything is wrong with it either. any help?
>
> On Thursday, May 10, 2018 at 9:10:04 AM UTC-6, Stephen Barrett wrote:
>>
>> So by changing the report type, would I have to also change the use cases 
>> too?
>>
>>
>>
>> On Wednesday, May 9, 2018 at 10:08:27 PM UTC-6, Dannison Yao (AdWords API 
>> Team) wrote:
>>>
>>> Hi Stephen,
>>>
>>> Here is a sample PHP guide 
>>> 
>>>  for 
>>> you to better understand the implementation. Just change the report type 
>>> definition to cater the type of report you want to generate. If your 
>>> concern is where the download location will be, AdWords API automatically 
>>> generates the report file in the temp folder which will be specified in the 
>>> logs. More so, you can also specify the path where you want it to generate 
>>> by adding this line of code.
>>>
>>> $filePath = '/user/local/...'
>>> $reportDownloadResult->saveToFile($filePath); 
>>>
>>> Let me know if you have further concerns.
>>>
>>> Regards,
>>> Dannison
>>> AdWords API Team
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/14deea57-1e14-4359-87aa-eb2b5e4b6e6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.