adUnitId="@string/adUnitId" in the AdView XML element
doesn't seem to work.
Form memory you get a bad AdMobId error in the logs.
I found I needed to specify my Id explicitly in the layout XML, which
is in multiple places for me (to handle rotation etc).
On May 1, 7:13 am, seb <genieuk2...@gmail.com> wrote:
> adUnitId="@string/adUnitId" in the AdView XML element
> doesn't seem to work.
> Form memory you get a bad AdMobId error in the logs.
> I found I needed to specify my Id explicitly in the layout XML, which
> is in multiple places for me (to handle rotation etc).
> On May 1, 7:13 am, seb <genieuk2...@gmail.com> wrote:
> > You can do this by specifying the following in the attrs.xml file
> > <attr name="adUnitId" format="string"/>
> > and then in your AdView XML view add an attribute as follows
> adUnitId="@string/adUnitId" in the AdView XML element
> doesn't seem to work.
> Form memory you get a bad AdMobId error in the logs.
> I found I needed to specify my Id explicitly in the layout XML, which
> is in multiple places for me (to handle rotation etc).
> On May 1, 7:13 am, seb <genieuk2...@gmail.com> wrote:
> > You can do this by specifying the following in the attrs.xml file
> > <attr name="adUnitId" format="string"/>
> > and then in your AdView XML view add an attribute as follows
> > ads:adUnitId="YOUR_ID"
> > Regards
William,
You are trying to get the adUnitId from the strings.xml, as I said
trying using the attrs.xml to define the tag, i.e.
attrs.xml file in the res/values directory as follows
> On May 1, 12:40 am, William Ferguson <william.ferguson...@gmail.com>
> wrote:
> > Actually seb,
> > adUnitId="@string/adUnitId" in the AdView XML element
> > doesn't seem to work.
> > Form memory you get a bad AdMobId error in the logs.
> > I found I needed to specify my Id explicitly in the layout XML, which
> > is in multiple places for me (to handle rotation etc).
> > On May 1, 7:13 am, seb <genieuk2...@gmail.com> wrote:
> > > You can do this by specifying the following in the attrs.xml file
> > > <attr name="adUnitId" format="string"/>
> > > and then in your AdView XML view add an attribute as follows
> > > ads:adUnitId="YOUR_ID"
> > > Regards
> William,
> You are trying to get the adUnitId from the strings.xml, as I said
> trying using the attrs.xml to define the tag, i.e.
> attrs.xml file in the res/values directory as follows
> We are working on a fix to allow string resources (e.g. "@string/
> something") in our XML layouts. It should be available in the next
> release.
> Thanks,
> -Tim
> On Apr 30, 4:40 pm, William Ferguson <william.ferguson...@gmail.com>
> wrote:
> > Actually seb,
> > adUnitId="@string/adUnitId" in the AdView XML element
> > doesn't seem to work.
> > Form memory you get a bad AdMobId error in the logs.
> > I found I needed to specify my Id explicitly in the layout XML, which
> > is in multiple places for me (to handle rotation etc).
> > On May 1, 7:13 am, seb <genieuk2...@gmail.com> wrote:
> > > You can do this by specifying the following in the attrs.xml file
> > > <attr name="adUnitId" format="string"/>
> > > and then in your AdView XML view add an attribute as follows