AdWordSiteSuggestionServiceAdWords Lib Site Suggestion Service Class
Provides operations for getting web site suggestions by category, topics, URLs or demographics.
Located in /services/AdWordSiteSuggestionService.inc
AdWordService | --AdWordSiteSuggestionService
array|false
getSitesByCategoryName
(string $categoryName, object $targeting, [string $clientEmail = ''])
AdWordSiteSuggestionService Constructor. It takes one parameter - name of a supported by AdWords Lib SOAP toolkit
Example:
- <?php
- ?>
Returns site suggestions based on the specified category name.
Each suggestion contains useful information such as the URL, accepted ad formats and page views.
Example:
- <?php
- // $targeting is object of class AdWordLanguageGeoTargeting
- if ($response === false) { // if an error appears
- echo $err->toString(); //output error
- exit();
- }
- //$response is an array of objects of class AdWordSiteSuggestion
- ?>
Returns site suggestions based on the specified demographics criteria, including gender, age, income, ethnicity and whether there are children in the household.
Each suggestion contains useful information such as the URL, accepted ad formats and page views.
Example:
- <?php
- // $demo is object of class AdWordDemographicsTarget
- // $targeting is object of class AdWordLanguageGeoTargeting
- if ($response === false) { // if an error appears
- echo $err->toString(); //output error
- exit();
- }
- //$response is an array of objects of class AdWordSiteSuggestion
- ?>
Returns site suggestions based on the specified topics.
Each suggestion contains useful information such as the URL, accepted ad formats and page views.
Example:
- <?php
- // $targeting is object of class AdWordLanguageGeoTargeting
- if ($response === false) { // if an error appears
- echo $err->toString(); //output error
- exit();
- }
- //$response is an array of objects of class AdWordSiteSuggestion
- ?>
Returns site suggestions based on the specified URLs.
Each suggestion contains useful information such as the URL, accepted ad formats and page views.
Example:
- <?php
- // $targeting is object of class AdWordLanguageGeoTargeting
- if ($response === false) { // if an error appears
- echo $err->toString(); //output error
- exit();
- }
- //$response is an array of objects of class AdWordSiteSuggestion
- ?>
Inherited From AdWordService
AdWordService::AdWordService()
AdWordService::callService()
AdWordService::getAccount()
AdWordService::getClientCustomerId()
AdWordService::getClientEmail()
AdWordService::getLastError()
AdWordService::getResponseHeaders()
AdWordService::setAccount()
AdWordService::setClientCustomerId()
AdWordService::setClientEmail()
Documentation generated on Mon, 10 Sep 2007 15:07:28 +0300 by phpDocumentor 1.3.2