Hi Dan,

In your code, I see that when you create the ExpandedTextAd object, you are 
setting the AdGroupAd object as the AdId. Please change this line of code 
to the one below and retry the request and let me know if it works. 

$ad->setId($adGroupAd->getAd()->getId());


Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2eb2c933-d534-42b5-afcc-29a32daf1ca9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • PHP Fatal error... Dan Hai
    • Re: PHP Fa... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
      • Re: PH... Dan Hai
        • Re... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to