Skip to main content

App ops provider package built by papaya.

Project description

AppOps

App 投放运营工具集

Admob

Hooks

from appops.hooks.admob import AdmobHook
h = AdmobHook()

h.accounts
Out[3]: ['pub-xxxx']

h.mediationreport_json(
    query_body={
        "report_spec": {
            "dateRange": { "startDate": {"year": 2021, "month": 8, "day": 30}, "endDate": {"year": 2021, "month": 8, "day": 30} },
            "dimensions": ["DATE","FORMAT"], # 
            "metrics": ["ESTIMATED_EARNINGS","AD_REQUESTS","MATCH_RATE","MATCHED_REQUESTS","IMPRESSIONS","CLICKS"],
            "sortConditions": [
                {"metric":"ESTIMATED_EARNINGS", "order": "ASCENDING"}
            ],
            "localizationSettings": { "currencyCode": "USD", "languageCode": "en-US" }
        }
    },
    accounts=None, # using accounts from connection
)

Operator

ignore

Ads

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airflow-provider-appops-0.0.4.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

airflow_provider_appops-0.0.4-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page