I found the cause of the problem.
It was - $session->setValidateOnly(true);
SOAP response was NULL ! Nothing!
But when I change to $session->setValidateOnly(false);
I take correctly SOAP response -
object(Google\AdsApi\AdWords\v201710\cm\AdGroupAdReturnValue)#1309
(4) { ...
Although a few months ago everything worked.
Thanks
четверг, 11 января 2018 г., 20:22:43 UTC+2 пользователь Bharani Cherukuri
(AdWords API Team) написал:
>
> Hello,
>
> You code snippet looks fine. However, to investigate the issue further,
> could you enable logging and share us the complete SOAP request and
> response logs along with the clientCustomerId, so I can take a look? Please
> use *Reply privately to author* option to provide the details. You may
> also refer to this PHP code sample
> <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201710/BasicOperations/AddExpandedTextAds.php>
> as
> a reference.
>
> Regards,
> Bharani, AdWords API Team
>
> On Thursday, January 11, 2018 at 10:10:27 AM UTC-5, [email protected]
> <javascript:> wrote:
>>
>> Hi,
>>
>> Please, check out my code:
>>
>> $operations = [];
>> $expandedTextAd = new ExpandedTextAd();
>> $expandedTextAd->setHeadlinePart1($HeadlinePart1);
>> $expandedTextAd->setHeadlinePart2($HeadlinePart2);
>> $expandedTextAd->setDescription($Description);
>> $expandedTextAd->setFinalUrls([$FinalUrl]);
>> $adGroupAd = new AdGroupAd();
>> $adGroupAd->setAdGroupId($AdGroupId);
>> $adGroupAd->setAd($expandedTextAd);
>> $adGroupAd->setStatus(AdGroupAdStatus::PAUSED);
>> $operation = new AdGroupAdOperation();
>> $operation->setOperand($adGroupAd);
>> $operation->setOperator(Operator::ADD);
>> $operations[] = $operation;
>> $result = $adGroupAdService->mutate($operations);
>>
>>
>>
>> But $result is NULL
>>
>>
>> Why?
>>
>>
>> Thanks
>>
>>
>>
>>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/b900f343-97f4-4ebd-94fe-973bb294c25b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.