Hi,
i am using the AdGroupCriterionService (API version v201809) trying to fetch Dynamic Ad Targets.
I can successfully retrieve the Webpage criterion objects i am interested in (e.g. their Ids), but i am not able to get their Urls.
Checking the example
here, i tried to get the Url like this :
$adGroupCriterion->getFinalUrls()->getUrls()[0]
but i get an error : "Call to a member function getUrls() on null".
The BiddableAdGroupCriterion Object i get looks like this:
[userStatus:protected] =>
[systemServingStatus:protected] =>
[approvalStatus:protected] =>
[disapprovalReasons:protected] =>
[firstPageCpc:protected] =>
[topOfPageCpc:protected] =>
[firstPositionCpc:protected] =>
[qualityInfo:protected] =>
[biddingStrategyConfiguration:protected] =>
[bidModifier:protected] =>
[finalUrls:protected] =>
[finalMobileUrls:protected] =>
[finalAppUrls:protected] =>
[trackingUrlTemplate:protected] =>
[finalUrlSuffix:protected] =>
[urlCustomParameters:protected] =>
[adGroupId:protected] => XXXXXXXXXXX
[criterionUse:protected] => BIDDABLE
[criterion:protected] => Google\AdsApi\AdWords\v201809\cm\Webpage Object
(
[parameter:protected] =>
[criteriaCoverage:protected] =>
[criteriaSamples:protected] =>
[id:protected] => XXXXXXXXXXXXXXXXX
[type:protected] => WEBPAGE
[CriterionType:protected] => Webpage
[parameterMap:Google\AdsApi\AdWords\v201809\cm\Criterion:private] => Array
(
[Criterion.Type] => CriterionType
)
)
[labels:protected] =>
[forwardCompatibilityMap:protected] =>
[baseCampaignId:protected] =>
[baseAdGroupId:protected] =>
[AdGroupCriterionType:protected] => BiddableAdGroupCriterion
[parameterMap:Google\AdsApi\AdWords\v201809\cm\AdGroupCriterion:private] => Array
(
[AdGroupCriterion.Type] => AdGroupCriterionType
)
Is this the way to get the Webpage Urls i am looking for?
Thanks in advance