Get keywords volume, any sample code ?

90 views
Skip to first unread message

WA

unread,
May 4, 2022, 5:26:09 AM5/4/22
to Google Ads API and AdWords API Forum
Hello guys,

Before we used :

$selector = new TargetingIdeaSelector();
        $selector->setRequestType(RequestType::STATS);
        $selector->setIdeaType(IdeaType::KEYWORD);
        $selector->setRequestedAttributeTypes(
            [
                AttributeType::KEYWORD_TEXT,
                AttributeType::SEARCH_VOLUME,
                AttributeType::AVERAGE_CPC
            ]
        );


But I don't understand how we add the lang search, location search and obviously the keywords array ?

Do anyone have a code sample for PHP ?

Best regards

Google Ads API Forum Advisor

unread,
May 5, 2022, 6:22:40 AM5/5/22
to gairautimm...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for raising this concern to the Google Ads API Forum.

With regard to your concern, I can see that language and keyword array implementation are already there in the document you provided. However, for the location it appears that this is not included yet. That said, since your question is more on code related for PHP client library, I would suggest to reach out to the author of this client library via this github issues tracker as they can provide helpful solution here.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


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