Re: AdwordAPIからAdsAPIへの移行について

2019-08-25 Thread masa hassy
私は既にサンプルコードを入手しています。
あなたの回答しているこのサンプルコード 

では私の疑問が解消しません。
以下の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 
> 
>  in 
> Google Ads API. Here 
> 
>  
> is the code sample that you can use to fetch the keywords ideas. Also, you 
> could refer here 
> (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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8146a6a9-c722-452a-a89f-34091da498ae%40googlegroups.com.


RE: AdwordAPIからAdsAPIへの移行について

2019-08-23 Thread Google Ads API Forum Advisor Prod
Hello Masa,

If you want to get the keyword ideas like Tageting IdeaService.Get you could 
use KeywordPlanIdeaService.generateKeywordIdeas in Google Ads API. Here is the 
code sample that you can use to fetch the keywords ideas. Also, you could refer 
here(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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/WYUV00PWPJHN00GvwKGYxfQEKt7O8n9KJFxQ%40sfdc.net.


AdwordAPIからAdsAPIへの移行について

2019-08-23 Thread masa hassy
以前使用していたAdwordAPIからAdsAPIへ移行調査をしています。

AdwordAPIではTargetingIdeaServiceを使用していましたが
AdsAPIではKeywordPlanIdeaServiceに変更するときに
TargetingIdeaServiceで以下の設定をする場合、
KeywordPlanIdeaServiceではどのように設定するのでしょうか?
*具体的なコードの例で教えて下さい。*


   - TargetingIdeaService


$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);



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ed3edea4-b37d-4eba-b0d4-f32f21482aba%40googlegroups.com.