Hi Jeffrey,

Thank you for the reply.

Suppose you have GAQL, and looking to get the data for said GAQL. To issue this 
request, pass the GAQL to the GoogleAdsService.SearchStream interface.

If you are using REST, then you may use below cURL to get the data

Here is a complete example of the report definition above, enclosed in an HTTP 
POST request.
 
 
POST /v11/customers/{customer_id}/googleAds:searchStream HTTP/1.1
Host: googleads.googleapis.com
User-Agent: curl
Content-Type: application/json
Accept: application/json
Authorization: Bearer [Enter OAuth 2.0 access token here]
developer-token: [Enter developerToken here]
 
Parameters:
{
  "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"
}

If you're looking to run the reports using the client library, then you may use 
your GAQL with this code example.

Let us know if this helps.

Best regards,

Heidi
Google Ads API Team
ref:_00D1U1174p._5004Q2eejUy: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 
"Google Ads API and AdWords 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/7ncOr000000000000000000000000000000000000000000000RINW1700VsdkoAAHSWG1rUpeFKVhJg%40sfdc.net.
  • me... Jeffrey Liow Kah Seng
    • ... Jeffrey Liow Kah Seng
      • ... Jeffrey Liow
        • ... Jeffrey Liow
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to