Hi,
From your description it sounds like you are creating a new
AdGroupService in each iteration of your loop. Every time you create
a service it needs to fetch the WSDL, and you could be that you are
being temporarily blocked due to excessive requests to this WSDL. We
recommend that you create the service only once outside of the loop
and reuse it for every request.
In addition, you can create more than one ad group in a request by
using multiple operations. More information is available here:
http://adwordsapi.blogspot.com/2010/03/discover-v2009-do-more-with-mutate.html
Finally, the latest version of the AdWords API PHP client library
added support for WSDL caching, so that new services can load the WSDL
from a local cache instead of fetching it from the server again. This
can be enabled by setting the WSDL_CACHE option in settings.ini:
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/src/Google/Api/Ads/AdWords/settings.ini#23
Best,
- Eric Koleda, AdWords API Tam
On May 3, 5:11 pm, OneTime <
onetime.mas...@gmail.com> wrote:
> We are having periodic failures in retrieving the WSDL. We are able
> to process many ad groups just fine, then a SOAP fault
>
> PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from
> '
https://adwords.google.com/api/adwords/cm/v200909/AdGroupService?
> wsdl' : failed to load external entity "
https://adwords.google.com/
> api/
> adwords/cm/v200909/AdGroupService?wsdl"
> in /opt/ot/app/OneTime2/console/src/php/ext/aw_api_php_lib_1.2.2/src/
> Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 126
>
> Sometimes we make it through all the ad groups and the SOAP Fault with
> WSDL failure error occurs in ad generation.
>
> We've retried this particular campaign several times and the failure
> is always at a different stage in processing, but due to the same WSDL
> failure.
>
> I commented about this in dhoang's message:
http://groups.google.com/group/adwords-api/browse_thread/thread/3b0e1...
>
> but thought it may not be related and thus posting again here.
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:http://adwordsapi.blogspot.comhttp://
groups.google.com/group/adwords-api