Ad Type under video report

94 views
Skip to first unread message

Álvaro Pineda

unread,
Jan 27, 2022, 5:07:17 AM1/27/22
to Google Ads API and AdWords API Forum
Hi,


I noticed that ad type is not available but tried to select it (ad_group_ad.ad.type):

SELECT
campaign.name, ad_group.name, ad_group_ad.ad.type, ad_group_ad.ad.id, segments.ad_network_type, metrics.impressions,
FROM video'
.' WHERE metrics.impressions > 0 AND segments.date DURING LAST_7_DAYS';

And It returns a numeric value but it doesnt match with current ENUM. For instance it returns 29 for a given ad which is "Skippable in-stream ad" but 29 would be "Universal app pre-registration ad." as per above enum page.

Am I missing something?

Thank you in advance,

Álvaro Pineda

unread,
Jan 27, 2022, 6:21:53 AM1/27/22
to Google Ads API and AdWords API Forum
Seems that returned values match enum values at:

https://developers.google.com/google-ads/api/fields/v9/ad_group_ad?hl=en#ad_group_ad.ad.type

Is this correct?

Thanks again

Álvaro Pineda

unread,
Jan 27, 2022, 2:41:01 PM1/27/22
to Google Ads API and AdWords API Forum
Just confirmed that it doesn't match... im receiving value = 30 and this offset doesnt exist. Also a bumper ads creative gives a value of 25 which is "Video Non Skippable In Stream Ad" in above enum (taking it as an array with a 0 value for "App Ad". and the same with VIDEO_NON_SKIPPABLE_IN_STREAM_AD ads which receive a value of 29

Where could i find the correct enum for this?

Thank you again

Google Ads API Forum Advisor

unread,
Jan 27, 2022, 9:42:41 PM1/27/22
to alv...@bealion.com, adwor...@googlegroups.com
Hi Álvaro,

Thank you for posting your concern. Allow me to provide support here.

Please note that the numeric value of the enums will depend on the client library that you are using. With this, you will need to check the numeric value of the enums in your client library. However, so that I can help direct you to the right support channel where you can get answers to this question, just let me know what client library you are using (list of the supported client libraries here).

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2VQ1zx:ref

Álvaro Pineda

unread,
Jan 28, 2022, 3:22:33 AM1/28/22
to Google Ads API and AdWords API Forum
I'm using php one

Thank you

Google Ads API Forum Advisor

unread,
Jan 28, 2022, 9:03:09 AM1/28/22
to alv...@bealion.com, adwor...@googlegroups.com

Hi Álvaro,

In our Get Keyword Stats sample an ENUM name is accessed like this:

KeywordMatchType::name($adGroupCriterion->getKeyword()->getMatchType())

​​​​​​​You may extrapolate from this example for your use case.

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 


ref:_00D1U1174p._5004Q2VQ1zx:ref

Álvaro Pineda

unread,
Jan 28, 2022, 10:10:59 AM1/28/22
to Google Ads API and AdWords API Forum
Great! Thank you
Reply all
Reply to author
Forward
0 new messages