Hi Kosuke,

Could you confirm if you have specified the client customer id? If not,
could you specify it as elaborated here
<https://developers.google.com/adwords/api/docs/guides/samples-use-cases#anatomy_of_an_api_code_sample>
and re-run the client library code?

If this does not work, could you provide the complete SOAP request and
response logs that were generated when you encountered the error? You may
provide them using the *reply privately to author* option. If you have not
enabled logging, you may refer to this guide
<https://github.com/googleads/googleads-dotnet-lib#how-to-enable-logging>
on how to do so.

Regards,
Dannison
AdWords API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 03/14/19 17:51:43 kosuke.shibay...@aldacom.com wrote:

Hello,
I recently started the AdWords API and do not understand well yet.
I downloaded the sample for C#. But it does not work.

An exception occurs at the "page = targetingIdeaService.get(selector);"
when I use the sample GetKeywordIdeas.
The exception message is as follows.

*AdWordsApiException: Eine Ausnahme vom Typ
"Google.Api.Ads.AdWords.Lib.AdWordsApiException" wurde ausgelöst.*

*Error returned when a <a href='SearchParameter'>SearchParameter</a>
doesn't match the <a href='IdeaType'>IdeaType</a> specified in the <a
href='TargetingIdeaSelector'>TargetingIdeaSelector</a> or is otherwise
invalid. Error trigger usually contains the parameter name, and error
details contain a more detailed explanation.. (Error:
TargetingIdeaError.INVALID_SEARCH_PARAMETERS, FieldPath:
selector.searchParameters[1].adGroupId.adGroupId, Trigger: )*


But I do not change ideaType and SearchParameter of sample.

They are as follows.














*// Create selector.TargetingIdeaSelector selector = new
TargetingIdeaSelector{requestType = RequestType.IDEAS,ideaType =
IdeaType.KEYWORD,requestedAttributeTypes = new
AttributeType[]{AttributeType.KEYWORD_TEXT,AttributeType.SEARCH_VOLUME,AttributeType.AVERAGE_CPC,AttributeType.COMPETITION,AttributeType.CATEGORY_PRODUCTS_AND_SERVICES}};*


*List<SearchParameter> searchParameters = new List<SearchParameter>();*












*// Create related to query search parameter.RelatedToQuerySearchParameter
relatedToQuerySearchParameter =new RelatedToQuerySearchParameter{queries =
new string[]{"bakery","pastries","birthday
cake"}};searchParameters.Add(relatedToQuerySearchParameter);*


I first enter 412 as "Food, Beverages & Tobacco" when I use the sample.

I changed only the following part of App.config.

DeveloperToken

ClientCustomerId

OAuth2ClientId

OAuth2ClientSecret

OAuth2RefreshToken


My Access level is Basic Access.

I created OAuth2RefreshToken with OAuthTokenGenerator and then entered yes,
yes and blank.


Thankful for any advice!

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/a221985c-2c23-4fd5-bbc9-3aa453d6575e%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/a221985c-2c23-4fd5-bbc9-3aa453d6575e%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/12f0g98qvg0000018gu9ak00186i2ax6omjge1l6co30c1g68qjedhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • AdWords... Kosuke Shibayama
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Kosuke Shibayama
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
          • ... Kosuke Shibayama

Reply via email to