Hi Amit, Thank you for your reply and explaining that you have managed to authenticate and retrieve the access token.
If you are using PHP (or any of our client libraries), it is not necessary and we do not recommend using cURL to retrieve campaign details and metrics. Instead, you should refer to our Get Campaigns code example for PHP, where we demonstrate how to use $googleAdsServiceClient->searchStream(...) to run the GAQL query. You can replace the GAQL query in our code example with your desired query. i.e. $query = 'SELECT campaign.name, campaign.status, segments.device, metrics.impressions, metrics.clicks, metrics.ctr, metrics.average_cpc, metrics.cost_micros FROM campaign WHERE segments.date DURING LAST_30_DAYS'; Hope that this helps your issue, thank you. ref:_00D1U1174p._5001UZYZCD:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/PJJa-000000000000000000000000000000000000000000000Q8XQRA00JCw1F5QAQVKDyNHTjE03xQ%40sfdc.net.
