私は既にサンプルコードを入手しています。 あなたの回答しているこのサンプルコード <https://developers.google.com/google-ads/api/docs/samples/generate-keyword-ideas> では私の疑問が解消しません。 以下のAdwordAPIのTargetingIdeaServiceで書いていたコードをAdsAPIに置き換える*具体的なコード*を教えて欲しいです $targetingIdeaService = new AdWordsServices()->get(SESSION, TargetingIdeaService::class); $selector = new TargetingIdeaSelector(); $selector->setRequestType(RequestType::STATS); $selector->setIdeaType(IdeaType::KEYWORD); $selector->setRequestedAttributeTypes([ AttributeType::KEYWORD_TEXT, AttributeType::SEARCH_VOLUME, AttributeType::COMPETITION, AttributeType::TARGETED_MONTHLY_SEARCHES]);
// Create related to query search parameter. $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter(); $relatedToQuerySearchParameter->setQueries(['KEYWORD']); $searchParameters[] = $relatedToQuerySearchParameter; // 関連ワード「入力した語句を含む候補のみを表示」の設定 $ideatextfilterSearchParameter = new IdeaTextFilterSearchParameter(); $ideatextfilterSearchParameter->setIncluded(array($keyword)); $searchParameters[] = $ideatextfilterSearchParameter; // 関連ワード「アダルト関連の候補を表示」の設定 $includeadultcontentSearchParameter = new IncludeAdultContentSearchParameter (); $searchParameters[] = $includeadultcontentSearchParameter; $selector->setSearchParameters($searchParameters); $targetingIdeaService->get($selector) 2019年8月24日土曜日 5時56分24秒 UTC+9 adsapiforumadvisor: > > Hello Masa, > > If you want to get the keyword ideas like Tageting IdeaService.Get you > could use KeywordPlanIdeaService.generateKeywordIdeas > <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v2.services#keywordplanideaservice> > in > Google Ads API. Here > <https://developers.google.com/google-ads/api/docs/samples/generate-keyword-ideas> > > is the code sample that you can use to fetch the keywords ideas. Also, you > could refer here > <https://developers.google.com/google-ads/api/docs/samples/generate-keyword-ideas>(Keyword > > Planning section) to know more information on different services related to > the keywords > > Regards, > Sai Teja, Google Ads API Team > > ref:_00D1U1174p._5001UHET6R:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8146a6a9-c722-452a-a89f-34091da498ae%40googlegroups.com.
