I am new to Adwords api so excuse my lack of knowledge.
Just wanted to check if there is any way to programmatically pull the MCC client ID without physically adding it in the session builder code?
Thanks,
Sid
I think you are looking for CustomerService
CustomerService provides information about your accounts. It has a
getCustomers() method that takes no arguments and returns a list of
Customer objects containing fields such as customerId, currencyCode,
and dateTimeZone. CustomerService also has a mutate() method that can
be used to update various attributes of a customer, including the
autoTaggingEnabled and conversionTrackingSetting fields.
Reference: Managing Accounts
Read carefully the annotations for your Adwords API version.
Related
I am using the following API to get Customer group. ShopifyAPI::CustomerGroup. I got customer group names and id but i am not able to retrive the customers for particular customer group.Kindly suggest some ideas.
You can't. Customer groups is not a valid Shopify API resource or an endpoint. Instead, try to get the customers based on field values listed here - Customer API.
It'd help much if your grouping is based on certain conditions that are easy to extract from API endpoints.
I am trying to build a claims aware Application using
MembershipReboot library for authentication
Thinktecture.IdentityModel.45 for authorization.
As far as tutorials go, they are all adding Claims manually to the "UserClaims" Table (not sure which library added that), which contains the UserID, the Type of the Claim and the Value.
I would like to add the claims programmatically to this table, but I am not sure how to do this in a obvious way.
You can add/remove claims via the AddClaim/RemoveClaim API on the UserAccount class. See the SingleTenantWebApp sample for an example:
https://github.com/brockallen/BrockAllen.MembershipReboot/blob/master/samples/SingleTenant/SingleTenantWebApp/Areas/UserAccount/Controllers/HomeController.cs#L28
In trying to automate a workflow, how do I use the D2L REST API to enroll a student in a course?
D2L works on enrollments that are a tuple of the user, the role and the course or org structure (orgunitid represents course or a structural element like a department or faculty). The call to create these enrollments allows you to specify all these values, and other calls allow retreival of the ids for users or courses.
Most often developers need to search by course code, but that is not possible directly on version 9.4.1 or version 10.0 so you will want to locate the d2lid from the course code in the calling code (this course code search is covered in other questions as well).
In Desire2Learn, does the ID and name/description for a given course have the same values in both the SOAP and the Valence APIs? Also, is there a Valence API call for retrieving the list of courses available to the user?
In terms of the suggested calls part of your question: You can get a list of enrollments (both courses and departments and any other structures your school has) using the myenrollments call
To filter by org unit type you can first retrieve the types
i have a order catalogue web site and i want to create a REST API so people can create their own apps and Add an Order or Update an existing order:
Lets say an order has:
OrderId
Product
Quantity
ShippingType
So i need some API to allow someone to send in a new order (orderid would be blank as that would be in the response).
How do you deal with passing in items like Product or Shipping type. These are tables in my db and are keyed off their own specific primary key id. Should the NewOrder API ask for a string name for these fields, should it ask for the id. If it asked for the ID, that would assume they would have to call the GiveMeProductList() method upfront (which gives you the name and id of all product as a dataset).
What is the standard for dealing with this?
Martin Fowler has a good post about the steps toward the glory of REST that you might find useful to come up with REST API.
The media type that I use for sending this information to the server can handle both scenarios, Id and Code/Name. If the user enters the product code manually then I send up the code, if the user asks to pick from a list then I provide the list and send back the Id.