Hello again,

Sorry for the delay in the answer, these are the whole SOAP request
and response for the Campaign's AdGroups list:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/
v200909" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><SOAP-
ENV:Header><ns1:RequestHeader
xsi:type="ns1:RequestHeader"><ns1:applicationToken>****</
ns1:applicationToken><ns1:authToken>****</
ns1:authToken><ns1:clientEmail>****</
ns1:clientEmail><ns1:developerToken>****</
ns1:developerToken><ns1:userAgent>AwApi-PHP-2.0.1-Digital Click Media</
ns1:userAgent></ns1:RequestHeader></SOAP-ENV:Header><SOAP-
ENV:Body><ns1:get><ns1:selector><ns1:campaignId>57836699</
ns1:campaignId><ns1:statsSelector><ns1:dateRange><ns1:min>20100725</
ns1:min><ns1:max>20100725</ns1:max></ns1:dateRange></
ns1:statsSelector></ns1:selector></ns1:get></SOAP-ENV:Body></SOAP-
ENV:Envelope>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Header><ResponseHeader xmlns="https://
adwords.google.com/api/adwords/cm/
v200909"><requestId>7a3ca53032fdacb78cee511d5036d6bb</
requestId><operations>1</operations><responseTime>251</
responseTime><units>1</units></ResponseHeader></
soap:Header><soap:Body><getResponse xmlns="https://adwords.google.com/
api/adwords/cm/v200909"><rval><totalNumEntries>1</
totalNumEntries><Page.Type>AdGroupPage</
Page.Type><entries><id>2177288939</id><campaignId>57836699</
campaignId><campaignName>Despedida Solteros</campaignName><name>Artí
culos despedidas</name><status>ENABLED</status><bids xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"
xsi:type="ManualCPCAdGroupBids"><AdGroupBids.Type>ManualCPCAdGroupBids</
AdGroupBids.Type><keywordMaxCpc><amount><ComparableValue.Type>Money</
ComparableValue.Type><microAmount>200000</microAmount></amount></
keywordMaxCpc></bids><stats><startDate>20100725</
startDate><endDate>20100725</endDate><network>ALL</network><clicks>54</
clicks><impressions>534</
impressions><cost><ComparableValue.Type>Money</
ComparableValue.Type><microAmount>12000000</microAmount></
cost><averagePosition>3.350187265917603</
averagePosition><averageCpc><ComparableValue.Type>Money</
ComparableValue.Type><microAmount>222222</microAmount></
averageCpc><averageCpm><ComparableValue.Type>Money</
ComparableValue.Type><microAmount>22471910</microAmount></
averageCpm><ctr>0.10112359550561797</ctr><conversions>0</
conversions><conversionRate>0.0</
conversionRate><costPerConversion><ComparableValue.Type>Money</
ComparableValue.Type><microAmount>0</microAmount></
costPerConversion><conversionsManyPerClick>0</
conversionsManyPerClick><conversionRateManyPerClick>0.0</
conversionRateManyPerClick><costPerConversionManyPerClick><ComparableValue.Type>Money</
ComparableValue.Type><microAmount>0</microAmount></
costPerConversionManyPerClick><Stats.Type>Stats</Stats.Type></stats></
entries></rval></getResponse></soap:Body></soap:Envelope>


Just as you thought, the id I'm "using" is not the one in the response
XML. I've checked everything and this is what I found.

First I checked my code verifying I'm using the correct id and
everything is fine. The request I'm doing in PHP is:

            $adGroupService = $user->GetAdGroupService('v200909');
            $selector = new AdGroupSelector();
            $selector->adGroupIds = array($id);
            $page = $adGroupService->get($selector);

$user object is an AdWordsUser from the Google's PHP implementation. I
have also verified also that $selector value just before the get()
call is:

        AdGroupSelector Object
        (
            [campaignId] =>
            [adGroupIds] => Array
                (
                    [0] => 2177288939
                )

            [statsSelector] =>
            [paging] =>
        )

Which have the correct id number. I've also noticed that the id the
SOAP request is using is the max integer, so the Google's PHP
implementation may have some issue with this, I'm going to explore a
bit inside to see when does this overflow happens, I will post any
result. Any ideas or known issues in Google's PHP implementation would
help too.

Thank you very much.


On 23 jul, 12:42, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> Hi Birckin,
>
> Could you confirm if the adgroup id in your request is correct? I
> can't seem to locate this ad group.
> Could you try retrieving the adgroup ids from the campaign once more
> and post the sanitized xml (or the request id) if this adgroup id is
> valid?
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor
>
> On Jul 22, 3:47 pm, Birckin <birc...@gmail.com> wrote:
>
>
>
> > Hello,
>
> > I'm currently using v200909 for PHP, and I'm having an issue when
> > getting information of some AdGroups.
>
> > The problem is quite odd, because the response from the API is that
> > the AdGroup doesn't exist (see SOAP response below), but it does exist
> > in the Campaign's AdGroups list, and so it does in the google.com/
> > adwords website with its whole information of keywords, ads and such
> > (logging in with the same user and password I use in the auth.ini
> > file).
> > Also, the problem only happens with some AdGroups (even active ones),
> > I can retrieve the whole information of other several AdGroups through
> > the API without any problem.
>
> > I also haven't changed the application code in some time, and this
> > problem started to happen suddenly a few days ago, around Thursday
> > from the past week. What may it be?
>
> > I'm copying the SOAP request and response of the problem if it is of
> > any help:
>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
> > envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/
> > v200909" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><SOAP-
> > ENV:Header><ns1:RequestHeader
> > xsi:type="ns1:RequestHeader"><ns1:applicationToken>****</
> > ns1:applicationToken><ns1:authToken>****</
> > ns1:authToken><ns1:clientEmail>****</
> > ns1:clientEmail><ns1:developerToken>****</
> > ns1:developerToken><ns1:userAgent>AwApi-PHP-2.0.1-Digital Click Media</
> > ns1:userAgent></ns1:RequestHeader></SOAP-ENV:Header><SOAP-
> > ENV:Body><ns1:get><ns1:selector><ns1:adGroupIds>2147483647</
> > ns1:adGroupIds></ns1:selector></ns1:get></SOAP-ENV:Body></SOAP-
> > ENV:Envelope>
>
> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
> > envelope/"><soap:Header><ResponseHeader xmlns="https://
> > adwords.google.com/api/adwords/cm/
> > v200909"><requestId>622b963301dfa10acd54444452f355f4</
> > requestId><operations>1</operations><responseTime>134</
> > responseTime><units>1</units></ResponseHeader></
> > soap:Header><soap:Body><getResponse xmlns="https://adwords.google.com/
> > api/adwords/cm/v200909"><rval><totalNumEntries>0</
> > totalNumEntries><Page.Type>AdGroupPage</Page.Type></rval></
> > getResponse></soap:Body></soap:Envelope>
>
> > Thanks in advance.- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to