Hi ,
We are trying to serve video ads from DFP in our Android media player application that is using default native player.As part of this effort we have integrated IMA sdk 3.2.1 and google play services ads 7.8.0
Issue:
We are sending ad request as follows.
Actual Ad URL :
%REFERRER_URL_ESC_ESC%%&description_url=%%DESCRIPTION_URL_ESC_ESC%%&correlator=%%CACHEBUSTER%%
Code Snippet
mPrerollTagUrl = Uri.encode(mPrerollTagUrl);
Log.d("ADS","********* AdTagUrl after encode "+mPrerollTagUrl);
request.setAdTagUrl(mPrerollTagUrl);
request.setAdDisplayContainer(mAdDisplayContainer);
mAdsLoader.requestAds(request);
URL after encode is as mentioned below :
%3Ds%26gdfp_req%3D1%26env%3Dvp%26output%3Dvast%26unviewed_position_start%3D1%26url%3D
%25%25REFERRER_URL_ESC_ESC%25%25%26description_url%3D%25%25DESCRIPTION_URL_ESC_ESC%25%25%26correlator%3D
%25%25CACHEBUSTER%25%25
After using encode on actual ad tag url, we are seeing below error
Ad Error Msg: Unable to request ads from server due to network error. Error code =AdErrorCode [name:
ADS_REQUEST_NETWORK_ERROR, number: 1012]
If we are not performing encode on ad url, we see no response received or no errors reported from sdk also
The actual adurl is generated from my dfp account created.
We are not able to reproduce the issue in VAST inspector.
We are able to reproduce the issue in Sample player when we used the above url
We are able to load this adtag url in browser
We have even tried in other players like JW player etc and we could see our ad being served.
We tried to play the VAST url that comes with Sample Player in native player which is used in our app.It played fine without any issue.
But we are not sure how to append these headers for the adrequest being sent
I don't see any apis for adding headers to IMA sdk request.
Tried to add these as extra parameters for the request but of no use.
We used charles proxy to check the response of this hit .We could see 404 error
%3D400x300%7C640x480%26iu%3D%2F32848038%2Fsample%26impl%3Ds%26gdfp_req%3D1%26env%3Dvp%26output%3Dvast
%26unviewed_position_start%3D1%26url%3D%25%25REFERRER_URL_ESC_ESC%25%25%26description_url%3D
%25%25DESCRIPTION_URL_ESC_ESC%25%25%26correlator%3D%25%25CACHEBUSTER%25%25
From where is this getting appended and is this an issue or expected behaviour?Please suggest.
Now in the log snippet I provided as part of the attachment, I see below error
Could you please check the log and let me know if this is log harmful that is blocking from ad to be served or can this be ignored
Log:
11-16 17:19:42.582 25436-25436/com.vodacom.aptv E/dalvikvm﹕ Could not find class
'android.support.v4.util.ArrayMap', referenced from method com.google.ads.interactivemedia.v3.impl.x.f
11-16 17:19:44.139 E/Web Console(25436): Uncaught URIError: URI malformed at
Kindly help me on this and provide some inputs on proceeding further.