1.0.26 • Published 6 years ago

nativescript-xz-ad-generation v1.0.26

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
6 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

6 years ago

1.0.23

6 years ago

1.0.21

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago