1.0.26 • Published 4 years ago

nativescript-xz-ad-generation v1.0.26

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 years ago

NativeScript AdGeneration Plugin

Installation

tns plugin add nativescript-xz-ad-generation

Usage

Import Module

@NgModule({
    imports: [
    	NativeScriptCommonModule,
	    HomeRoutingModule,
	    XzAdGenerationModule, // <-- Add this!
    ],
    declarations: [
        HomeComponent
    ],
    schemas: [
        NO_ERRORS_SCHEMA
    ]
})
export class HomeModule { }

Banner

<XzAdGBanner locationId="48547" bannerWidth="320" bannerHeight="50"></XzAdGBanner>

Native Ad

<XzAdGLayout locationId="48635"> <!-- Use 48636 for Android -->
	<ng-template let-ad>
		<GridLayout class="ad-container" columns="100 *" rows="auto">
			<GridLayout rows="auto" col="0">
				<Image src="{{ ad.iconImageUrl ? ad.iconImageUrl : ad.mainImageUrl }}" width="100" height="100"></Image>
				<XzAdGInformationIconView *ngIf="ad.nativeAd" [nativeAd]="ad.nativeAd" verticalAlignment="top" horizontalAlignment="left"></XzAdGInformationIconView>
			</GridLayout>

			<StackLayout col="1">
				<Label [text]="ad.title" textWrap="true"></Label>
				<Label [text]="ad.sponsor" class="sponsor-name"></Label>
			</StackLayout>
		</GridLayout>
	</ng-template>
</XzAdGLayout>

Demo

See demo-angular

npm run setup
# ios
npm run demo.ng.ios
# android
npm run demo.ng.android

For Comitter

Build & Publish

cd publish
./pack.sh # For build
./publish.sh # For build & publish

License

Apache License Version 2.0, January 2004

1.0.26

4 years ago

1.0.23

5 years ago

1.0.21

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago