Quisiera generar un reporte en una pagina php de mis campañas a través de la Api Adwords / I would like to generate a report on a php page of my campaigns through Adwords Api

125 views
Skip to first unread message

infiniu...@gmail.com

unread,
Apr 18, 2016, 4:00:35 PM4/18/16
to AdWords API Forum
Mi consulta es que necesito generar un reporte que me muestre en una tabla las características de mis campañas (clics, impresiones, gastos, etc) o que pueda descargarme el archivo csv que se genera dentro de la misma Adwords Api, pero esto generarlo  a través  de un código en PHP, tengo todos los datos de acceso (token, id del cliente,cliente secreto, refresh token ), ya he intentado levantar un código que me brinda la misma librería de google pero no me genera ningún reporte, espero puedan ayudarme con esta consulta. 

--------------------------------------------------------


My question is I need to generate a report that shows me in a table the characteristics of my campaigns ( clicks, impressions , cost , etc. ) or can unburden the csv file that is generated within the same Adwords Api , but this generate through a code in PHP, I have all data access (token , client ID , client secret , refresh token) , and I tried to lift a code that gives me the same library google but does not generate any report , I hope you can help with this query.


Shwetha Vastrad (AdWords API Team)

unread,
Apr 18, 2016, 6:09:13 PM4/18/16
to AdWords API Forum
Hi,

You can use download_criteria_report or download_criteria_report_as_stream_with_awql examples from the PHP client library. You need to change the report name and report fields accordingly in the examples to get Campaign Performance Report which has statistics aggregated at campaign level. To get the fields available for a report, you can use GetReportFields.php.

Please check out our reporting basics guide for more details.

Regards,
Shwetha, AdWords API Team.

infiniu...@gmail.com

unread,
Apr 29, 2016, 11:55:59 AM4/29/16
to AdWords API Forum

Good morning , I followed all the steps of the API and all, but does not export any record me but does not give me any error, only I get blank page . I hope you can help me.

Shwetha Vastrad (AdWords API Team)

unread,
Apr 29, 2016, 12:52:38 PM4/29/16
to AdWords API Forum
Hi,

Can you provide the report definition you are using along with the errors you received? 

Thanks,
Shwetha, AdWords API Team.

infiniu...@gmail.com

unread,
May 9, 2016, 11:01:18 AM5/9/16
to AdWords API Forum
He seguido todos los pasos, cuando corro el código no me exporta ningún documento, ni me arroja ningún error, solo la pantalla en blanco. este es el PHP que levanto: (español)
I followed all the steps, when I run the code does not export any document me or throw me any error, just blank screen . This is the PHP I raise : (english)



Shwetha Vastrad (AdWords API Team)

unread,
May 9, 2016, 11:17:28 AM5/9/16
to AdWords API Forum
Hi,

The value provided for report type, "ClickAssistedConversionsOverLastClickConversions", is a field, not a report type. It is available in AdGroup Performance ReportAd Performance ReportCampaign Performance Report and Keywords Performance Report. You should change the reportType value to one of there reports and you'll be able to get the fields available in that report.

infiniu...@gmail.com

unread,
Jun 1, 2016, 11:00:34 AM6/1/16
to AdWords API Forum

I tried anyway and does not export any report me. I expect a more technical help, some video tutorial or guide me to be more specific.
Thanks in advance.

Shwetha Vastrad (AdWords API Team)

unread,
Jun 1, 2016, 2:47:37 PM6/1/16
to AdWords API Forum
Hi,

The DownloadCriteriaReport PHP example demonstrates how to download a Criteria Performance Report. You can use this as a reference and make necessary changes to get the data you need for the required report type. 

One of the reasons for the empty report could be that the rows selected have zero impressions, in which case these will not be returned. To include zero impressions in your report output, set the includeZeroImpressions HTTP header to true.
Reply all
Reply to author
Forward
0 new messages