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] 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/d0e533b5-0e7a-44cb-ae27-d3065cce7e8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to