I'm using the Ruby client library and trying to use the TargetingIdea
service. When I use the sandbox, I get some results back, but when I
use my production credentials, I get this error:

AdWords::Error::GoogleInternalError: get Call Failed:
#<SOAP::SOAPElement:0x1031202d8>

Here is my code:

service = @adwords.service("TargetingIdea", 200909)

    kw = service.module::Keyword.new
    kw.text = keyword
    kw.matchType = "BROAD"

    parameter1 = service.module::RelatedToKeywordSearchParameter.new
    parameter1.keywords = [kw]

    parameter2 =
service.module::AverageTargetedMonthlySearchesSearchParameter.new
    parameter2.operation = service.module::LongComparisonOperation.new
    parameter2.operation.minimum = 0
    parameter2.operation.maximum = 100_000_000_000

    selector = service.module::TargetingIdeaSelector.new
    selector.searchParameters = [parameter1, parameter2]
    selector.requestedAttributeTypes =
["AVERAGE_TARGETED_MONTHLY_SEARCHES"]
    selector.ideaType = "KEYWORD"
    selector.requestType = "STATS"
    selector.localeCode = "ja_JP"
    selector.currencyCode = "JPY"
    selector.paging = service.module::Paging.new
    selector.paging.startIndex = 0
    selector.paging.numberResults = 1
    service.get(selector) #Fails here

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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