public function testGetPlacementIdeasExample()
 {
     GetPlacementIdeasExample($this->user);
 }
        $page = $targetingIdeaService->get($selector);
        // Display related placements.
        if (isset($page->entries)) {
            foreach ($page->entries as $targetingIdea) {
                $data = MapUtils::GetMap($targetingIdea->data);
                $placement = $data['CRITERION']->value;
                $placementType = $data['PLACEMENT_TYPE']->value;
                printf("Placement with url '%s' and type '%s' was found.\n", $placement->url, $placementType);
            }
        } else {
            print "No related placements were found.\n";
        }
        // Advance the paging index.
        $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE;
    } while ($page->totalNumEntries > $selector->paging->startIndex);
}
// Don't run the example if the file is being included.
if (__FILE__ != realpath($_SERVER['PHP_SELF'])) {
    return;
}
try {
    // Get AdWordsUser from credentials in "../auth.ini"
    // relative to the AdWordsUser.php file's directory.
    $user = new AdWordsUser();
    // Log every SOAP XML request and response.
    $user->LogAll();
    // Run the example.
    GetPlacementIdeasExample($user);
} catch (Exception $e) {
    printf("An error has occurred: %s\n", $e->getMessage());
}