andrei g
andrei g

Reputation: 817

what to put as adunitid in xml layout for android

In admob management AdUnit shows in format ca-app-pub-xxxxxxxxxxxxxxxx/nnnnnnnnnn

How am i suppose to put it in xml layout?

Is this correct?

<com.google.android.gms.ads.AdView
android:id="@+id/ad1" 
android:layout_width="fill_parent" 
android:layout_height="wrap_content"
ads:adSize="SMART_BANNER"
ads:adUnitId="ca-app-pub-xxxxxxxxxxxxxxxx/nnnnnnnnnn"
/> 

Upvotes: 0

Views: 259

Answers (1)

William
William

Reputation: 20196

You already have the correct Ad unitId.. It should be something like "ca-app-pub-xxxxxxxxxxxxxxxx/nnnnnnnnnn"

Upvotes: 1

Related Questions