Dismiss recommendation issue

87 views
Skip to first unread message

Aaron Weiner

unread,
Jan 20, 2023, 6:58:33 PM1/20/23
to Google Ads API and AdWords API Forum
Hello, 

I am trying to work with this example code:

The issue that I'm having is the code in that C# example is looking for the following variable:  recommendationId which is of the long data type. 

There is no recommendationId that are numerical (long). They are all string values. 

What am I missing here?

How can I tell if I am being impacted by this issue:

Thanks and I look forward to your reply.

Aaron



Google Ads API Forum Advisor

unread,
Jan 23, 2023, 5:38:44 AM1/23/23
to aa...@softwarepromotions.com, adwor...@googlegroups.com
Hi Aaron,

Thank you for reaching us out. I am Sherwin from Google Ads API support team. I hope that you are doing well today.

Based on the Google Ads API reference. For dismissing a recommendation vai API, the only thing that you need is the resource_name to execute the DismissRecommendationOperation. You may also check this guide in the Rest interface for that operation. However, could you tell us if you have tried to use the Recommendation resource_name or the Recommendation id itself? If yes, you may reach out to the client library owners of Dotnet via this link.

Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


ref:_00D1U1174p._5004Q2i11iN:ref

Aaron Weiner

unread,
Jan 23, 2023, 9:01:21 AM1/23/23
to Google Ads API and AdWords API Forum
I have tried to send the resource_name to execute the DismissRecommendationOperation, however, it just hangs. 

No response is ever received.  

How can I tell if I am being impacted by this issue:
https://developers.google.com/google-ads/api/docs/rmf#requirements_for_api_clients_providing_recommendation_service

Thanks and I look forward to your reply.

Aaron



Google Ads API Forum Advisor

unread,
Jan 23, 2023, 12:22:52 PM1/23/23
to aa...@softwarepromotions.com, adwor...@googlegroups.com
Hi Aaron,

Not meeting certain requirements for the recommendation service would not cause the request to hang. Can you please confirm if the request only hangs for this RecommendationService request? 

Thanks,

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2i11iN:ref

Aaron Weiner

unread,
Jan 23, 2023, 1:28:47 PM1/23/23
to Google Ads API and AdWords API Forum
Yes, the code seems to hang only when I try to call the service.DismissRecommendation().

I can use the googleAdsService.SearchStream() to get specific clients with a specific label. 
 
I can do the same for getting optimization scores for each client ID or each of the Recommendation.ResourceName for each client ID. 

Services.V12.RecommendationService seems to hang when I try the service.DismissRecommendation. 

Any suggestions?

Google Ads API Forum Advisor

unread,
Jan 24, 2023, 3:08:47 AM1/24/23
to aa...@softwarepromotions.com, adwor...@googlegroups.com
Hi Aaron,

Thank you for getting back to us. I hope that you are doing well today.

Moving forward to your concern, since you have tried the sample code for DismissRecommendation using the C# and it hangs, what we can do right now is to advise you to reach out to the Client library owners of Dotnet via this link. You may post that issue there as this is a client library related concern.

Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


ref:_00D1U1174p._5004Q2i11iN:ref

Aaron Weiner

unread,
Jan 30, 2023, 3:05:21 PM1/30/23
to Google Ads API and AdWords API Forum
You wrote: "what we can do right now is to advise you to reach out to the Client library owners of Dotnet via this link."

Okay, as you can see, I did just that but I haven't heard anything back. 

Can you try to reproduce this on your end to see if you see this issue or if it is just me?

Thanks and I look forward to your reply.

Aaron

Google Ads API Forum Advisor

unread,
Jan 31, 2023, 11:19:58 AM1/31/23
to aa...@softwarepromotions.com, adwor...@googlegroups.com
Hi Aron,

Thank you for your reply. We appreciate your patience with this concern. Allow me to raise this concern to the rest of our team and we will provide as soon as possible.

Best regards,
Google Logo
Jinky
Google Ads API Team
 



 

ref:_00D1U1174p._5004Q2i11iN:ref

Google Ads API Forum Advisor

unread,
Jan 31, 2023, 12:10:11 PM1/31/23
to aa...@softwarepromotions.com, adwor...@googlegroups.com
Hello,

The recommendation resource name is of the form "customers/{customer_id}/recommendations/{recommendation_id}", so to run the example you would need to extract the recommendation_id from the resource name, so that the code example can reconstruct the resource name using its components. In your app, where you write the code, you can omit this step and just use the resource name directly with no additional manipulation, or you can customize the example to accept a resource name directly instead.

It looks like you may have already tried this, however, and filed an issue on GitHub. I will follow up with the owner of that library to see if I can get a response for you.

As for your other question regarding RMF, from the RMF page, towards the top, you can find the sentence:
If you're not sure whether the RMF policy applies to your tool, contact the Google Ads API Compliance team

My team cannot assist with RMF inquiries, so I would suggest that you reach out via that link.

Regards,
Mike, Google Ads API Team

ref:_00D1U1174p._5004Q2i11iN:ref

Aaron Weiner

unread,
Jan 31, 2023, 7:05:28 PM1/31/23
to Google Ads API and AdWords API Forum
Yes, it seems to just hang when I try to use a full resource name as you described ("customers/{customer_id}/recommendations/{recommendation_id}") on a call to the service.DismissRecommendation. 

Keep in mind that I am initially calling this query:
SELECT
                recommendation.dismissed,
                recommendation.resource_name,
                recommendation.type
            FROM
                recommendation
            WHERE
                recommendation.dismissed = false

I have even tried to make a service.DismissRecommendation call with an erroneous resource name but it still hangs when I make the call. I was hoping that I would at least see an error but nothing. 

Do you have any suggestions on how I can debug this or resolve this while I wait to hear back from the owner of the library?

Thanks and I look forward to your reply.

Aaron


Google Ads API Forum Advisor

unread,
Feb 6, 2023, 8:32:53 AM2/6/23
to aa...@softwarepromotions.com, adwor...@googlegroups.com
Hello,

This may be specific to the .NET library, so I want to wait until we can confirm or deny that before proceeding. I'll follow up with my colleague again to make sure that they're considering the primary issue (hanging forever) as well.
Reply all
Reply to author
Forward
0 new messages