Re: more examples for php google ads api recommendations type

2020-05-11 Thread Google Ads API Forum Advisor Prod
Hi Shiv, This issue appears to be related to the client library so I would recommend posting it on the GitHub Issues page here. Their team will be more equipped to assist you. Regards, Mitchell Google Ads API Team ref:_00D1U1174p._5004Q1zK8TD:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=

Re: more examples for php google ads api recommendations type

2020-05-11 Thread Shiv Kumar
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()

Re: more examples for php google ads api recommendations type

2020-05-11 Thread Google Ads API Forum Advisor Prod
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. For the sitelink extension r

Re: more examples for php google ads api recommendations type

2020-05-09 Thread Shiv Kumar
Thank you for the enums list, it solved most of the issues I had, but there is a function getType() which always returns 11 integer value and I can't relate to it for the label part. For example foreach ($response->iterateAllElements() as $googleAdsRow) { /** @var GoogleAdsRow $goog

Re: more examples for php google ads api recommendations type

2020-05-06 Thread Google Ads API Forum Advisor Prod
Hi Shiv, For your first question, you can find this information in the resource of the desired recommendation type. For the example of keyword recommendations, you can retrieve the values available in KeywordRecommendation and for text ad recommendations, TextAdRecommendation. To understand th

Re: more examples for php google ads api recommendations type

2020-05-05 Thread Shiv Kumar
Also in the above code example I do not know how to match `$recommendedAd->getMatchType()` numeric value to its actual text value like (2=> Exact, 4 => Broad). On Tuesday, May 5, 2020 at 10:45:37 PM UTC+5:30, Shiv Kumar wrote: > > The issue I am facing is that the google PHP library wrapper does

Re: more examples for php google ads api recommendations type

2020-05-05 Thread Shiv Kumar
The issue I am facing is that the google PHP library wrapper doesn't tell which function to use for each type of recommendation report for example : foreach ($response->iterateAllElements() as $googleAdsRow) { /** @var GoogleAdsRow $googleAdsRow */ $recommendation = $goog

RE: more examples for php google ads api recommendations type

2020-05-05 Thread Google Ads API Forum Advisor Prod
Hi Shiv, Thank you for reaching out. You can see here for an example of getting all Text Ad recommendations. This example uses the recommendation report so you can modify it by using the different attributes listed there. For example, to get recommendations of type KEYWORD, you can change 'WHER

more examples for php google ads api recommendations type

2020-05-04 Thread Shiv Kumar
It would be great if someone point me to the PHP client library documentation for google ads API for retrieving data for all recommendation types. I really find it hard as the basic examples provided or the documentation of the API or the PHP library doesn't even specify which class methods to