Empty Recommendations

65 views
Skip to first unread message

duong xuan toi

unread,
Sep 6, 2019, 12:55:44 AM9/6/19
to AdWords API and Google Ads API Forum
Hi,

I using google ads API for get recommendations of accounts but it return empty while it have many recommendations in UI.

Hear is my SUCCESS REQUEST DETAIL.
Request
-------
MethodName: google.ads.googleads.v2.services.GoogleAdsService/Search
Headers: {developer-token=REDACTED, login-customer-id=xxxxx, x-goog-api-client=gl-java/1.8.0_201 gapic/ gax/1.45.0 grpc/1.21.0}
Body: customer_id: "xxxx"
query: "SELECT recommendation.type FROM recommendation "
page_size: 1000


Response
--------
Headers: Metadata(content-disposition=attachment,content-type=application/grpc,request-id=HvPZMqVzij7blho1I8cKSg,date=Fri, 06 Sep 2019 04:51:10 GMT,alt-svc=quic=":443"; ma=2592000; v="46,43,39")
Body: field_mask {
  paths: "recommendation.type"
}

Failure message: null
Status: Status{code=OK, description=null, cause=null}.

Google Ads API Forum Advisor Prod

unread,
Sep 6, 2019, 4:02:17 PM9/6/19
to xuantoi....@gmail.com, adwor...@googlegroups.com

Hi Duong,

Thank you for reaching out. Could you please share the client customer id for me to investigate further? Please use Reply privately to author option while sharing the requested information.

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UHFuSD:ref

Martin SangDo

unread,
Sep 9, 2019, 1:21:22 AM9/9/19
to AdWords API and Google Ads API Forum
Hi Nikisha Patel,

I also use query "SELECT recommendation.text_ad_recommendation, recommendation.campaign FROM recommendation" (customer Id 294-644-4402).

but no recommendations in response. I see many Recommendations in Adwords UI.

Google Ads API Forum Advisor Prod

unread,
Sep 9, 2019, 11:38:00 AM9/9/19
to san...@knorex.com, xuantoi....@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for sharing the request and response logs. It looks like there are no recommendations in UI against the client customer Id: 721-369-6225. Also, for the shared report definition against client customer Id: 294-644-4402, there are no text_ad_recommendations in UI. This is the reason you are getting empty response while running the report query. Could you please try getting the recommendations via API which are already available in UI and let me know if you still face any issues.



Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UHFuSD:ref

Martin SangDo

unread,
Sep 9, 2019, 10:43:03 PM9/9/19
to AdWords API and Google Ads API Forum
Hi,

1) Customer 721-369-6225: I saw 6 recommendations "6 ad groups do not have any keywords" and 13 recommendations "13 ad groups do not have any ads".
2) Customer Id 294-644-4402: Many recommendations in UI, but seems API supports limited kinds of recommendations.


Q1) Is there any way to get more recommendations except ones supported in above link?
Q2) How to get optimization score of each recommendation group like I see in UI?

Thanks!

Google Ads API Forum Advisor Prod

unread,
Sep 10, 2019, 12:05:39 PM9/10/19
to san...@knorex.com, adwor...@googlegroups.com

Hi Martin,

Could you please try and run the below report query against client customer Id: 721-369-6225 and let me know if it works? Also, please find my response to your queries below:
"SELECT recommendation.resource_name, recommendation.type FROM recommendation LIMIT 100"

  1. Is there any way to get more recommendations except ones supported in above link? Currently, the Google Ads API only supports the recommendation types mentioned in this guide. There is no alternative to get more recommendations except the one listed in the shared guide.

  2. How to get optimization score of each recommendation group like I see in UI? It is not possible to get this optimization score via API. Our team is already aware of this issue and are working to add this in the API. Please keep an eye on our blog for updates on upcoming releases.

Let us know if you need any additional information.



Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UHFuSD:ref
Reply all
Reply to author
Forward
0 new messages