How To Expose AdWords To JavaScript Via ClearScript?
Context: VS2015 Community; C#; ClearScript.V8.5.4.5; Google.AdWords.18.25.0 I'm trying to create a scripting environment to do my Budgets. One the C# side, I'm setting up a JScript
Solution 1:
You should be able to do the cast in script code. Try this:
// C#
JSengine.Script.host = new HostFunctions();
Then, in your script:
// JavaScript
var bos = user.GetService(AdWordsService.v201603.BudgetOrderService);
bos = host.cast(BudgetOrderService, bos);
Or you can expose a delegate that does the cast in C# code.
Post a Comment for "How To Expose AdWords To JavaScript Via ClearScript?"