Create Google Native Ads without using storyboards iOS Swift

245 views
Skip to first unread message

Amila Wijayarathna

unread,
Oct 31, 2022, 7:55:43 AM10/31/22
to Google Mobile Ads SDK Developers
I'm trying to create Google Native ads in my swift application. But I couldn't found a way to create them without using story boards. I have created the UI by programmatically and load the AD data to the views. But the UI is not clickable and not redirect to the relevant Appstore path. 
Any help is appreciated.
Thank You!

Mobile Ads SDK Forum Advisor

unread,
Oct 31, 2022, 9:43:02 AM10/31/22
to am...@4axissolutions.com, google-adm...@googlegroups.com

Hi Amila,

Thanks for reaching out to the Mobile Ads SDK Forum.

I understand that you are trying to create Google Native ads in your swift iOS App. However, could you confirm if you already followed this guide, as this guide will show you how to use the Google Mobile Ads SDK to implement native ads in an iOS app, as well as some important things to consider along the way? You may check more details on the native ads in our Native Ads Playbook. Also, the samples are available for Swift and Objective-C

After implementing the Native ads as per our documents, if it is still not clickable and does not redirected to the relevant Appstore path, could you provide the following details:

  • Sample App
  • Video screen recording of the behavior
  • Charles logs for the said Ad being displayed

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply via reply privately to author option. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

 

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002fpzkbQAA&entry.80707362=00155681

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

 

Regards,

Google Logo
Yasar
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2fpzkb:ref

Hermawan Winata

unread,
Mar 9, 2023, 10:17:51 PM3/9/23
to Google Mobile Ads SDK Developers
Hi, Yasar

I've read the guide you mentioned. Similar to Amila's question: can we build the layout programmatically without using `.xib` as mentioned in the doc and samples? Because personally I find that programmatically creating the layout is easier to maintain. 

Mobile Ads SDK Forum Advisor

unread,
Mar 10, 2023, 10:21:23 AM3/10/23
to shin...@gmail.com, google-adm...@googlegroups.com
Hello,

Thank you for reaching out to us.

Kindly create a new thread if you have any concerns with the AdMob SDK.

Thanks,
Justin

ref:_00D1U1174p._5004Q2fpzkb:ref
Reply all
Reply to author
Forward
0 new messages