TargetingIdeaService

158 views
Skip to first unread message

amit kohli

unread,
Feb 20, 2024, 3:58:39 AM2/20/24
to Google Ads API and AdWords API Forum

Hi Team,

 We are new to google api landscape, However one of our customer using google api in their application and below is its URL.

 https://adwords.google.com/api/adwords/o/v201809/TargetingIdeaService

 While calling above API we are getting error - The remote server returned an error: (404) Not Found, seems above URL/service is moved or deprecated.

 So please suggest what is alternate URL/service which help us to achieve same which TargetingIdeaService is achieving.

 Thanks in advance.

 Thanks,

Google Ads API Forum Advisor

unread,
Feb 20, 2024, 9:30:20 AM2/20/24
to amitk...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

By reviewing your concern, I understand that you are encountering 404 not found error with the accessing TargetingIdeaService.

In order to assist you further, could you further elaborate on what exactly you are looking for in the context regarding the TargetingIdeaService in Google Ads API? If possible, please share the related screenshots for further investigation.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzFwA:ref"

Thanks,
 
Google Logo Google Ads API Team




 

amit kohli

unread,
Feb 20, 2024, 11:17:14 AM2/20/24
to Google Ads API and AdWords API Forum
@Team - Please suggest.

amit kohli

unread,
Feb 20, 2024, 11:17:34 AM2/20/24
to Google Ads API and AdWords API Forum
Hi Team,

Thanks for reply below is the error which we are getting.  Please suggest further

Thanks.

{
    "message": "An error has occurred.",
    "exceptionMessage": "There was no endpoint listening at https://adwords.google.com/api/adwords/o/v201809/TargetingIdeaService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.",
    "exceptionType": "System.ServiceModel.EndpointNotFoundException",
    "stackTrace": "\r\nServer stack trace: \r\n   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)\r\n   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)\r\n   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)\r\n   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)\r\n   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)\r\n   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)\r\n   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)\r\n\r\nException rethrown at [0]: \r\n   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)\r\n   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)\r\n   at Google.Api.Ads.AdWords.v201809.TargetingIdeaServiceInterface.get(TargetingIdeaSelector selector)\r\n   at Unilever.Keywords.UI.Util.KeywordSuggestion.Run(AdWordsUser user, String search, Int32 countryId) in D:\\a\\1\\s\\legacy-web-app\\KeyWordsWebApplication\\Keywords.UI\\Util\\KeywordSuggestion.cs:line 121\r\n   at Unilever.Keywords.UI.Util.KeywordSuggestion.GetSuggestedKeyword(String search, Int32 countryId) in D:\\a\\1\\s\\legacy-web-app\\KeyWordsWebApplication\\Keywords.UI\\Util\\KeywordSuggestion.cs:line 39\r\n   at Unilever.Keywords.UI.ApiController.HomeApiController.GetSuggestedKeywords(String keyword, Int32 countryId) in D:\\a\\1\\s\\legacy-web-app\\KeyWordsWebApplication\\Keywords.UI\\ApiController\\HomeApiController.cs:line 316\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()",
    "innerException": {
        "message": "An error has occurred.",
        "exceptionMessage": "The remote server returned an error: (404) Not Found.",
        "exceptionType": "System.Net.WebException",
        "stackTrace": "   at System.Net.HttpWebRequest.GetResponse()\r\n   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)"
    }
}

Best Regards,
Amit Kohli

Google Ads API Forum Advisor

unread,
Feb 20, 2024, 5:56:31 PM2/20/24
to amitk...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

To better understand your concerns, could you please provide us with the latest complete API logs (request and response with request-id and request header) and uncropped UI screenshots to further investigate this issue. 

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

amit kohli

unread,
Feb 21, 2024, 1:10:52 AM2/21/24
to Google Ads API and AdWords API Forum
Hi Team,

PFB the log and best i can able to extract. Please suggest the next steps service/api as seems API is moved(not sure...

<?xml version="1.0" encoding="utf-16"?>
<TargetingIdeaSelector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <searchParameters xsi:type="RelatedToQuerySearchParameter" xmlns="https://adwords.google.com/api/adwords/o/v201809">
    <queries>test</queries>
  </searchParameters>
  <searchParameters xsi:type="LocationSearchParameter" xmlns="https://adwords.google.com/api/adwords/o/v201809">
    <locations>
      <id xmlns="https://adwords.google.com/api/adwords/cm/v201809">2840</id>
    </locations>
  </searchParameters>
  <searchParameters xsi:type="NetworkSearchParameter" xmlns="https://adwords.google.com/api/adwords/o/v201809">
    <networkSetting>
      <targetGoogleSearch xmlns="https://adwords.google.com/api/adwords/cm/v201809">true</targetGoogleSearch>
      <targetSearchNetwork xmlns="https://adwords.google.com/api/adwords/cm/v201809">false</targetSearchNetwork>
      <targetContentNetwork xmlns="https://adwords.google.com/api/adwords/cm/v201809">false</targetContentNetwork>
      <targetPartnerSearchNetwork xmlns="https://adwords.google.com/api/adwords/cm/v201809">false</targetPartnerSearchNetwork>
    </networkSetting>
  </searchParameters>
  <ideaType xmlns="https://adwords.google.com/api/adwords/o/v201809">KEYWORD</ideaType>
  <requestType xmlns="https://adwords.google.com/api/adwords/o/v201809">IDEAS</requestType>
  <requestedAttributeTypes xmlns="https://adwords.google.com/api/adwords/o/v201809">KEYWORD_TEXT</requestedAttributeTypes>
  <requestedAttributeTypes xmlns="https://adwords.google.com/api/adwords/o/v201809">TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes>
  <paging xmlns="https://adwords.google.com/api/adwords/o/v201809">
    <startIndex xmlns="https://adwords.google.com/api/adwords/cm/v201809">0</startIndex>
    <numberResults xmlns="https://adwords.google.com/api/adwords/cm/v201809">100</numberResults>
  </paging>
</TargetingIdeaSelector> 

Best Regards,
Amit Kohli

amit kohli

unread,
Feb 21, 2024, 6:44:59 AM2/21/24
to Google Ads API and AdWords API Forum
Hi Team,

Any update.

Google Ads API Forum Advisor

unread,
Feb 21, 2024, 11:57:27 AM2/21/24
to amitk...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

In order to investigate the issue further, please provide us with the earlier requested complete API logs (request and response with request-id and request header) generated at your end so that we can assist you better.


If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.

amit kohli

unread,
Feb 22, 2024, 3:36:32 AM2/22/24
to Google Ads API and AdWords API Forum
Please refer my previous post -  21 Feb 2024, 11:40:52 

Thanks in Advance.

Google Ads API Forum Advisor

unread,
Feb 22, 2024, 8:54:14 AM2/22/24
to amitk...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

Kindly note that, the service TargetingIdeaService in the Google Adwords API was switched to KeywordPlanIdeaService in Google Ads API. By Using the KeywordPlanIdeaService, you can search for new keywords that are relevant to your Google Search campaign, or find historical metrics on keywords. I would recommend you check this guide regarding the Keyword Ideas  for more information.
Reply all
Reply to author
Forward
0 new messages