Thank you. We were able to render a list of video campaigns using this 
query:

    query = '''
            SELECT
               campaign.id,
               campaign.advertising_channel_type
            FROM campaign
            WHERE campaign.advertising_channel_type = 'VIDEO'
            ORDER BY campaign.id
            '''
So we have a list of video campaigns under one customer_id:

[campaign {
  resource_name: "customers/1234567890/campaigns/987654321"
  id {
    value: 987654321
  }
  advertising_channel_type: VIDEO
}
, campaign {
  resource_name: "customers/1234567890/campaigns/135790864"
  id {
    value: 135790864
  }
  advertising_channel_type: VIDEO
}
, campaign {
  resource_name: "customers/1234567890/campaigns/246809753"
  id {
    value: 246809753
  }
  advertising_channel_type: VIDEO
}
]

So there is no way to use the campaign id for a query like this:

        query = '''
            SELECT
                ad_group_criterion.keyword.text,
                ad_group_criterion.keyword.match_type,
                campaign.name,
                campaign.id,
                metrics.impressions,
                campaign.advertising_channel_type
            FROM keyword_view
            WHERE campaign.id = 246809753
            ORDER BY campaign.id
            '''

We are getting keyword data for all ads that are NOT video ads.

Hoping to get keyword metrics for video ads and campaigns.

Would the query above work in any way? From a different resource possibly 
or at a different level, ad, ad_group, campaign?

Thank you for your help.

On Friday, July 17, 2020 at 1:20:46 PM UTC-4 adsapiforumadvisor wrote:

> Hi Frank,
>
> Unfortunately, it is not possible to get these metrics from the keyword 
> view. You can use the Interactive Google Ads Query Builder 
> <https://developers.google.com/google-ads/api/docs/query/interactive-gaql-builder>
>  
> to test out valid queries.
>
> Regards,
> Anthony
> Google Ads API Team
>
> ref:_00D1U1174p._5004Q21mq2a: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 
"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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/99a08708-4593-4cef-9df3-e501b948ba8cn%40googlegroups.com.

Reply via email to