-
Notifications
You must be signed in to change notification settings - Fork 21
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
Clarify requirements for displaying Free Ads Credits #2599
Comments
In the v1 version, when linking to an existing account, it was not able to determine whether the account was a sub-account or not, nor to know when it was created. Ref:
Therefore, the implementation at that time could only be narrowly storing those two properties for the account newly created via this plugin. In other words, it was implemented on the basis of avoiding false positives. The logic in |
Thanks, @eason9487. The current logic does work when creating a new account, but only when you're still in the state where that account was created. If the app is refreshed, or if the hook is used in a different context (like when wanting to display these free ads credit banners on the plugin dashboard #2538, pending designs) then this data can no longer be used. After talking with @fblascogarma the guidance from Google was that there too many internal factors for us to implement logic to only show these banners when an account is eligible and instead we should show it in nearly all cases as long as we continue including the "Terms and conditions apply" link. See this Slack convo for more context. Next steps here would be to:
|
I'm not pretty sure the meaning of app is refreshed. Does it mean the plugin data is wiped out? Otherwise, if continue using the newly created and connected Ads account, the
(I don't/didn't mean to have opinions on the new requirement, but only to explain the current implementation and past considerations in development.) |
No, we don't have a way of doing so. With an Ads account it has a link to an MCC account but this link is established whether it was initially created by one of the MCC's or not. I'm not aware of any account information which shows how the account was created. |
Thanks, @mikkamp. In that case, I believe we should deprecate the |
I don't have opinions on the direction of requirements. I mostly focus on the implementation and technical things, so sure, the |
Thanks. I'm going to mark this issue as closed now, and we can discuss the implementation details in #2538. |
While working on #2558, it was discovered that the
useFreeAdCredit()
hook, which is intended to determine whether the Google Ads account is eligible for the $500 free ads credit, was returning false in situations where the credit was expected to be visible (see related conversation).In order to ensure this hook is working as expected, we need to clarify the requirements of this hook. Right now, it works by selecting the
googleAdsAccount
object returned fromuseGoogleAdsAccount()
and checking to see if thegoogleAdsAccount.sub_account
value istrue
and if thegoogleAdsAccount.created_timestamp
value is less than 60 days ago. However, in many cases where this hook is used, those values are not available in the data store because they are only returned by the API during a specific part of the setup process when creating a new Ads ID.google-listings-and-ads/src/Ads/AccountService.php
Lines 152 to 161 in 02537c2
My understanding is that Ads credits should be shown whenever the Ads account was created by the plugin within the last 60 days (i.e. not when an existing account is connected, or when the account is older that 60 days). Are there other requirements that need to be considered before updating this hook so it can be used throughout the admin to determine when the Free Ads Credit should be shown?
The text was updated successfully, but these errors were encountered: