I've noticed when using the example file getRelatedKeywords.php from
the library that my results are random strings like this:

Keyword with text "sample keyword 1501483237 0" and match type "EXACT"
was found.
Keyword with text "sample keyword 1501483237 0" and match type
"PHRASE" was found.
Keyword with text "sample keyword 1501483237 0" and match type "BROAD"
was found.
Keyword with text "sample keyword 1501483237 1" and match type "EXACT"
was found.
Keyword with text "sample keyword 1501483237 1" and match type
"PHRASE" was found.
Keyword with text "sample keyword 1501483237 1" and match type "BROAD"
was found.
Keyword with text "sample keyword 1501483237 2" and match type "EXACT"
was found.
Keyword with text "sample keyword 1501483237 2" and match type
"PHRASE" was found.
Keyword with text "sample keyword 1501483237 2" and match type "BROAD"
was found.
Keyword with text "sample keyword 1501483237 3" and match type "EXACT"
was found.

Even though I've specified the following for the keyword:

// Create seed keyword.
$keyword = new Keyword();
$keyword->text = 'bilibo';
$keyword->matchType = 'EXACT';

This is the what appears in my log.

[Dec 30 2009 14:26:33.000000 - INFO] POST /api/adwords/o/v200909/
TargetingIdeaService HTTP/1.1
Host: adwords-sandbox.google.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.2.11
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1456

<?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:ns2="https://adwords.google.com/api/adwords/o/v200909";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <SOAP-ENV:Header>
    <ns2:RequestHeader xsi:type="ns2:RequestHeader">
      <ns1:applicationToken>sdfsdf</ns1:applicationToken>
      <ns1:authToken>*****</ns1:authToken>
      <ns1:developerToken>[email protected]++usd</ns1:developerToken>
      <ns1:userAgent>PHP v5.2.11 - AdWords API PHP Client Library -
v1.2.1 - ThinkFastToys.com</ns1:userAgent>
    </ns2:RequestHeader>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns2:get>
      <ns2:selector>
        <ns2:searchParameters
xsi:type="ns2:RelatedToKeywordSearchParameter">
          <ns2:keywords>
            <ns1:text>bilibo</ns1:text>
            <ns1:matchType>EXACT</ns1:matchType>
          </ns2:keywords>
        </ns2:searchParameters>
        <ns2:ideaType>KEYWORD</ns2:ideaType>
        <ns2:requestType>IDEAS</ns2:requestType>
        <ns2:requestedAttributeTypes>KEYWORD</
ns2:requestedAttributeTypes>
        <ns2:paging>
          <ns1:startIndex>0</ns1:startIndex>
          <ns1:numberResults>10</ns1:numberResults>
        </ns2:paging>
      </ns2:selector>
    </ns2:get>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Transfer-Encoding: chunked
Date: Wed, 30 Dec 2009 19:26:33 GMT
Expires: Wed, 30 Dec 2009 19:26:33 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Server: GFE/2.0

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Header>
    <ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/
cm/v200909" xmlns="https://adwords.google.com/api/adwords/o/v200909";>
      <ns2:requestId>604523352032dcb41ba245eeee0b6564</ns2:requestId>
      <ns2:operations>10</ns2:operations>
      <ns2:responseTime>132</ns2:responseTime>
      <ns2:units>10</ns2:units>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <getResponse xmlns="https://adwords.google.com/api/adwords/o/
v200909" xmlns:ns2="https://adwords.google.com/api/adwords/cm/
v200909">
      <rval>
        <totalNumEntries>300</totalNumEntries>
        <entries>
          <data>
            <key>KEYWORD</key>
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="KeywordAttribute">
              <Attribute.Type>KeywordAttribute</Attribute.Type>
              <value>
                <ns2:Criterion.Type>Keyword</ns2:Criterion.Type>
                <ns2:text>sample keyword 1501483237 0</ns2:text>
                <ns2:matchType>EXACT</ns2:matchType>
              </value>
            </value>
          </data>
        </entries>
        <entries>
          <data>
            <key>KEYWORD</key>
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="KeywordAttribute">
              <Attribute.Type>KeywordAttribute</Attribute.Type>
              <value>
                <ns2:Criterion.Type>Keyword</ns2:Criterion.Type>
                <ns2:text>sample keyword 1501483237 0</ns2:text>
                <ns2:matchType>PHRASE</ns2:matchType>
              </value>
            </value>
          </data>
        </entries>
        <entries>
          <data>
            <key>KEYWORD</key>
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="KeywordAttribute">
              <Attribute.Type>KeywordAttribute</Attribute.Type>
              <value>
                <ns2:Criterion.Type>Keyword</ns2:Criterion.Type>
                <ns2:text>sample keyword 1501483237 0</ns2:text>
                <ns2:matchType>BROAD</ns2:matchType>
              </value>
            </value>
          </data>
        </entries>
        <entries>
          <data>
            <key>KEYWORD</key>
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="KeywordAttribute">
              <Attribute.Type>KeywordAttribute</Attribute.Type>
              <value>
                <ns2:Criterion.Type>Keyword</ns2:Criterion.Type>
                <ns2:text>sample keyword 1501483237 1</ns2:text>
                <ns2:matchType>EXACT</ns2:matchType>
              </value>
            </value>
          </data>
        </entries>
        <entries>
          <data>
            <key>KEYWORD</key>
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="KeywordAttribute">
              <Attribute.Type>KeywordAttribute</Attribute.Type>
              <value>
                <ns2:Criterion.Type>Keyword</ns2:Criterion.Type>
                <ns2:text>sample keyword 1501483237 1</ns2:text>
                <ns2:matchType>PHRASE</ns2:matchType>
              </value>
            </value>
          </data>
        </entries>
        <entries>
          <data>
            <key>KEYWORD</key>
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="KeywordAttribute">
              <Attribute.Type>KeywordAttribute</Attribute.Type>
              <value>
                <ns2:Criterion.Type>Keyword</ns2:Criterion.Type>
                <ns2:text>sample keyword 1501483237 1</ns2:text>
                <ns2:matchType>BROAD</ns2:matchType>
              </value>
            </value>
          </data>
        </entries>
        <entries>
          <data>
            <key>KEYWORD</key>
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="KeywordAttribute">
              <Attribute.Type>KeywordAttribute</Attribute.Type>
              <value>
                <ns2:Criterion.Type>Keyword</ns2:Criterion.Type>
                <ns2:text>sample keyword 1501483237 2</ns2:text>
                <ns2:matchType>EXACT</ns2:matchType>
              </value>
            </value>
          </data>
        </entries>
        <entries>
          <data>
            <key>KEYWORD</key>
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="KeywordAttribute">
              <Attribute.Type>KeywordAttribute</Attribute.Type>
              <value>
                <ns2:Criterion.Type>Keyword</ns2:Criterion.Type>
                <ns2:text>sample keyword 1501483237 2</ns2:text>
                <ns2:matchType>PHRASE</ns2:matchType>
              </value>
            </value>
          </data>
        </entries>
        <entries>
          <data>
            <key>KEYWORD</key>
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="KeywordAttribute">
              <Attribute.Type>KeywordAttribute</Attribute.Type>
              <value>
                <ns2:Criterion.Type>Keyword</ns2:Criterion.Type>
                <ns2:text>sample keyword 1501483237 2</ns2:text>
                <ns2:matchType>BROAD</ns2:matchType>
              </value>
            </value>
          </data>
        </entries>
        <entries>
          <data>
            <key>KEYWORD</key>
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="KeywordAttribute">
              <Attribute.Type>KeywordAttribute</Attribute.Type>
              <value>
                <ns2:Criterion.Type>Keyword</ns2:Criterion.Type>
                <ns2:text>sample keyword 1501483237 3</ns2:text>
                <ns2:matchType>EXACT</ns2:matchType>
              </value>
            </value>
          </data>
        </entries>
      </rval>
    </getResponse>
  </soap:Body>
</soap:Envelope>

How can I accurately test my code when I'm not provided with accurate
data?

--

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.


Reply via email to