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 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201809/BasicOperations/UpdateKeyword.php>,
 
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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cb7d2b2f-874f-493d-ba17-d9256e502369%40googlegroups.com.

Reply via email to