Targeting Idea Selector in library "googleads/google-ads-php" PHP

71 views
Skip to first unread message

Youness Chetoui

unread,
Jul 10, 2019, 6:26:03 AM7/10/19
to AdWords API and Google Ads API Forum
Hello everyone,

I need some help with the library "googleads/google-ads-php". I juste moved of "googleads/googleads-php-lib" and I try to re use my function but i not understand how i setup the library to make this. The example on adword doc use the old library and I don't find the different class how i use in old library.

I don't find TargetingIdeaService and others class i used before like :

  • RelatedToQuerySearchParameter
  • TargetingIdeaSelector
  • Paging
  • etc ...
I really need help to understand how i get the TargetingIdeaService and make a request with different parameters in the new lib.

Google Ads API Forum Advisor Prod

unread,
Jul 10, 2019, 3:27:18 PM7/10/19
to adwor...@googlegroups.com
Hello Youness,

The equivalent service to TargetingIdeaService is KeywordPlanIdeaService in the new Google Ads API. You can refer here the same. You could refer to the Keyword Planning in the release notes to get more clarity. You could refer the code samples to create keyword plan, and keyword ideas from here. Let me know if you have any further questions.

Regards,
Sai Teja, Google Ads API Team

ref:_00D1U1174p._5001UCc0SB:ref

Youness Chetoui

unread,
Jul 11, 2019, 2:47:28 AM7/11/19
to AdWords API and Google Ads API Forum
Hello Sai Teja,

Thanks you for your response. I have a little other question about keywords. I try to get a list of suggested keywords with keywords, it possible to get this with KeywordPlanIdeaService and new lib ?

Google Ads API Forum Advisor Prod

unread,
Jul 11, 2019, 11:43:34 AM7/11/19
to youness...@wizdeo.com, adwor...@googlegroups.com
Hello Youness,

Yes, It is possible with the KeywordPlanIdeaService. You can use the code snippet from here. Please let me know if you have any further questions.

Regrds,

John Doe

unread,
Sep 27, 2019, 6:51:13 AM9/27/19
to AdWords API and Google Ads API Forum
I'm Getting Class 'App\Http\Controllers\GenerateKeywordIdeas' not found
    error please help me to fix this

Google Ads API Forum Advisor Prod

unread,
Sep 27, 2019, 3:55:14 PM9/27/19
to tester.donot...@gmail.com, adwor...@googlegroups.com

Hi John,

Thank you for reaching out. I understand that you are migrating from Adwords API to Google Ads API. You could use KeywordPlanIdeaService which is equivalent of TargetingIdeaService in Google Ads API. Please note, the search parameter for the keyword idea types is not available in Google Ads API. You might find this code sample helpful to generate new keyword ideas using PHP client libraries. Additionally, refer to this migration guide for Adwords equivalent in Google Ads API for future reference. Let us know if you have any additional concerns.

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UHIAYh:ref
Reply all
Reply to author
Forward
0 new messages