Custom Targeting v8.7.0.

182 views
Skip to first unread message

Lijith Vipin

unread,
Jul 29, 2021, 7:52:41 AM7/29/21
to Google Mobile Ads SDK Developers
We have updated the SDK to v8.7.0. We need some clarification on custom targetting.

Earlier customTargeting accpets multiple values in a single key using DFPRequest, as in “section” here:
let request = DFPRequest()
request.customTargeting = ["gender": "male", "section": ["sports", "finance"]]


But now after being updated to v8.7.0. Custom target(GAMRequest) format changed to:
var customTargeting: [String : String]? { get set }

So how can I achieve the multiple values using GAMRequest. Please help me to resolve this.

Mobile Ads SDK Forum Advisor

unread,
Jul 29, 2021, 3:15:06 PM7/29/21
to google-adm...@googlegroups.com
Hi Lijith,

Thank you for reaching out to us with your concern. Looking over our documents, I found this section in the Admob part that talks about this function also. Which should also work on AdManager. Which you should be able to pass the dictionary into when looking at the Obj-C sample.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2JEzXX:ref

Lijith Vipin

unread,
Jul 30, 2021, 4:33:49 AM7/30/21
to Google Mobile Ads SDK Developers
Hi, 
Thanks for the answer. But it doesn’t resolve my concern.

My concern is how to pass multiple values under a single key using GAMRequest.

According to the new syntax its only support key-value (string-string)

Mobile Ads SDK Forum Advisor

unread,
Jul 30, 2021, 12:15:51 PM7/30/21
to google-adm...@googlegroups.com
Hi Lijith,

Thank you for responding to us. Yeah when I look over it too it does seem to only be key-value paired only. Let me bring this to my team to have them look at this and see what feedback we get. Once we get it, we will be certain to pass it along to you.

charliel...@gmail.com

unread,
Jul 31, 2021, 2:13:08 AM7/31/21
to Google Mobile Ads SDK Developers

kindly integrate into the android app SDK  json  I beg you a person of good faith please it is a request
google-services (1).json
google-services.json

Mobile Ads SDK Forum Advisor

unread,
Aug 2, 2021, 10:57:17 AM8/2/21
to charliel...@gmail.com, google-adm...@googlegroups.com
Hi Lijith,

Instead of passing an array, passing a comma separated list within a string will achieve the same effect. For example:
 
let request = GAMRequest()
request.customTargeting = ["gender": "male", "section": "sports,finance"]

I will also raise a ticket to get the documentation updated with the same information.

Thanks,
Eric, Mobile Ads SDK Team

ref:_00D1U1174p._5004Q2JEzXX:ref

Lijith Vipin

unread,
Aug 4, 2021, 4:09:52 AM8/4/21
to Google Mobile Ads SDK Developers
Hi Eric,

This will resolve my issue. Thanks for your great support.
Reply all
Reply to author
Forward
0 new messages