Re: How to get clicks and impression of each product in Campaign?

2017-03-20 Thread Kishor Mali
Thanks Peter.

I used DownloadFormat::XML and then convert the data to SimpleXMLElement. 
And then fetch the values.

$result = simplexml_load_string($reportDownloadResult->getAsString());


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/45ec8f73-2e09-4151-921d-20aefa9209fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get clicks and impression of each product in Campaign?

2017-03-20 Thread 'Peter Oliquino' via AdWords API Forum
Hi Kishor,

The getAsArray() and getAsObject() methods are currently not supported. 
What is available, however, is getting the report as a String object via 
the getAsString() method. 

Thanks and regards,
Peter
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/6c94dbfb-91b1-40e5-8b9d-d3fb62e6abef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get clicks and impression of each product in Campaign?

2017-03-20 Thread Kishor Mali
Hello,

I want to access the report values and store into my database.
When I am downloading reports. I got CSV or XML to download.
I want the result in array or Standard Class Object format, so that I can 
access the values.

I crawl through the Report Examples, But unable to find the methods to get 
stats from the $reportDownloadResult object.
Is there any documentation for this?
I got 2-3 methods in ReportDownloadResultDelegate class.
1)  getStream()
2) getAsString()
3) saveToFile()

Is there anything like getAsArray() or getAsObject() or something?
Or I have to manipulate the value from String or XML?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e74d4207-12ce-4bea-a8e6-6eea78c653a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get clicks and impression of each product in Campaign?

2017-03-20 Thread Kishor Mali
Thanks for the reply, Peter.

Yes, I formulate that thing. Now, I got the CSV file of clicks and 
impression stats.

I tested it for different ReportDefinitionDateRangeType 
1) TODAY
2) YESTERDAY
3) LAST_7_DAYS

Its very good. Thanks once again.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/752d2008-6809-4930-8742-b41c7b6ada7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get clicks and impression of each product in Campaign?

2017-03-19 Thread 'Peter Oliquino' via AdWords API Forum
Hi Kishor,

Please refer to this reporting example 

 (that 
is also available in the client library) on how to generate the Shopping 
Performance Report. In the same example code, you may specify in the "
*$reportQuery*" string the fields of the Shopping Performance Report 

 that 
you wish to select and replace the CRITERIA_PERFORMANCE_REPORT with 
SHOPPING_PERFORMANCE_REPORT.

As for the suspension of your account, kindly reach out to the AdWords 
Compliance Team  as this 
is already out of scope for our team.

Best regards,
Peter
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/507aab7e-7a59-4d3b-b1b3-7051f422de5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get clicks and impression of each product in Campaign?

2017-03-17 Thread Kishor Mali
Also, there is no help available regarding this Class "Shopping Performance 
Report". I crawl all examples and classes from AdsApi folder. But I am 
unable to locate this thing. Can you please help?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b8f01545-0c6b-45b4-837c-2dc04e8082ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get clicks and impression of each product in Campaign?

2017-03-17 Thread Kishor Mali
Thanks for the quick reply.

Q. what you meant by "my adwords are inactive"?
Actually, my adwords were running before 3 months. But after some problem 
in my shopping cart flow, Google suspend the account. So adwords are not 
appearing in search (hence no clicks and no impresssion). So, to verify the 
clicks and impressions from API, I have to specify the Date Range.

Please look at the screenshot I attached to this reply.



On Friday, 17 March 2017 13:19:41 UTC+5:30, Peter Oliquino wrote:
>
> Hi Kishor,
>
> If you wish to get the Clicks 
> 
>  and Impressions 
> 
>  per 
> shopping campaign (CampaignId 
> )
>  
> at the product level (OfferId 
> ),
>  
> then I would recommend that you generate the Shopping Performance Report 
> 
>  instead.
>
> Additionally, could you provide more information as to what you meant by 
> "my adwords are inactive"? Setting custom date ranges is possible and you 
> can refer to this section 
> 
>  of 
> our reporting basics 
>  guide 
> for more information.
>
> Best regards,
> Peter
> 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/9790e511-1a03-48ec-be85-898e53e82b53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get clicks and impression of each product in Campaign?

2017-03-17 Thread 'Peter Oliquino' via AdWords API Forum
Hi Kishor,

If you wish to get the Clicks 

 and Impressions 

 per 
shopping campaign (CampaignId 
)
 
at the product level (OfferId 
),
 
then I would recommend that you generate the Shopping Performance Report 

 instead.

Additionally, could you provide more information as to what you meant by 
"my adwords are inactive"? Setting custom date ranges is possible and you 
can refer to this section 

 of 
our reporting basics 
 guide for 
more information.

Best regards,
Peter
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/8a0dc338-3a6b-41bc-9bcf-a2aff8abad2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.