I tried 
$recommendedAd->getRecommendedExtensions()->getLine1Unwrapped();//##`*Fatal 
error*:  Uncaught Error: Call to undefined method 
Google\Protobuf\Internal\RepeatedField::getLine1Unwrapped()`

which doesn't show that method linked, however if I use 
`$recommendedAd->getRecommendedExtensions()->getClass()` it does show that 
method available but I do not know how to call it as doing
 `$recommendedAd->getRecommendedExtensions()->getClass()->getLine1Unwrapped
()' produces

Uncaught Error: Call to a member function getLine1Unwrapped() on string.


Kind of struct here, am I missing something?




On Monday, May 11, 2020 at 7:57:20 PM UTC+5:30, adsapiforumadvisor wrote:
>
> Hi Shiv,
>
> I'm glad the protos helped! For your first issue, could you please provide 
> the complete detailed request and response logs for the call *via Reply 
> privately to author* so I can further investigate the issue? You can find 
> information on enabling logging here 
> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>
> .
>
> For the sitelink extension recommendations, you should 
> getRecommendedExtensions like you already did and from there, you can pull 
> the specific attributes of the sitelink that is recommended such as the 
> link_text or line1/line2. The attributes are listed here 
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v3.common#sitelinkfeeditem>
> .
>
> For the search partners opt in recommendation, there is no information to 
> extract other than the campaign ID since the recommendation is simply 
> telling you to opt into search partners for that specific campaign.
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5004Q1zK8TD:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a28c83bf-63c1-46c7-ada9-e24e8e1c4090%40googlegroups.com.

Reply via email to