It looks like a new recommendation type has been added but not yet
reflected in the Enum. Specifically, the value 18 (RESPONSIVE_SEARCH_AD?)
is being returned from a query but isn't part of the Enum. However, it does
appear in the documentation
(https://developers.google.com/google-ads/api/reference/rpc/v6/RecommendationTypeEnum.RecommendationType).
I've pasted in some code/results below that illustrate the issue. Thanks.
Scott
In [22]: rtenum = client.get_type("RecommendationTypeEnum", version="v6")
In [23]: rtenum.RecommendationType.values()
Out[23]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
In [24]: rtenum.RecommendationType.keys()
Out[24]:
['UNSPECIFIED',
'UNKNOWN',
'CAMPAIGN_BUDGET',
'KEYWORD',
'TEXT_AD',
'TARGET_CPA_OPT_IN',
'MAXIMIZE_CONVERSIONS_OPT_IN',
'ENHANCED_CPC_OPT_IN',
'SEARCH_PARTNERS_OPT_IN',
'MAXIMIZE_CLICKS_OPT_IN',
'OPTIMIZE_AD_ROTATION',
'CALLOUT_EXTENSION',
'SITELINK_EXTENSION',
'CALL_EXTENSION',
'KEYWORD_MATCH_TYPE',
'MOVE_UNUSED_BUDGET',
'FORECASTING_CAMPAIGN_BUDGET',
'TARGET_ROAS_OPT_IN']
In [25]: query = '''
...: SELECT
...: recommendation.type
...: FROM recommendation'''
In [26]: gas = client.get_service('GoogleAdsService', version='v6')
In [27]: resp = gas.search(cid, query)
In [28]: rtypes = []
In [29]: for row in resp:
...: rtypes.append(row.recommendation.type)
In [30]: rtypes
Out[30]: [2, 12, 12, 13, 13, 13, 5, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18]
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bbcb7c58-aad9-47ce-b20b-a4d067c90350n%40googlegroups.com.