Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google AdWords API sunset 27th April 2022 #124

Closed
Datacove1 opened this issue May 10, 2021 · 8 comments
Closed

Google AdWords API sunset 27th April 2022 #124

Datacove1 opened this issue May 10, 2021 · 8 comments

Comments

@Datacove1
Copy link

Hello,

I've received an email from Google (imagine quite a few people have) advising to update to the Google Ads API by 27th April 2022 (so we have time) as the AdWords API will stop working on this date. Will the package source code be updated to reflect this - or do we need to make any changes ourselves to ensure that calls after this date will not fail?

Many thanks,

Jeremy

@jburkhardt
Copy link
Owner

Hello Jeremy,
Thank you very much for pointing this out. Yes, we are aware that the Adwords API will expire in April 2022. The RAdwords package will no longer work then, as it only connects to the Adwords API. To pull data from your Google Ads account after April 2022, you will need to migrate your code to the Google Ads API. Since the two APIs are completely different, we will not include Google Ads API support in the RAdwords package. We are building a new R package that will interface with the Google Ads API. Please be aware that this project is entirely driven by private efforts and there is no funding for the project. However, I cannot guarantee that there will be a new R package in time. Also, the functionality of the Google Ads API is different and therefore your R code will also need to be updated to the new R package / API. If you have production code running on Google Ads data, you should consider using an official Google client library: https://developers.google.com/google-ads/api/docs/client-libs
Kind regards,
Johannes

@Datacove1
Copy link
Author

Thank you for the swift reply Johannes - and of course I understand the situation you are in - happy to pull information from the API myself going forward should I need, but would love to hear about the development of the new package as it continues!

@selesnow
Copy link

selesnow commented Jul 27, 2021

@Datacove1

Hello, i build new package rgoogleads for work with Google Ads API v8.

You can see documentation in https://selesnow.github.io/rgoogleads/docs/

Migration table:

The correspondence between report types and fields can be found in the official documentation.

Example of similar code by RAdwords and rgoogleads, loading campaign perfomance data:

RAdwords

library(RAdwords)

# auth
adwords_auth <- doAuth()

# compose query
query <- statement(
  select = c('CampaignName',
            'Date',
            'Clicks'),
  report = 'CAMPAIGN_PERFORMANCE_REPORT',
  start  = '2021-06-01',
  end    = '2021-06-30'
)

# loading data
data1 <- getData(
  clientCustomerId = 'xxx-xxx-xxxx',
  statement        = query, 
  google_auth      = adwords_auth
)

rgoogleads

library(rgoogleads)

# auth
gads_auth_configure(path = 'D:/ga_auth/app.json')
gads_auth(email = 'me@gmail.com')

# loading data
data2 <- gads_get_report(
  resource = 'campaign',
  fields   = c('campaign.name',
              'segments.date',
              'metrics.clicks'),
  date_from         = '2021-06-01',
  date_to           = '2021-06-30',
  customer_id       = 'xxx-xxx-xxxx'
)

@selesnow
Copy link

@jburkhardt
Copy link
Owner

👏 Hey hey 👏

We released our new package {r4googleads}

The Google AdWords API will sunset on April 27, 2022.
Upgrade to the Google Ads API with our new R package {r4googleads}.
Follow our RAdwords Migration Guide.

{r4googleads} is the official successor of the {RAdwords} package.

@mbannert
Copy link
Collaborator

@Datacove1 ☝️

@Datacove1
Copy link
Author

Thank you, this looks perfect! Will get all my client's scripts amended!

@mbannert
Copy link
Collaborator

mbannert commented Mar 1, 2022

Good Luck with the migration, let us know how it went.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants