Hello,

 Sorry that you're running into trouble--I'm not able to replicate it.
As a first thing to check, I just wanted to make sure that your ~/
adwords.properties file is properly set up with the credentials you
want to use. If you're trying to go against the Sandbox, you also need
to make sure that the 'alternateUrl' credential is properly
configured. There's examples of all that in the comments of the
create_all.rb file.

 Assuming that you have the credentials properly configured, could you
try running the create_all.rb file again, but change this line at the
bottom of the file

  ENV['ADWORDS4R_DEBUG'] = 'false'

to

  ENV['ADWORDS4R_DEBUG'] = 'true'

This should output the SOAP requests and responses to a file in the
directory you run the program from. Take a look at the SOAP response
for the addAdGroup() call, and pass along the body of the SOAP fault
if you could.

Cheers,
-Jeff Posnick, AdWords API Team


On Dec 21, 2:25 am, Plaudit <[email protected]> wrote:
> Greetings!
>
> Just started fooling around with the adwords4r gem, and I get this
> lovely when I run the *unedited* create_all.rb example code for
> adwords4r (from the sandbox):
>
> SOAP Error: One or more input elements failed validation. (code: 122)
> Source: create_all.rb:75:in `main'
>
> The offending code seems to be, in and around line 75:
>
>     ad_group_data = {
>       :name => 'Sample Ad Group %s' % Time.new.to_s, # Ensure name is
> unique.
>       :keywordMaxCpc => 100000, # 100000 micros = 0.1 unit of
> currency.
>       :siteMaxCpc => 100000, # 100000 micros = 0.1 unit of currency.
>     }
>
>     ad_group = adwords.addAdGroup(campaign.id,
> ad_group_data).addAdGroupReturn
>     puts 'Ad group id %d was successfully added.' % ad_group.id
>
> Now I've looked a bit at the developer docs and can't see what the
> problem is.  Any thoughts?  Thanks!
--~--~---------~--~----~------------~-------~--~----~
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