Github Action - error CS0234: The type or namespace name 'Api' does not exist in the namespace 'GoogleMobileAds' (are you missing an assembly reference?)

513 views
Skip to first unread message

Beginner2022

unread,
Jul 24, 2022, 9:52:24 AM7/24/22
to Google Mobile Ads SDK Developers
Hi All,

I manage to build with v7.1.0 locally without any issue.

But when trying to build with Github Action, i hit the error:
Assets/GoogleMobileAdsHandler.cs(1,23): error CS0234: The type or namespace name 'Api' does not exist in the namespace 'GoogleMobileAds' (are you missing an assembly reference?)
Assets/GoogleMobileAdsHandler.cs(144,74): error CS0246: The type or namespace name 'AdFailedToLoadEventArgs' could not be found (are you missing a using directive or an assembly reference?)
Assets/GoogleMobileAdsHandler.cs(149,66): error CS0246: The type or namespace name 'AdFailedToLoadEventArgs' could not be found (are you missing a using directive or an assembly reference?)
...
...
Ends up, i see the error: 
  • Scripts have compiler errors.
Is that something that i miss out? 

Here's my yaml:

name: Actions 😎
on: [push]
jobs:
build:
name: Build my project ✨
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true
# Cache
- uses: actions/cache@v2
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
# Test
- name: Run tests
uses: game-ci/unity-test-runner@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
# Build
- name: Build project
uses: game-ci/unity-builder@v2
with:
targetPlatform: Android

Beginner2022

unread,
Jul 24, 2022, 9:54:55 AM7/24/22
to Google Mobile Ads SDK Developers
* Build Android App with Unity

Mobile Ads SDK Forum Advisor

unread,
Jul 25, 2022, 3:39:38 AM7/25/22
to goodmi...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for reaching out to us.

For us to further investigate this, could you please provide the following details via Reply privately to author option or send it directly to the link below? 

  • Sample app project
  • Steps to replicate
  • Device name and versions affected
  • Mediation adapter(if any)

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002d0oZBQAY&entry.80707362=00115120
2. Fill out all fields, and attach your file(s).
3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2d0oZB:ref
Reply all
Reply to author
Forward
0 new messages