Re: AdWords Reporting - PHP

2017-08-23 Thread ejay . opiniano
Hi Vincent,

It worked! Cool!

Cheers,

Ejay

On Wednesday, August 23, 2017 at 6:52:30 PM UTC+8, Vincent Racaza (AdWords 
API Team) wrote:
>
> Hi Ejay,
>
> Yes, you can filter by CampaignId 
> 
>  in 
> the WHERE clause for the Criteria Performance Report. You can refer to the 
> code snippet below:
>
> 'WHERE CampaignId = "INSERT_CAMPAIGN_ID_HERE" ';
> //Or you can also filter this way:
> //'WHERE CampaignId = \'INSERT_CAMPAIGN_ID_HERE\' ';
>
> Let me know if this helps. If you encounter any error, kindly provide your 
> PHP code via *Reply privately to author* so I could further check.
>
> Thanks,
> Vincent
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d2c59997-6a03-4991-a52d-ff99ed961695%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWords Reporting - PHP

2017-08-23 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Ejay,

Yes, you can filter by CampaignId 

 in 
the WHERE clause for the Criteria Performance Report. You can refer to the 
code snippet below:

'WHERE CampaignId = "INSERT_CAMPAIGN_ID_HERE" ';
//Or you can also filter this way:
//'WHERE CampaignId = \'INSERT_CAMPAIGN_ID_HERE\' ';

Let me know if this helps. If you encounter any error, kindly provide your 
PHP code via *Reply privately to author* so I could further check.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1f5342de-fb76-4e9f-a167-2bb3a5212435%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWords Reporting - PHP

2017-08-23 Thread ejay . opiniano
Hi Vincent,

It worked! Perfect! 

Last question, can i select or query a report via campaign ID? so that it 
would not generate all reports. I tried adding "CampaignId = (campaignid)" 
in "WHERE" of $reportQuery but it didn't work.

Cheers,

Ejay


On Wednesday, August 23, 2017 at 4:40:44 PM UTC+8, Vincent Racaza (AdWords 
API Team) wrote:
>
> Hi Ejay,
>
> For test accounts, all statistics like impressions and clicks would have 0 
> as value as the ads doesn't really serve. You can get a report with these 
> two campaigns but with no impressions and clicks. Just ensure that the 
> includeZeroImpressions 
> 
>  is 
> set to *true *so that these campaigns will be returned.
>
> Let me know if you have further clarifications.
>
> Thanks,
> Vincent
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/66d9ba65-1ba6-4ad3-80af-308a9da71f16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWords Reporting - PHP

2017-08-23 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Ejay,

For test accounts, all statistics like impressions and clicks would have 0 
as value as the ads doesn't really serve. You can get a report with these 
two campaigns but with no impressions and clicks. Just ensure that the 
includeZeroImpressions 

 is 
set to *true *so that these campaigns will be returned.

Let me know if you have further clarifications.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c0c60b2f-d4c7-4eb0-95e1-1a08e972328c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWords Reporting - PHP

2017-08-22 Thread ejay . opiniano
Hi Vincent,

Thank you for the response.

Another question, Upon executing the sample codes of reporting. It gives me 
0 result though i have 2 sample campaigns but have no impressions and 
clicks because this is under by test client account.
Do I have to create reporting table/charts in "Reports" of adwords web 
interface?

Thanks,
Ejay

Note: I need impressions and clicks per campaign.

On Wednesday, August 23, 2017 at 2:25:57 PM UTC+8, Vincent Racaza (AdWords 
API Team) wrote:
>
> Hi Ejay,
>
> Aside from downloading the report file, you can also get the report data 
> as String object:
> // $reportDownloadResult->saveToFile($filePath);
> *print $reportDownloadResult->getAsString();*
>
> From the String object, you can then do a post-processing on your end to 
> transform the value of the String object into another object or array based 
> on your use-case.
>
> Thanks,
> Vincent
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ad23e288-e68a-4b9c-a54b-4939b71b16f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWords Reporting - PHP

2017-08-22 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Ejay,

Aside from downloading the report file, you can also get the report data as 
String object:
// $reportDownloadResult->saveToFile($filePath);
*print $reportDownloadResult->getAsString();*

>From the String object, you can then do a post-processing on your end to 
transform the value of the String object into another object or array based 
on your use-case.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a9b3040a-763b-4a9f-8822-5a88dfe7a1ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.