I believe the resources should define getters and setters for all the 
attributes which do the appropriate wrapper calls rather than expecting the 
user of the api to tediously call wrapper as in the following

payload = client.resource(:CampaignBudget)

payload.name = client.wrapper.string(name)


which should just be imho

payload.name = name


Similarly, resource and operation should take hashes as args and set the 
corresponding attributes

payload = client.resource(:CampaignBudget, {name: name, amount_micros: amount, 
delivery_method: 'ACCELERATED', explicitly_shared: true})


You'll note that I expect the setter for 'delivery_method' to know how to 
find its enum and lookup the value.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ce9bf5b6-479a-41b7-adf2-5e270101c45c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Don Mitchell
    • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to