Java SDK for Facebook Ads API 2.10 missing AdsInsights.getFieldImpressionDevice() method - facebook-ads-api

Currently using Facebook Ads SDK for Java v2.9 and trying to upgrade to v2.10 or v2.11. However, neither of the newer versions has the method getFieldImpressionDevice on the AdInsights object? I haven't found any change log info that discusses a change or deprecation around this call. Anyone have any insight into this problem?
Also a little confused as to why github :
https://github.com/facebook/facebook-java-ads-sdk/
doesn't have the 2.10 or 2.11 libs only the 2.9 libs even though this link indicates it, eg.,
src/main/java/com/facebook/ads Ads SDK v2.11 Release Nov 8, 2017
Thanks for any help

There's a known issue it turns out. Some (or all) of the breakdown fields and methods in the AdsInsights class were left out. It can be worked around using raw json, eg.,
JsonObject jo = insight.getRawResponseAsJsonObject();
JsonElement je = jo.get("impression_device");
String device = je.getAsString();

Related

Non-public API usage Flutter.framework/Flutter: _kCTFontOpticalSizeAttribute error on upload of flutter app

I've spent the last two days trying to submit my app to the App Store. I get the message below:
ITMS-90338: Non-public API usage - The app references non-public symbols in Frameworks/Flutter.framework/Flutter: _kCTFontOpticalSizeAttribute. If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/
Here's what Ive done so far:
a) I've scoured my code for any reference to Font Sizes - I had some that were constants - I changed the constant name to:
k_fontSizeMyName
b) I tried to download the latest flutter sdk version
c) I rebuilt my entire keychain.
Im so desperate right now. im tired.
What do I do?
the internet has no mention of this bug.
I've got the same message several times from the App Store Team a few minutes ago.
I think the problem was the Flutter SDK version...!
I used to use the latest version(Flutter SDK version 1.12.3-pre.26) at first but changed the Flutter SDK version to 'v1.9.1+hotfix.3' and the problem is resolved!!!
I solved the problem with the following instruction below:
Switching Flutter SDK version to 'v1.9.1+hotfix.3' with the command:
flutter version v1.9.1+hotfix.3
Archive and upload again ...
Problem Solved!!!!!! 🤩
This may be a recently-introduced Skia regression.
The code was included in Flutter v1.12.3, so v1.12.2 on the dev channel should work.
Flutter's Bad Build wiki page will be updated when there is a fix for this issue.
Update: This has been resolved in Flutter v1.12.5.
Since there have been a lot of problems with flutter recently(when I tried the fix mentioned in another answer I different error) I though I should include this https://github.com/flutter/flutter/releases
Just type flutter version [version code]

How to get selected messages in groupwise add in

I am trying to get selected messages from GroupWise client add in.
previously our code to get it was working fine using C3POManager with GroupWise version 8, but with new GroupWise version 2014 it has stopped working.
previously working code as below
Dim oSelectedMessages As Object = C3POManager.ClientState.SelectedMessages
If oSelectedMessages.Count > 0 Then
sMessageID = oSelectedMessages(1).MessageID
End If
now with GroupWise 2014 oSelectedMessages is Nothing (null).
I have tried searching on internet and also tried looking at Novell's documentation but couldn't find any suitable solution.
can any one suggest what is changed by groupwise or how to overcome this issue.
Thanks,
Tank
It sounds like you may be using an obsolete version of the C3PO objects. Make sure you have the latest Groupwise SDK.
There is also the Groupwise C3PO support forum.

Nullreference when trying to set ACL property of new Parse object

As the title already explains I have null reference exception when I try to set the ACL property of my new parse object.
The code is this:
ParseObject storeAssets = new ParseObject("StoreAssets");
storeAssets["myKey"]="MyValue";
ParseACL storeAssetsPermissions = new ParseACL(ParseUser.CurrentUser)
{
PublicReadAccess = true,
PublicWriteAccess = false
};
storeAssets.ACL = storeAssetsPermissions;
the code looks like in the examples of the documentation but it's not working...
I believe it stopped working with new version of Parse Unity SDK, because the app that I have on the store uses the same code and works correctly.
The code gives me Nullreference exception on the ACL setter.
I am using Parse Unity SDK version 1.6.2
Is anybody else experiencing the same problem?
Since I spent hours trying to figure out what the problem was, I think I will answer my question so that other people that encounter the same problem don't waste time.
I solved the NullReferenceException by downgrading to Parse Unity SDK version 1.6.1.
You can download it following this link
https://parse.com/downloads/windows/Parse/1.6.1
I tried one more time with version 1.6.2 just to be sure. Result is that with the same exact code, in version 1.6.1 the code works while in version 1.6.2 I have NullReferenceException
If you find a fix in 1.6.2 please share it.
Ok
This issue is solved. It was a tricky call, because it was due to the Asset store publishing system that corrupted the Parse Package, so you would think you got the latest version of Parse, but it was not the case.
https://github.com/ParsePlatform/Parse-SDK-dotNET/issues/155

What is a Parse Collection?

I'm learning Parse (the Javascript flavor) using their Todo App tutorial. I'm trying to write my first query. In the tutorial, I found this code:
var TodoList = Parse.Collection.extend({ ... });
I can't find any info about Parse.Collection in their JS Guide nor their API docs.
Can someone shed some light on what a Parse.Collection is and when I should use it?
You're not seeing anything in the docs because Parse.Collection was removed from the JavaScript SDK in v.1.6.0.
Downloads Page and JavaScript Changelog
SDK no longer contains Backbone-specific behavior. Moving forward, the core SDK will not be tied to any single framework, but we will work with the community to produce up-to-date bindings like Parse+React. The major changes are the removal of Parse.Collection, and allowing Parse.Objects to act as event channels.
In previous versions of the SDK, Parse.Collection was used almost identically to Backbone.Collection, as the Parse SDK was based on Backbone. Things are particularly confusing right now because tutorials on parse.com use pre-1.6.0 versions of the SDK.

Checking PhoneGap version in xCode

I have a problem with my phonegap-based project, and I'm suspecting I'm running a different version than I think. the config.xml file I'm using states it's 2.0.0, while I thought it's 2.9.
Is there a way to actually check the phonegap version in xcode, and not relay on a comment in a single file?
Thank you!
you can use device object's cordova(device.cordova) property to get the version of phonegap.
Below link provides more information for same.
http://docs.phonegap.com/en/3.0.0/cordova_device_device.md.html#Device
I thought I would add to #user1279357's answer, which demonstrates how to acquire the version of Cordova from the JavaScript side. However, on the Objective-C side, if you add #import <Cordova/CDVAvailability.h> you can call the constant: CORDOVA_VERSION_MIN_REQUIRED.
This constant is an int that will provide you with the version of Cordova you are using. The value is in the form of: 20000 = 2.0, 20800 = 2.8 e.t.c.
If you need to do checks against this value, there are other constants defined in this file for each of the versions, e.g. __CORDOVA_2_0_0 = 2.0.
Look here to see the source file for CDVAvailability.h.
Look in your cordova.js file at the top in the comments.
If you're using a really old version of cordova, it will be in the listed in the filename like "Cordova2.7.js"

Resources