Just updating that i tried also from customer_client: SELECT customer_client.currency_code, customer_client.descriptive_name, metrics.impressions, customer_client.id, customer_client.manager, customer_client.time_zone, segments.date FROM customer_client WHERE customer_client.manager = False AND segments.date DURING LAST_7_DAYS AND metrics.impressions > 0
with no success El miércoles, 26 de enero de 2022 a las 19:16:26 UTC+1, Álvaro escribió: > Hi, > > Im trying to migrate from Google Scripts to Google Ads API and can't > figure out a way of getting all accounts with activity within the last 7 > days. Im willing to avoig making requests to video_performance_report on > those accounts without delivery. > > *Google Ads Scripts code*: > > var accountIterator = AdsManagerApp.accounts() > .withCondition("Impressions > 0") > .forDateRange("LAST_7_DAYS") > .get(); > > and then I get the report on each account. > > *What I tried with the API:* > > $query = 'SELECT customer.id, metrics.impressions, > customer.descriptive_name, customer.resource_name FROM customer WHERE > metrics.impressions > 0'; > > but it throws the error "REQUESTED_METRICS_FOR_MANAGER". > > Does this mean that I'll need to make a request for each ad account even > if some of them have no activity? We have a lot of accounts with activity > just a few days every month and we need to get this report on a daily basis. > > What would be the best workaround to get this report > (VIDEO_PERFORMANCE_REPORT) for all ad accounts with activity? > > Thank you in 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/597c3da7-a929-40ce-b414-3ff76806d920n%40googlegroups.com.