Hi,
I need to get list of all client ads for creating report which will show 
statistic on each ad (shows, clicks, average bid and a lot of others) for 
marketing needs. But I can't find in Docs "Request URL" for getting list of 
ads for client.
Unfortunately I can't use client libraries.

So I try to use method GoogleAdsService:Search -  Search REST/JSON.
I try to make call to the

> https://googleads.googleapis.com/v2/customers/9032841878/googleAds:search
>
Using GAQL

['query' => 'SELECT campaign.id,campaign.name,metrics.impressions, 
metrics.clicks, metrics.ctr  FROM ad']

But I got error in response - "PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE"

How to solve my issue?

Full body of response

Array
(
    [error] => Array
        (
            [code] => 400
            [message] => Request contains an invalid argument.
            [status] => INVALID_ARGUMENT
            [details] => Array
                (
                    [0] => Array
                        (
                            [@type] => 
type.googleapis.com/google.ads.googleads.v2.errors.GoogleAdsFailure
                            [errors] => Array
                                (
                                    [0] => Array
                                        (
                                            [errorCode] => Array
                                                (
                                                    [queryError] => 
PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE
                                                )

                                            [message] => ad may not be used in 
FROM clause in this service.
                                        )

                                )

                        )

                )

        )

    [code] => 400
)






-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/06fd3107-d2d4-49b2-a817-a9eaed59cfa0%40googlegroups.com.

Reply via email to