Ads Targeting & Facebook Ads API - facebook

I am submitting the following target criteria:
{countries":["US"],
"cities":{"name":"Gilbert, AZ"},
"zips":[],
"regions":[],
"radius":0,
"locals":null,
"keywords":[],
"user_adclusters":[],
"interested_in":null,
"genders":null,
"age_min":25,
"age_max":0}
The error I'm getting back is:
(Exception - #0) Invalid Cities.
Can someone help me?
Thanks!
Eric

Try including the ID of the city too:
(the 'key' you get back from the search endpoint)
e.g.
countries":["US"],"cities":[{"id": 2413131,"name":"Gilbert, AZ"},{//SOME OTHER CITY}],"zips":[],"regions":[],"radius":0,"locals":null,"keywords":[],"user_adclusters":[],"interested_in":null,"genders":null,"age_min":25,"age_max":0}
Sometimes supplying the name only doesn't work

Related

why I get error from get request when i try to get last coins

when I try to make get request with https://pro-api.coinmarketcap.com/v2/cryptocurrency/info?CMC_PRO_API_KEY=key.
I get an error msg - value must contain at least one of [id, symbol, slug, address]
But from what I understand I can get 100 in a straight.
I would love to understand where I am wrong, thanks.
Check the api docs: https://coinmarketcap.com/api/documentation/v1/#operation/getV2CryptocurrencyInfo
You simply need to add an additional query parameter ...info?CMC_PRO_API_KEY=key&id=1. You are not providing any information about what you want specific crypto info you want.

Workday: Put_Customer returning an error

We are using Snaplogic to load records into workday. Currently, extracting customer records from the source and trying to load them into workday using the object Put_Customer of web service Revenue_Management.
I was getting the following error:
But I'm not getting any category information from the source. So, I tried putting the value for Customer_Category_Reference as 1. But I ended up getting the following error.
The documentation for workday is not helpful and this has been a blocker for me for some time now.
Any help will be appreciated.
Update:
Trying to get customer categories using the Get_Customer_Categories object of Revenue_Management web service using Snaplogic. But getting the following error:
Failure: Soap fault, Reason: Processing error occurred. The task submitted is not authorized., Resolution: Address SOAP fault message and retry
Unfortunately I don't have access to a tenant at this time to validate . However it is likely to work based in prior experience . Perhaps you could create a customer in Workday, through the GUI. Then do get customer API call. Note the category reference . Then, use that in your put customer call
If you look at the API documentation, you will find that Put_Customer accepts a WID in the Customer_WWS_Data object. If you search for "Customer Categories" in Workday, you will likely find the report of the same name. Just select the category that you want your newly loaded customers to default to (click on the magnifying class, then on the ellipsis, Integration Ids, View Ids). The Workday ID will appear at the top.
I have not used the Revenue Management API, but my code for creating a position reference in the Compensation API is probably very similar to what you need to do for the Customer Category reference:
public static Position_ElementObjectType getPositionReference(string WID) {
return new Position_ElementObjectType {
ID = new Position_ElementObjectIDType[] {
new Position_ElementObjectIDType {
type = "WID",
Value = WID
}
}
};
}

OpenGraph post failed with user Message and User Tag

i create an open graph action and i want to add a friend in the "message" attribute.
so i use this code #[AaJV9NKZT5DThMKtVEAQzcwkt6i3Zo9uPdHNEABJ0-tPAv_0pdDwuvxIgah4F3lomf-w09PdtpoXgzWnkKGeCSnwMhGHqlob_kLw5Og2Pv26FA]
The Long id with AaJV9.. comes from Facebook https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends
But every time i get this object back
error: Object
code: 1611150
message: "Mention tokens must be in #[username], #[userid] or #[facebook user profile URL]"
type: "Exception"
I hope u have an idea of fixing that.
I use Api Vers. 2.0
here is the message example:
message: 'Ich packe meinen Koffer VARIABEL gemeinsam mit #[AaJV9NKZT5DThMKtVEAQzcwkt6i3Zo9uPdHNEABJ0-tPAv_0pdDwuvxIgah4F3lomf-w09PdtpoXgzWnkKGeCSnwMhGHqlob_kLw5Og2Pv26FA] '
What we now know it is a bug!
https://developers.facebook.com/bugs/384417055034065/

QBO API V3.0: Persistent error today retrieving Tax Rates

We have consistently getting the following error today when using API V3.0 to retrieve TaxRate from QBO:
An application error has occurred while processing your request - Detail: System Failure Error: An unexpected error occurred while accessing or saving your data. Please wait a few minutes and try again. If the problem persists, contact customer support. - Error Code: 10000
Is this a temporary issue with the servers or has something changed in the API ?
Thanks
I tried both the taxrate endpoints(findById and Query) from ApiExplorer and got a successful response.
GetById - https://qb.sbfinance.intuit.com/v3/company/688779980/taxrate/2
Query - https://qb.sbfinance.intuit.com/v3/company/688779980/query?query=select * from TaxRate
Can you please give it a try from ApiExplorer and check if you are hitting the correct endpoints. Otherwise you can raise a support ticket mentioning your company's relamID.
EDIT
Standard BASE URL for V3 - https://quickbooks.api.intuit.com/v3/company
We get the following when we try this call using devkit -
https://quickbooks.api.intuit.com/v3/company/1119166485/query?query=select+*+from+TaxRate&requestid=faf9f5e207134f24930eef40c9b8a21a&
Thanks
There is a bug in .net devkit where IDSquery will not work for count.
You need to use the following lamda function until the fix is in place-
QueryService AccQueryService2 = new QueryService(context);
int accs22= AccQueryService2.Select(c => c).Count();
Refer:
https://intuitpartnerplatform.lc.intuit.com/questions/829658-how-to-select-count-from-invoice-using-idsquery-to-return-int?jump_to=comment_1941998
EDIT:
The team has identified this a bug. They will rectify this in the next release around 1 month from now.

Get language-specific name using API

Is there a way to retrieve language-specific name for a user, using Graph API?
I am finding answer of this question. And finally, I got a solution for this.
step 1. First, request below api
/v2.4/me?fields=id,name,locale
then, you received locale information of the user.
step 2. Now, request below api
/v2.4/me?fields=id,name?locale="locale received in step 1"
If you use android facebook sdk like me, then write code like below.
Bundle bundle = new Bundle();
bundle.putString("fields", "id,name,locale");
//bundle.putString("locale", "ko_KR");
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/me",
bundle,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
Log.d(TAG, "response -> " + response.getRawResponse());
}
}
).executeAsync();
"me" can be converted into "". I tested in the graph api(v2.4). Thank you!
Not sure if that’s what you mean, but there’s a field called "name_format" in the FQL user table:
name_format : string : The user's name formatted to correctly handle Chinese, Japanese, Korean ordering.
Edit: No, sorry, I’m just realizing this only gives you something like "name_format": "{first} {last}", so that first and last name can be printed out in the right order.