Hi,

I'm trying to get info for a customer via oauth credentials with cURL 
requests and I have some questions:

1) Can I get a list of accessible customers with some 
info(name/manager/test_account) with one API call, or I need to get a list 
of customers with listAccessibleCustomers method and then make an API call 
for each of customer that i retrieved?

2) Can I get a campaign performance report for a manager account? For 
example, I have a manager account with 2 linked client accounts and each of 
this accounts have a campaign. Can I get a full report with one API call or 
do I need to:

   - get a list of clients
   - get a report for campaigns by client

3) Can I define a metric data for a test account/campaign or maybe I can 
retrieve an empty fields? For example { "impressions": "0", "cpp": "0", ... 
}

4) Could you explain this behavior for me, please?
   For a request like - 
curl -X POST 
https://googleads.googleapis.com/v1/customers/<customer_id>/googleAds:search 
-d "query=SELECT campaign.name, campaign.status FROM campaign WHERE 
segments.date DURING LAST_30_DAYS" -H "Authorization: Bearer 
<access_token>" -H "developer-token: <developer_token>" -H 
"login-customer-id: <manager_id>"

I'm getting a response -
{
  "results": [
    {
      "campaign": {
        "resourceName": "customers/6869456495/campaigns/1767234946",
        "name": "Website traffic-Search-1",
        "status": "ENABLED"
      }
    }
  ],
  "totalResultsCount": "1",
  "fieldMask": "campaign.name,campaign.status"
}

But when I'm adding a new field that can be without info(for 
example segments.device) -
curl -X POST 
https://googleads.googleapis.com/v1/customers/<customer_id>/googleAds:search 
-d "query=SELECT campaign.name, campaign.status, segments.device FROM 
campaign WHERE segments.date DURING LAST_30_DAYS" -H "Authorization: Bearer 
<access_token>" -H "developer-token: <developer_token>" -H 
"login-customer-id: <manager_id>"

I get this response - 
{
  "fieldMask": "campaign.name,campaign.status,segments.device"
}

Can I get a response with available data(like campaign info from 1st 
request)?

Thanks!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
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/b86e7972-ca5f-44c3-afb1-117e7eca2881%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Retriev... Егор Федоров
    • Re... Егор Федоров
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to