hello
there is a question about using the IncludeAdultContentSearchParameter parameter
location: United States
language: English
key: "cbd for dogs"
it seems that this key is "Adult Content"
in the "Keyword Planner" with the "Show adult ideas" option turned on, the Search Volume data is available
in the Keyword Planner with the "Show adult ideas" option turned off, the Search Volume data is not available
I use the "Google Ads API Client Library for PHP (AdWords and DFP)" v201710
no matter if I add the IncludeAdultContentSearchParameter to the query or not, I do not get any data for this query with these parameters.
here's how I add this parameter
...
$includeAdultContentSearchParameter = new IncludeAdultContentSearchParameter();
$searchParameters[] = $includeAdultContentSearchParameter;
$selector->setSearchParameters($searchParameters);
...
here is SOAP log in DEBUG mode (I replaced the clientCustomerId with zeros)
[2017-11-14 17:54:38] AW_SOAP.INFO: clientCustomerId=000-000-0000 operations=1 service=TargetingIdeaService method=get responseTime=169 requestId=00055df3678070600a56a70bd306cd3d server=adwords.google.com isFault=0 faultMessage=
[2017-11-14 17:54:38] AW_SOAP.DEBUG: POST /api/adwords/o/v201710/TargetingIdeaService?wsdl HTTP/1.1
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/7.1.5-1+deb.sury.org~yakkety+2
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 2281
Authorization: REDACTED
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/o/v201710" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201710" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<ns1:RequestHeader>
<ns2:clientCustomerId>000-000-0000</ns2:clientCustomerId>
<ns2:developerToken>REDACTED</ns2:developerToken>
<ns2:userAgent>ua (AwApi-PHP, googleads-php-lib/31.0.0, PHP/7.1.5-1+deb.sury.org~yakkety+2)</ns2:userAgent>
<ns2:validateOnly>false</ns2:validateOnly>
<ns2:partialFailure>false</ns2:partialFailure>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:get>
<ns1:selector>
<ns1:searchParameters xsi:type="ns1:RelatedToQuerySearchParameter">
<ns1:queries>cbd for dogs</ns1:queries>
</ns1:searchParameters>
<ns1:searchParameters xsi:type="ns1:LocationSearchParameter">
<ns1:locations>
<ns2:id>2840</ns2:id>
</ns1:locations>
</ns1:searchParameters>
<ns1:searchParameters xsi:type="ns1:LanguageSearchParameter">
<ns1:languages>
<ns2:id>1000</ns2:id>
</ns1:languages>
</ns1:searchParameters>
<ns1:searchParameters xsi:type="ns1:NetworkSearchParameter">
<ns1:networkSetting>
<ns2:targetGoogleSearch>true</ns2:targetGoogleSearch>
<ns2:targetSearchNetwork>false</ns2:targetSearchNetwork>
<ns2:targetContentNetwork>false</ns2:targetContentNetwork>
<ns2:targetPartnerSearchNetwork>false</ns2:targetPartnerSearchNetwork>
</ns1:networkSetting>
</ns1:searchParameters>
<ns1:searchParameters xsi:type="ns1:IncludeAdultContentSearchParameter" />
<ns1:ideaType>KEYWORD</ns1:ideaType>
<ns1:requestType>STATS</ns1:requestType>
<ns1:requestedAttributeTypes>IDEA_TYPE</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>KEYWORD_TEXT</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>SEARCH_VOLUME</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>AVERAGE_CPC</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>COMPETITION</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</ns1:requestedAttributeTypes>
<ns1:paging>
<ns2:startIndex>0</ns2:startIndex>
<ns2:numberResults>700</ns2:numberResults>
</ns1:paging>
<ns1:currencyCode>USD</ns1:currencyCode>
</ns1:selector>
</ns1:get>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Date: Tue, 14 Nov 2017 15:54:38 GMT
Expires: Tue, 14 Nov 2017 15:54:38 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: hq=":443"; ma=2592000; quic=51303431; quic=51303339; quic=51303338; quic=51303337; quic=51303335,quic=":443"; ma=2592000; v="41,39,38,37,35"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/o/v201710" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201710">
<ns2:requestId>00055df3678070600a56a70bd306cd3d</ns2:requestId>
<ns2:serviceName>TargetingIdeaService</ns2:serviceName>
<ns2:methodName>get</ns2:methodName>
<ns2:operations>1</ns2:operations>
<ns2:responseTime>169</ns2:responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<getResponse xmlns="https://adwords.google.com/api/adwords/o/v201710" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201710">
<rval>
<totalNumEntries>0</totalNumEntries>
</rval>
</getResponse>
</soap:Body>
</soap:Envelope>
where is the mistake made? how can I get Search Volume data that is shown in the Keyword Planner?