The examples in PHP library of Adwords api for creating Responsive Ad is not working. It gives fatal error yelling Cannot access empty property.

77 views
Skip to first unread message

DOMADIA KENIL

unread,
Jun 1, 2016, 8:51:49 AM6/1/16
to AdWords API Forum
I have posted the error below :

"Notice
: Undefined index: businessName in /opt/lampp/lib/php/Google/Api/Ads/AdWords/v201605/AdGroupAdService.php on line 125
Notice: Undefined index: in /opt/lampp/lib/php/Google/Api/Ads/AdWords/v201605/AdGroupAdService.php on line 125
Fatal error: Cannot access empty property in /opt/lampp/lib/php/Google/Api/Ads/AdWords/v201605/AdGroupAdService.php on line 125"

I am not able to find correct method for creating Responsive Ad using Adwords API.

Umesh Dengale

unread,
Jun 1, 2016, 11:31:14 AM6/1/16
to AdWords API Forum
Hello,

You could create the ResponsiveDisplayAd using AdWords API v201605 in test account only. Please check out Responsive Ads for Display guide and AddResponsiveDisplayAd PHP example code from the PHP client library. If the issue is not resolved then provide me privately the SOAP XML request and response logs. Just click Reply privately to author in the forum when responding.

Regards,
Umesh, AdWords API Team.

DOMADIA KENIL

unread,
Jun 1, 2016, 2:52:22 PM6/1/16
to AdWords API Forum
I tried in the exact manner. Still it doesnt seem to work. Need some correct solution.

Josh Radcliff (AdWords API Team)

unread,
Jun 2, 2016, 9:11:48 AM6/2/16
to AdWords API Forum
Hi,

It turns out there's a problem with the PHP library's AdGroupAdService.php file. The advertiserName field and its references should be changed to businessName. My colleague is working on an updated version of the client library to fix this.

Thanks,
Josh, AdWords API Team

Thanet Knack Praneenararat (AdWords API Team)

unread,
Jun 16, 2016, 10:52:17 AM6/16/16
to AdWords API Forum
Hi All,

For your information, the latest release (v10.0.0) contains the fix for AdGroupAdService.php.

Best,
Thanet, AdWords API Team
Reply all
Reply to author
Forward
0 new messages