fbsamples / audience-network

Open source projects to demonstrate SDK and sample code usages and integration, and to collaborate and support peers in this community.
https://developers.facebook.com/docs/audience-network
Other
318 stars 370 forks source link

Test ads not working in iOS 14 with RTB end point as well audience network SDK #131

Closed pm-preety-narvekar closed 3 years ago

pm-preety-narvekar commented 4 years ago

Test ads not working on ios14, even after sending ifa and other required parameters in request, using RTB end point https://an.facebook.com/placementbid.ortb

Below curl call responds with blank content, even when the request is for test ads:

curl --location --request POST 'https://an.facebook.com/placementbid.ortb' \--header 'Content-Type: application/json' \--data-raw '{ "app": { "bundle": "1175273098", "id": "1175273098", "name": "SampleApp", "publisher": { "id": "2526468451010379" }, "storeurl": "https://itunes.apple.com/us/app/pubmatic-sdk-app/id1175273098?mt=8", "ver": "1.0" }, "at": 1, "cur": [ "USD" ], "device": { "connectiontype": 2, "devicetype": 4, "h": 667, "ifa": "57BA290F-7757-47DF-88BD-F2BF4ADE5F1C", "js": 1, "language": "en", "lmt": 0, "make": "Apple", "model": "iPhone", "os": "iOS", "osv": "14.0", "pxratio": 2, "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148", "w": 375 }, "ext": { "platformid": "2526468451010379" }, "id": "0B0085A5-5CF1-4525-8688-3FBD1BD951D3", "imp": [ { "banner": { "h": 50, "pos": 0, "w": -1 }, "clickbrowser": 0, "id": "8D01D140-87B3-4ED1-8C46-EA832F9F05A0", "instl": 0, "secure": 1, "tagid": "2526468451010379_2526476071009617" } ], "test": 1, "tmax": 5000, "user": { "buyeruid": "<Access_Token_from_FAN_SDK>" }}'

Below curl call works when triggered from iOS11 simulator/device:

curl --location --request POST 'https://an.facebook.com/placementbid.ortb' \--header 'Content-Type: application/json' \--data-raw '{ "device": { "devicetype": 4, "w": 375, "h": 667, "js": 1, "ifa": "BA9F80C1-806A-4F48-A934-35171B007D61", "osv": "11.0.1", "lmt": 0, "connectiontype": 2, "os": "iOS", "pxratio": 2, "language": "en", "make": "Apple", "ua": "Mozilla\/5.0 (iPhone; CPU iPhone OS 11_0_1 like Mac OS X) AppleWebKit\/604.2.10 (KHTML, like Gecko) Mobile\/15A8401", "model": "iPhone" }, "tmax": 5000, "id": "CAC12E88-243B-42C8-A99A-DA43AAB9A1C7", "test": 1, "app": { "id": "1175273098", "bundle": "1175273098", "storeurl": "https:\/\/itunes.apple.com\/us\/app\/pubmatic-sdk-app\/id1175273098?mt=8", "name": "SampleApp", "publisher": { "id": "2526468451010379" }, "ver": "1.0" }, "imp": [ { "secure": 1, "tagid": "2526468451010379_2526476071009617", "banner": { "w": -1, "pos": 0, "h": 50 }, "id": "46B75648-347D-4B26-99F5-1C5F95ECE741", "clickbrowser": 0, "instl": 0 } ], "ext": { "platformid": "2526468451010379" }, "at": 1, "cur": [ "USD" ], "user": { "buyeruid": "<AccessToken_from_FAN_SDK>" }}'

When we used our FAN test tag directly in iOS sample app mentioned at: https://github.com/fbsamples/audience-network/tree/master/samples/ios, same behaviour is observed.

Please let us know if any more information is required.

Thanks in advance!

sharoni commented 3 years ago

Hi @pm-preety-narvekar , please make sure ATE flag is set correctly as per instructions here.

sharoni commented 3 years ago

Closing task now, please re-open if setting ATE flag does not resolve the issue.