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!
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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.
For more options, visit https://groups.google.com/d/optout.
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/4054612e-d65b-4684-918f-8da40654a86a%40googlegroups.com.