Re-posting the last inquiry (https://groups.google.com/g/adwords-api/c/0QAWCPctQ6M) from the forum as it wasn't routed to our support queue.
Hi!
Please help me with this. I need return others metrics. Im using the Laravel Sample App , im try get others metrics, for example metrics.average_cpc and result is N/A.
Screenshot of the result in the browser:
Screenshot of the code of the fields of show report form :
How to consulting an others metrics?
Thanks.
Hi,
Thanks for reaching out to the Google Ads API Forum. I hope you are doing well today.
Moving forward to your concern about having N/A result in the metrics table, can you please try to use the sample query below in retrieving your data using REST.
SELECT campaign.resource_name, campaign.id, campaign.name, campaign.status, metrics.impressions, metrics.clicks, metrics.ctr, metrics.average_cpc FROM campaign
If it happens that the issue still persists or still has NULL value, for our team to further compare, investigate, and validate why you are encountering issues, can you provide more information with regards to your concern or issues?
Provide the complete (request and response with request-id) logs with request ID generated as shown in the respective links.
Complete screenshots (without cropping) from the Google Ads UI.
We do this to check if there’s an error thrown on your side and we can further investigate.
If you haven't enabled logging yet, it can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. For REST interface requests, you can enable logging via the curl command by using the -i flag.
This will cause the tool to include the HTTP response headers in the output.
You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.
Also, I would also like you to know that we are going to delete your post here on this forum as it contains confidential information such as the logs that you've provided.
Have a great day.
Regards,
Google Ads API Team