hi,
   I need to access google ads search api for my project . i have created 
test manager and test  client account for testing purpose.
i just tried to call search api 
POST 
*https://googleads.googleapis.com/v17/customers/{customerId}/googleAds:search*

*payload: *
{
  "query": "SELECT campaign.id,metrics.clicks FROM ad_group_ad WHERE 
segments.date DURING LAST_7_DAYS"
  
}

am getting response is 

{

  "error": {

    "code": 400,

    "message": "Request contains an invalid argument.",

    "status": "INVALID_ARGUMENT",

    "details": [

      {

        "@type": 
"type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure",

        "errors": [

          {

            "errorCode": {

              "queryError": "REQUESTED_METRICS_FOR_MANAGER"

            },

            "message": "Metrics cannot be requested for a manager account. 
To retrieve metrics, issue separate requests against each client account 
under the manager account."

          }

        ],

        "requestId": "pV2N3M7vPQ_vEpqB2_GJPA"

      }

    ]

  }

}


In google docs i have referred , document says it have to basic service 
then how to check this api in development mode (test).

could you please suggest to solve this..

thanks for advance.




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/87c8fcd3-1d6d-4ec3-b4e2-57419fbd085cn%40googlegroups.com.

Reply via email to