There is a legacy system I'm fixing to start using the new APIs. Some calls are easy to translate into the new service. However, some of them looks like obscure functions, like "CampaignAdExtensionPage".
This was present, I believe, until the 2014 series. I don't know what it was supposed to do exactly, but here is the snippet where this is used:
static public function convertCampaignAdExtension (\CampaignAdExtensionPage $CampaignAdExtensionPage) {
$result = [];
if ($CampaignAdExtensionPage->entries != null) {
$result = array_reduce($CampaignAdExtensionPage->entries, function (&$result, $AdwordsCampaignAdExtension) {
if ($AdwordsCampaignAdExtension->adExtension instanceof \LocationExtension) {
$result[] = CampaignAdExtension::fromAdwords($AdwordsCampaignAdExtension);
}
return $result;
}, array());
}
return $result;
}